Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notificaties versturen naar aanleiding van Producten #18

Open
alextreme opened this issue Dec 9, 2024 · 0 comments · May be fixed by #55
Open

Notificaties versturen naar aanleiding van Producten #18

alextreme opened this issue Dec 9, 2024 · 0 comments · May be fixed by #55
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@alextreme
Copy link
Member

alextreme commented Dec 9, 2024

Gebruikersverhaal

Als gemeentelijke ontwikkelaar
wil ik dat Open Producten gekoppeld kan worden aan Open Notificaties
zodat toevoegingen, wijzigingen of verwijderingen van producten automatisch een notificatie sturen naar abonnementhouders van het kanaal 'producten', waardoor zij direct op de hoogte worden gesteld van relevante wijzigingen.


Acceptatiecriteria

Koppeling met Open Notificaties

  • Bij elke toevoeging, wijziging of verwijdering van een Product wordt automatisch een notificatie gegenereerd en verzonden naar Open Notificaties.
  • De notificatie bevat de volgende informatie:
    • actie: De uitgevoerde actie (bijv. "toegevoegd", "gewijzigd", "verwijderd").
    • product_id: De unieke identificatie van het product (eventueel als kenmerk?)
    • product_type: Het type product waartoe het behoort (als kenmerk)
  • Notificaties worden verzonden via het kanaal producten.

Validatie en foutafhandeling

  • Bij een fout in de verzending naar Open Notificaties (bijv. netwerkproblemen) retourneert de API een foutmelding in het Nederlands, zoals:
    • "De notificatie voor productwijziging kon niet worden verzonden naar Open Notificaties."
  • Productwijzigingen worden lokaal verwerkt, ook als de notificatie niet succesvol verzonden kon worden, maar er wordt een log geschreven.

API-functionaliteit

  • Open Producten biedt configuratie-opties om de koppeling met Open Notificaties te beheren, inclusief:
    • Het kanaal waarop notificaties worden verzonden (producten).
    • Authenticatiegegevens voor toegang tot Open Notificaties.
    • Het verzenden van berichten met de juiste payload naar Open Notificaties.

Documentatie

  • De API-documentatie bevat:
    • Een beschrijving van de notificatiefunctie en de koppeling met Open Notificaties.

Definition of Done (DoD)

  • Open Producten genereert en verzendt notificaties naar Open Notificaties bij toevoegingen, wijzigingen en verwijderingen van producten.
  • De configuratie-opties voor de koppeling met Open Notificaties zijn beschikbaar en gedocumenteerd.
  • Unit tests en integratietests valideren correcte verwerking van notificaties.
  • De API-documentatie is bijgewerkt met uitleg
@alextreme alextreme added enhancement New feature or request triage labels Dec 9, 2024
@Floris272 Floris272 moved this to Todo in Open Producten Feb 6, 2025
@Floris272 Floris272 added this to the mvp 1.0.0 milestone Feb 11, 2025
@Floris272 Floris272 moved this from Todo to In Progress in Open Producten Feb 13, 2025
@Floris272 Floris272 removed the triage label Feb 17, 2025
@Floris272 Floris272 moved this from In Progress to Implemented in Open Producten Feb 18, 2025
@Floris272 Floris272 self-assigned this Feb 19, 2025
@Floris272 Floris272 linked a pull request Feb 19, 2025 that will close this issue
Floris272 added a commit that referenced this issue Feb 24, 2025
Floris272 added a commit that referenced this issue Feb 24, 2025
Floris272 added a commit that referenced this issue Feb 27, 2025
Floris272 added a commit that referenced this issue Feb 27, 2025
Floris272 added a commit that referenced this issue Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Implemented
Development

Successfully merging a pull request may close this issue.

2 participants