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

Reject records in Farajaland and end-to-end test rejection #7700

Open
1 of 4 tasks
naftis opened this issue Oct 2, 2024 · 0 comments
Open
1 of 4 tasks

Reject records in Farajaland and end-to-end test rejection #7700

naftis opened this issue Oct 2, 2024 · 0 comments

Comments

@naftis
Copy link
Collaborator

naftis commented Oct 2, 2024

Description

#6208

Within this ticket we are creating two new endpoints confirmRegistration and rejectRegistration. This allows for country-config or third party extensions calling either endpoint. Confirming the registration gets end-to-end tested easily when opencrvs/opencrvs-countryconfig#288 is merged to Farajaland, but rejection needs custom logic.

Let's create a light-hearted check, that when the child's name is President, the birth gets rejected because no one should get born into leadership positions in Farajaland :)

Acceptance criteria

GIVEN a birth registration is made in Farajaland
WHEN the child's name is President
THEN the birth gets rejected via rejectRegistration endpoint

Dev tasks

  • Create rejectRegistration and confirmRegistration to country config
  • Merge to Farajaland
  • In Farajaland, add a check in the event-registration endpoint if the child's first name is President, the birth gets rejected via the rejectRegistration endpoint
  • Create a E2E test that checks the registration actually goes to the rejected workqueue

Important

Depends on #7674
Depends on opencrvs/opencrvs-countryconfig#288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant