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
@@ -532,6 +532,12 @@ type Delivery struct {
|
||||
ManualRetryStartedAt pgtype.Timestamptz
|
||||
// Attempt count when the latest provider call started. Equality with attempt_count means its result was not recorded; a greater attempt_count means a provider result was stored after that send-start.
|
||||
SendStartedAttemptCount pgtype.Int4
|
||||
// The kind of record a notification is about; set only for a notification, NULL when it names none. The product sending worker re-checks its rights before the send.
|
||||
SubjectKind pgtype.Text
|
||||
// The record a notification is about; an opaque ID, never an address or a contact.
|
||||
SubjectID pgtype.UUID
|
||||
// The organization the subject record belongs to.
|
||||
SubjectOrganizationID pgtype.UUID
|
||||
}
|
||||
|
||||
type DeliveryAttempt struct {
|
||||
@@ -702,6 +708,12 @@ type MailRequest struct {
|
||||
Body string
|
||||
LinkPath string
|
||||
CreatedAt pgtype.Timestamptz
|
||||
// The kind of record the notification is about, NULL when it names none; the sending worker checks the rights of that kind.
|
||||
SubjectKind pgtype.Text
|
||||
// The record the notification is about, for example the invitation; an opaque ID, never an address or a contact.
|
||||
SubjectID pgtype.UUID
|
||||
// The organization the subject record belongs to, for example the organization that sent the invitation.
|
||||
SubjectOrganizationID pgtype.UUID
|
||||
}
|
||||
|
||||
type Membership struct {
|
||||
|
||||
Reference in new issue
Block a user