feat(notifications): send product notifications with a rights check right before each send
This commit is contained in:
1 parent
a856066316
commit
623d41b969
59 files changed
+4125
-1126
No files matched your search
@@ -541,6 +541,10 @@ func TestInvitationExpiryMigrationBackfillsDeadlineJobsAndGuardsExpiries(t *test
|
||||
}
|
||||
|
||||
// A rollback keeps the expiry, which the previous schema cannot represent.
|
||||
// Migrations 44 and 45 sit above this one; they hold no rows that the
|
||||
// expiry depends on, so they are rolled back first and the rollback of 43
|
||||
// is the one that must be refused.
|
||||
rollBackAboveVersion(ctx, t, migrator, invitationExpiryMigrationVersion)
|
||||
if _, err := migrator.DownOne(ctx); err == nil {
|
||||
t.Fatal("rollback with an expired invitation succeeded, want it refused")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user