Skip to content
GitLab
Explore
Sign in
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
5edc256e
Commit
5edc256e
authored
4 years ago
by
Jason Salyers
Browse files
Options
Downloads
Patches
Plain Diff
[JES] Add ordering to blacklists for consistency
parent
b4cd8e01
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!422
[JES] Add ordering to blacklists for consistency
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql
+2
-2
2 additions, 2 deletions
...ql_scripts/hive_blacklisted_accounts_by_observer_view.sql
tests/tests_api
+1
-1
1 addition, 1 deletion
tests/tests_api
with
3 additions
and
3 deletions
hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql
+
2
−
2
View file @
5edc256e
...
...
@@ -8,7 +8,7 @@ SELECT observer_accounts.id AS observer_id,
JOIN
hive_accounts
following_accounts
ON
((
hive_follows
.
following
=
following_accounts
.
id
)))
JOIN
hive_accounts
observer_accounts
ON
((
hive_follows
.
follower
=
observer_accounts
.
id
)))
WHERE
hive_follows
.
blacklisted
UNION
UNION
ALL
SELECT
observer_accounts
.
id
AS
observer_id
,
following_accounts
.
id
AS
blacklisted_id
,
following_accounts
.
name
AS
blacklisted_name
,
...
...
@@ -19,4 +19,4 @@ UNION
JOIN
hive_accounts
observer_accounts
ON
((
hive_follows_direct
.
follower
=
observer_accounts
.
id
)))
JOIN
hive_accounts
indirect_accounts
ON
((
hive_follows_indirect
.
follower
=
indirect_accounts
.
id
))
WHERE
(
hive_follows_direct
.
follow_blacklists
AND
hive_follows_indirect
.
blacklisted
)
GROUP
BY
observer_accounts
.
id
,
following_accounts
.
id
;
\ No newline at end of file
GROUP
BY
observer_accounts
.
id
,
following_accounts
.
id
ORDER
BY
source
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests_api
@
9adc0595
Compare
7e65efd6
...
9adc0595
Subproject commit
7e65efd650e0d8bc41e194638121ce4b195ae29c
Subproject commit
9adc05954e347c3e2441e64c9e0e523d9f21361a
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