Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Models/Projects/Projects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ projectCacheById pid = do
FROM apis.endpoints WHERE project_id = #{pid} AND canonical_path IS NOT NULL
) canonical_paths
from
(select e.host hosts, e.hash endpoint_hashes, concat(rf.endpoint_hash,'<>', rf.field_category,'<>', rf.path) paths
-- field_category column was dropped by the 0090 cascade (apis.field_category
-- enum was the type). The redact-list format keeps the '<>' separators so
-- consumers that split on them still see three segments.
(select e.host hosts, e.hash endpoint_hashes, concat(rf.endpoint_hash,'<>','<>', rf.path) paths
from apis.endpoints e
left join projects.redacted_fields rf ON rf.project_id = e.project_id
where e.project_id = #{pid}
Expand Down
Loading