feat(platform): add the notification inbox and deterministic match search
This commit is contained in:
1 parent
5edff21d2d
commit
0b11021b16
169 files changed
+17083
-443
No files matched your search
@@ -46,6 +46,17 @@ type CompanyQuotaDecision struct {
|
||||
// Repeated views update last_seen monotonically with the greater of the
|
||||
// stored and current times.
|
||||
type CompanyQuotaRepository interface {
|
||||
// LockOrganization takes the organization lock that serializes the
|
||||
// reservations of one organization (FOR NO KEY UPDATE, which does not block
|
||||
// the foreign-key lock of a candidate's own hide), ahead of the share locks
|
||||
// of a membership check. A
|
||||
// caller that checks the membership first and reserves later would hold a
|
||||
// share lock and then ask for the exclusive one, and two such callers of one
|
||||
// organization deadlock. A caller that reserves after a share lock takes
|
||||
// this lock first, in the documented order. It returns
|
||||
// ErrCompanyQuotaSnapshotChanged for a removed organization.
|
||||
LockOrganization(ctx context.Context, organizationID uuid.UUID) error
|
||||
|
||||
// ReserveInvitation counts a new invitation against the current policy
|
||||
// limit. An existing invitation ID is returned as allowed and reused
|
||||
// without a second charge, regardless of its age or the request key. A
|
||||
|
||||
Reference in new issue
Block a user