Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
aca7a645
Commit
aca7a645
authored
4 years ago
by
Mariusz Trela
Browse files
Options
Downloads
Patches
Plain Diff
Fixes in `condenser_get_followers`, `condenser_get_following` SQL functions
parent
efc6af50
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!368
New tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hive/db/sql_scripts/condenser_follows.sql
+2
-2
2 additions, 2 deletions
hive/db/sql_scripts/condenser_follows.sql
tests/tests_api
+1
-1
1 addition, 1 deletion
tests/tests_api
with
3 additions
and
3 deletions
hive/db/sql_scripts/condenser_follows.sql
+
2
−
2
View file @
aca7a645
...
@@ -27,7 +27,7 @@ BEGIN
...
@@ -27,7 +27,7 @@ BEGIN
__account_id
=
find_account_id
(
_account
,
True
);
__account_id
=
find_account_id
(
_account
,
True
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
IF
__start_id
<>
0
THEN
IF
__start_id
<>
0
THEN
SELECT
INTO
__start_id
COALESCE
(
(
SELECT
id
FROM
hive_follows
WHERE
following
=
__account_id
AND
follower
=
__start_id
),
0
);
SELECT
INTO
__start_id
(
SELECT
id
FROM
hive_follows
WHERE
following
=
__account_id
AND
follower
=
__start_id
);
END
IF
;
END
IF
;
RETURN
QUERY
SELECT
RETURN
QUERY
SELECT
ha
.
name
ha
.
name
...
@@ -55,7 +55,7 @@ BEGIN
...
@@ -55,7 +55,7 @@ BEGIN
__account_id
=
find_account_id
(
_account
,
True
);
__account_id
=
find_account_id
(
_account
,
True
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
__start_id
=
find_account_id
(
_start
,
_start
<>
''
);
IF
__start_id
<>
0
THEN
IF
__start_id
<>
0
THEN
SELECT
INTO
__start_id
COALESCE
(
(
SELECT
id
FROM
hive_follows
WHERE
follower
=
__account_id
AND
following
=
__start_id
),
0
);
SELECT
INTO
__start_id
(
SELECT
id
FROM
hive_follows
WHERE
follower
=
__account_id
AND
following
=
__start_id
);
END
IF
;
END
IF
;
RETURN
QUERY
SELECT
RETURN
QUERY
SELECT
ha
.
name
ha
.
name
...
...
This diff is collapsed.
Click to expand it.
tests_api
@
f93c1be9
Compare
fba171b0
...
f93c1be9
Subproject commit f
ba171b01622cae77e8b6d9f7f5be3c14f920924
Subproject commit f
93c1be91226f54b8b389d69195ca4e7cde1a851
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment