Skip to content

Create new notifications for real-time changes#3031

Draft
JacobKH123 wants to merge 3 commits into
mono-879-connect-frontend-and-backendfrom
mono-877-create-new-notifications-for-realtime-changes
Draft

Create new notifications for real-time changes#3031
JacobKH123 wants to merge 3 commits into
mono-879-connect-frontend-and-backendfrom
mono-877-create-new-notifications-for-realtime-changes

Conversation

@JacobKH123
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

JacobKH123 commented Mar 18, 2026

@JacobKH123 JacobKH123 changed the base branch from mono-851-create-notifications-dropdown to graphite-base/3031 March 18, 2026 19:49
@JacobKH123 JacobKH123 force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 691f5df to 4c86aa2 Compare March 18, 2026 19:49
@JacobKH123 JacobKH123 changed the base branch from graphite-base/3031 to create-notification-dashboard March 18, 2026 19:49
@ErlendSae ErlendSae changed the title thingd Create new notifications for realtime changes Mar 18, 2026
@Terbau Terbau changed the base branch from create-notification-dashboard to graphite-base/3031 March 29, 2026 18:13
@Terbau Terbau force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 4c86aa2 to 12f775d Compare April 15, 2026 12:35
@Terbau Terbau force-pushed the graphite-base/3031 branch from 45895bb to cbdf1de Compare April 15, 2026 12:35
@Terbau Terbau changed the base branch from graphite-base/3031 to mono-879-connect-frontend-and-backend April 15, 2026 12:35
@ErlendSae ErlendSae force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 12f775d to 1b11aa4 Compare April 15, 2026 17:15
@brage-andreas brage-andreas changed the title Create new notifications for realtime changes Create new notifications for real-time changes Apr 15, 2026
@ErlendSae ErlendSae force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 1b11aa4 to c423bec Compare April 22, 2026 06:14
@ErlendSae ErlendSae force-pushed the mono-879-connect-frontend-and-backend branch from cbdf1de to 1cb8795 Compare April 22, 2026 06:14
@simponm simponm force-pushed the mono-879-connect-frontend-and-backend branch from 1cb8795 to f44515a Compare April 27, 2026 18:40
@simponm simponm force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from c423bec to 0de81f8 Compare April 27, 2026 18:40
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from f44515a to 444128d Compare May 10, 2026 18:56
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch 2 times, most recently from 23cf17a to 9d84030 Compare May 11, 2026 09:01
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from 2c7aa29 to e130b74 Compare May 13, 2026 23:02
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch 2 times, most recently from 6022978 to c785241 Compare May 13, 2026 23:44
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from e130b74 to 8f66d6b Compare May 13, 2026 23:44
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from c785241 to 5073eb2 Compare May 14, 2026 14:34
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from 4a921a4 to 9c9574d Compare May 14, 2026 17:24
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 5073eb2 to 70970c9 Compare May 14, 2026 17:24
Comment on lines +1497 to +1505
await notificationService.create(
handle,
notificationRecipientIds,
"NEW_FEEDBACK_FORM",
"Nytt tilbakemeldingsskjema tilgjengelig",
`Tilbakemeldingsskjema for ${event.title} er nå tilgjengelig. Gi din tilbakemelding før ${formattedDeadline}.`,
`${configuration.WEB_PUBLIC_ORIGIN}/tilbakemelding/${event.id}`,
"URL"
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguments are passed in the wrong order to notificationService.create(). The URL is being passed as actorGroupId (6th parameter), "URL" as payloadType (7th parameter), and the payload (8th parameter) is missing entirely.

The method signature is:

create(handle, recipientIds, notificationType, title, shortDescription, actorGroupId, payloadType, payload)

This should be:

await notificationService.create(
  handle,
  notificationRecipientIds,
  "NEW_FEEDBACK_FORM",
  "Nytt tilbakemeldingsskjema tilgjengelig",
  `Tilbakemeldingsskjema for ${event.title} er nå tilgjengelig. Gi din tilbakemelding før ${formattedDeadline}.`,
  null,  // actorGroupId
  "URL",  // payloadType
  `${configuration.WEB_PUBLIC_ORIGIN}/tilbakemelding/${event.id}`  // payload
)

This will cause the notification link to be stored incorrectly and users won't be able to navigate to the feedback form.

Suggested change
await notificationService.create(
handle,
notificationRecipientIds,
"NEW_FEEDBACK_FORM",
"Nytt tilbakemeldingsskjema tilgjengelig",
`Tilbakemeldingsskjema for ${event.title} er nå tilgjengelig. Gi din tilbakemelding før ${formattedDeadline}.`,
`${configuration.WEB_PUBLIC_ORIGIN}/tilbakemelding/${event.id}`,
"URL"
)
await notificationService.create(
handle,
notificationRecipientIds,
"NEW_FEEDBACK_FORM",
"Nytt tilbakemeldingsskjema tilgjengelig",
`Tilbakemeldingsskjema for ${event.title} er nå tilgjengelig. Gi din tilbakemelding før ${formattedDeadline}.`,
null,
"URL",
`${configuration.WEB_PUBLIC_ORIGIN}/tilbakemelding/${event.id}`
)

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from 9c9574d to e1ef60b Compare May 19, 2026 10:45
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 70970c9 to 1b4998d Compare May 19, 2026 10:45
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from e1ef60b to 965de5c Compare May 19, 2026 21:58
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch 2 times, most recently from b7221a8 to 90b5927 Compare May 19, 2026 23:17
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from 965de5c to 49cc037 Compare May 19, 2026 23:17
@brage-andreas brage-andreas force-pushed the mono-877-create-new-notifications-for-realtime-changes branch from 90b5927 to f370a79 Compare May 19, 2026 23:32
@brage-andreas brage-andreas force-pushed the mono-879-connect-frontend-and-backend branch from 49cc037 to a79f78c Compare May 19, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants