feat(invitations): accept invitations with C4 consent and contact grants; share the E0 quota across holdings
This commit is contained in:
1 parent
a5990d3fc6
commit
676b3c6e24
59 files changed
+4926
-194
No files matched your search
@@ -31,8 +31,8 @@ func TestSyntheticNotificationMigrationAllowlistAndGuardedRollback(t *testing.T)
|
||||
if _, err := migrator.Up(ctx); err != nil {
|
||||
t.Fatalf("Up() error = %v", err)
|
||||
}
|
||||
rollBackAboveVersion(ctx, t, migrator, syntheticNotificationMigrationVersion)
|
||||
|
||||
// The candidate and the organization are created while the latest schema is in
|
||||
// place: their creation needs the holdings table, which the rollback removes.
|
||||
now := time.Now().UTC().Truncate(time.Microsecond)
|
||||
identity := identityFixture{ctx: ctx, pool: pool, store: postgresadapter.NewIdentityStore(pool), now: now}
|
||||
candidate := identity.createUser(t, "inbox-migration@example.com", domain.ScenarioCandidate, now.Add(-time.Hour))
|
||||
@@ -42,6 +42,8 @@ func TestSyntheticNotificationMigrationAllowlistAndGuardedRollback(t *testing.T)
|
||||
owner := organizations.employer(t, "inbox-migration-owner@example.com")
|
||||
organization := organizations.create(t, owner, organizations.completeProfile(t, "Example Company"), now)
|
||||
|
||||
rollBackAboveVersion(ctx, t, migrator, syntheticNotificationMigrationVersion)
|
||||
|
||||
insert := func(eventType, sourceType string, schemaVersion int) error {
|
||||
_, err := pool.Exec(ctx, `INSERT INTO notification_inbox_events (
|
||||
recipient_user_id, event_id, organization_id, event_type, schema_version, source_type, source_id, occurred_at
|
||||
|
||||
Reference in new issue
Block a user