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
@@ -25,8 +25,8 @@ func TestCandidateCardAccessMigrationDownRetainsHistory(t *testing.T) {
|
||||
if _, err := migrator.Up(ctx); err != nil {
|
||||
t.Fatalf("Up() error = %v", err)
|
||||
}
|
||||
rollBackToCandidateCardAccessVersion(ctx, t, migrator)
|
||||
|
||||
// The organization is created while the latest schema is in place: its creation
|
||||
// needs the holdings table, which the rollback below removes.
|
||||
now := time.Now().UTC().Truncate(time.Microsecond)
|
||||
identity := identityFixture{
|
||||
ctx: ctx, pool: pool, store: postgresadapter.NewIdentityStore(pool), now: now,
|
||||
@@ -38,6 +38,8 @@ func TestCandidateCardAccessMigrationDownRetainsHistory(t *testing.T) {
|
||||
}
|
||||
owner := organizationFixture.employer(t, "owner@example.com")
|
||||
organization := organizationFixture.create(t, owner, organizationFixture.completeProfile(t, "Example Company"), now)
|
||||
rollBackToCandidateCardAccessVersion(ctx, t, migrator)
|
||||
|
||||
if _, err := pool.Exec(ctx, `INSERT INTO candidate_card_access_events (
|
||||
id, candidate_id, organization_id, actor_id, kind, field_codes, occurred_at
|
||||
) VALUES ($1, $2, $3, $4, 'card_viewed', ARRAY['stack']::text[], $5)`,
|
||||
|
||||
Reference in new issue
Block a user