feat(invitations): check contact grants on every read, cap pending invitations, and expire them at the deadline
This commit is contained in:
1 parent
676b3c6e24
commit
12a7213d4a
67 files changed
+4255
-149
No files matched your search
@@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
-- A visibility change of the whole profile closes every active grant of one
|
||||
-- candidate: the revocation of C2 and the closing of the publication. The
|
||||
-- existing active index leads with the organization, so it cannot serve that
|
||||
-- lookup. The index holds no data and only speeds up the closing statement.
|
||||
CREATE INDEX contact_grants_candidate_active_idx
|
||||
ON contact_grants (candidate_id)
|
||||
WHERE revoked_at IS NULL;
|
||||
|
||||
-- +goose Down
|
||||
-- The index holds no data, so a rollback drops only the lookup it provides.
|
||||
DROP INDEX contact_grants_candidate_active_idx;
|
||||
Reference in new issue
Block a user