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
73975ab3
Commit
73975ab3
authored
2 months ago
by
Martin Lees
Browse files
Options
Downloads
Patches
Plain Diff
Update list_subscribers to match the previous implementation order regarding joins and conditions
parent
6dc32f8b
No related branches found
No related tags found
2 merge requests
!831
Update list_subscribers to match the previous implementation order regarding joins and conditions
,
!827
Merge develop changes to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/db/sql_scripts/postgrest/bridge_api/bridge_api_list_subscribers.sql
+4
-5
4 additions, 5 deletions
...ipts/postgrest/bridge_api/bridge_api_list_subscribers.sql
with
4 additions
and
5 deletions
hive/db/sql_scripts/postgrest/bridge_api/bridge_api_list_subscribers.sql
+
4
−
5
View file @
73975ab3
...
...
@@ -37,14 +37,13 @@ BEGIN
COALESCE
(
hr
.
title
,
NULL
)
AS
title
,
hivemind_postgrest_utilities
.
json_date
(
hs
.
created_at
)
AS
created_at
FROM
hivemind_app
.
hive_subscriptions
hs
LEFT
JOIN
hivemind_app
.
hive_roles
hr
ON
hs
.
account_id
=
hr
.
account_id
AND
hs
.
community_id
=
hr
.
community_id
JOIN
hivemind_app
.
hive_accounts
ha
ON
hs
.
account_id
=
ha
.
id
LEFT
JOIN
hivemind_app
.
hive_roles
hr
ON
hs
.
account_id
=
hr
.
account_id
AND
hs
.
community_id
=
hr
.
community_id
WHERE
hs
.
community_id
=
_community_id
AND
NOT
(
_subscription_id
<>
0
AND
hs
.
id
>=
_subscription_id
)
WHERE
hs
.
community_id
=
_community_id
AND
(
_subscription_id
=
0
OR
(
hs
.
id
<
_subscription_id
))
ORDER
BY
ha
.
name
ASC
LIMIT
_limit
)
row
)
row
),
'[]'
::
JSONB
);
...
...
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