-
Notifications
You must be signed in to change notification settings - Fork 1
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
PIN-5961: added delegation-items-archiver scaffold #1374
base: feature/incaricato
Are you sure you want to change the base?
PIN-5961: added delegation-items-archiver scaffold #1374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 two super minor comments, no strong opinion
? unsafeBrandId<CorrelationId>(delegationMsg.correlation_id) | ||
: generateId<CorrelationId>(); | ||
|
||
const loggerInstance = logger({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the logger setup in the processMessage
main function in the index, so that we set up everything there, before routing from a message to its handler
// import { getInteropBeClients } from "./clients/clientsProvider.js"; | ||
|
||
// const { agreementProcessClient, purposeProcessClient } = getInteropBeClients(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the clients, let's set them up in the index and pass them as params to handleMessage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the new name less meaningful: delegation archiver seems to be something that archives the delegations, but, instead, it reacts to delegation archive events and archives something else. See for reference eservice-descriptors-archiver
: a consumer that reacts to agreements archive events and archives descriptors.
What about something like delegated-agreements-purposes-archiver
or delegated-items-archiver
or something similar?
I agree with changing its name, how about |
@AsterITA |
[Closes PIN-5961]