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
Merge requests
!863
refactor follows and update_nofications indexing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
refactor follows and update_nofications indexing
267-update-notification-cache
into
develop
Overview
4
Commits
99
Pipelines
0
Changes
1
Merged
Dan Notestein
requested to merge
267-update-notification-cache
into
develop
1 month ago
Overview
3
Commits
99
Pipelines
0
Changes
1
Expand
Based on
!819 (closed)
Require
tests_api!258 (merged)
Edited
1 week ago
by
Krzysztof Leśniak
0
0
Merge request reports
Viewing commit
4ef2b7bd
Show latest version
1 file
+
1
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4ef2b7bd
Remove redundant if
· 4ef2b7bd
Krzysztof Leśniak
authored
3 months ago
hive/db/sql_scripts/postgrest/bridge_api/bridge_api_does_user_follow_any_lists.sql
+
1
−
5
Options
@@ -16,11 +16,7 @@ BEGIN
hivemind_postgrest_utilities
.
parse_argument_from_json
(
_params
,
'observer'
,
True
),
True
),
True
);
IF
NOT
EXISTS
(
SELECT
ha
.
name
FROM
hivemind_app
.
follow_blacklisted
fb
JOIN
hivemind_app
.
hive_accounts
ha
ON
ha
.
id
=
fb
.
following
WHERE
fb
.
follower
=
_observer_id
LIMIT
1
)
THEN
RETURN
'false'
::
jsonb
;
ELSE
RETURN
'true'
::
jsonb
;
END
IF
;
RETURN
(
SELECT
EXISTS
(
SELECT
ha
.
name
FROM
hivemind_app
.
follow_blacklisted
fb
JOIN
hivemind_app
.
hive_accounts
ha
ON
ha
.
id
=
fb
.
following
WHERE
fb
.
follower
=
_observer_id
LIMIT
1
))::
TEXT
::
jsonb
;
END
$$
;
Loading