Skip to content

Conversation

@naftis
Copy link
Member

@naftis naftis commented Sep 26, 2024

Country-config: opencrvs/opencrvs-countryconfig#288

Creates two new GraphQL endpoints:

  • confirmRegistration - allowing confirming a record from WAITING_VALIDATION state
  • rejectRegistration - allowing rejecting a record

This will also enable integrations such as MOSIP 'hijacking' the confirm path and only doing it when they are ready.

@github-actions
Copy link

Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:

  • Changelog is read by country implementors who might not always be familiar with all technical details of OpenCRVS. Keep language high-level, user friendly and avoid technical references to internals.
  • Answer "What's new?", "Why was the change made?" and "Why should I care?" for each change.
  • If it's a breaking change, include a migration guide answering "What do I need to do to upgrade?".

it would be the correct REST action for the state changes: chose convention for now
@ocrvs-bot
Copy link
Contributor

Your environment is deployed to https://ocrvs-6208-reject-registration.opencrvs.dev.

@naftis naftis force-pushed the ocrvs-6208-reject-registration branch from bd84e0e to c2db318 Compare September 30, 2024 14:42
@naftis naftis self-assigned this Sep 30, 2024
@naftis naftis requested a review from rikukissa October 1, 2024 07:26
@naftis naftis force-pushed the ocrvs-6208-reject-registration branch from 2334c1d to 124ec78 Compare October 9, 2024 09:48
@naftis naftis force-pushed the ocrvs-6208-reject-registration branch from 124ec78 to cac78c3 Compare October 9, 2024 09:50
@naftis naftis force-pushed the ocrvs-6208-reject-registration branch from d6ef435 to edb08fb Compare October 9, 2024 13:29
Comment on lines +52 to +53
} else if (isNamedType(fieldType)) {
fieldStr += `${fieldName} `
Copy link
Member Author

Choose a reason for hiding this comment

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

@rikukissa this was missing enums, that's why the packages/gateway/src/features/registration/__snapshots__/type-resolvers.test.ts.snap test had to be updated

Comment on lines +596 to +603
enum RejectionReason {
OTHER
}

input RejectRegistrationInput {
reason: RejectionReason! # Rejection type
comment: String! # Free text comment for audit log
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure yet what type of rejection types could we start amending here.. Essentially this is the same as markEventAsVoided but with a stricter typing

Comment on lines -25 to -29
# TODO
# https://github.com/prismagraphql/graphql-import/issues/180
# https://github.com/prismagraphql/graphql-import/issues/45
type Dummy {
dummy: String!
Copy link
Member Author

Choose a reason for hiding this comment

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

These issues were solved in a version we already have

@naftis naftis requested a review from rikukissa October 10, 2024 13:15
@naftis
Copy link
Member Author

naftis commented Oct 10, 2024

@rikukissa Re-requesting a review; note that client & workflow has broken tests. I can amend the main PR to-do

@naftis naftis force-pushed the ocrvs-6208-reject-registration branch from db05c3e to 1d9a688 Compare October 10, 2024 13:17
@naftis naftis merged commit 1c710c0 into ocrvs-6208 Oct 23, 2024
@naftis naftis deleted the ocrvs-6208-reject-registration branch October 23, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants