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

feature/KAS-4629: updateBetreftContent & updateBeslissingenContent now generate text for bekrachtiging #2103

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

StuyckRuben
Copy link
Contributor

Copy link
Contributor

@ValenberghsSven ValenberghsSven left a comment

Choose a reason for hiding this comment

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

generateBetreft is used also in minutes which this does not cover.

Is there a way we could only call generateBetreftonce in digital version?
Perhaps we could pass in subcase instead of just subcaseName and implement ratification logic in 1 spot rather then 2.
The ratification document could be collected in the generateBetreft and added to the list of documents if present.

subcase?.subcaseName
);
let newBetreftContent;
if (subcase?.isBekrachtiging) {
Copy link
Contributor

Choose a reason for hiding this comment

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

subcase?.isBekrachtiging (sync getter) needs await subcase?.type to resolve.

Comment on lines +378 to +380
if (subcase?.isBekrachtiging) {
newBeslissingHtmlContent = "De Vlaamse Regering bekrachtigt bovengenoemd decreet en beslist over te gaan tot de afkondiging ervan.";
} else if (this.args.agendaitem.isApproval) {
Copy link
Contributor

Choose a reason for hiding this comment

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

look into generateApprovalText, we might want something similar for both decisions and minutes?

Also, scopecreep: Could we use generateApprovalText here as well. duplicate code atm

Comment on lines +318 to +320
newBetreftContent = await generateBetreft(
subcase.shortTitle,
null,
Copy link
Contributor

Choose a reason for hiding this comment

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

We would probably still want to agendaitem.shorttitle here.
subcase title and agendaitem should be the same regardless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants