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

Events v2 collect certificate workflow boilerplate code #8321

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

tareq89
Copy link
Collaborator

@tareq89 tareq89 commented Jan 10, 2025

@tareq89 tareq89 requested a review from rikukissa January 10, 2025 14:32
@tareq89 tareq89 self-assigned this Jan 10, 2025
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?".

@tareq89 tareq89 marked this pull request as draft January 10, 2025 14:52
@rikukissa rikukissa requested a review from makelicious January 13, 2025 02:53
Copy link
Member

@rikukissa rikukissa left a comment

Choose a reason for hiding this comment

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

👍

@tareq89 tareq89 force-pushed the ocrvs-event-v2-7919 branch from ab0e65e to 5bce870 Compare January 14, 2025 16:09
Comment on lines 80 to 96
appConfig: router({
get: publicProcedure
.output(ApplicationConfigResponseSchema)
.query(async (options) => {
return getAppConfigurations(options.ctx.token)
}),
getCertificateTemplateSVGById: publicProcedure
.input(z.object({ id: z.string() }))
.output(z.string())
.query(async (options) => {
const template = await getCertificateTemplateById(
options.ctx.token,
options.input.id
)
return template
})
}),
Copy link
Member

Choose a reason for hiding this comment

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

I think unless there's a compelling reason to do so, let's not bring these concerns into the events service. From memory, these should be available in the client's Redux store already? It's fine to read the Redux store from the new side if the information already exists there.

@tareq89 tareq89 force-pushed the ocrvs-event-v2-7919 branch from 5bce870 to 8566d57 Compare January 15, 2025 05:14
eventId: event.id,
data: form,
transactionId: uuid(),
draft: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it always draft?

packages/commons/src/events/AppConfig.ts Outdated Show resolved Hide resolved
packages/commons/src/events/AppConfig.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,295 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since events creates generic events, we might want to move some of the code out of client

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, figuring out how to avoid them.

@tareq89 tareq89 force-pushed the ocrvs-event-v2-7919 branch from 8566d57 to 35f3822 Compare January 16, 2025 15:53
@tareq89 tareq89 force-pushed the ocrvs-event-v2-7919 branch from 35f3822 to 29ac67d Compare January 20, 2025 15:53
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.

3 participants