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

KAS-4896: change query to only update BIS docs on latest agendaitem based on agenda-activity #2272

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

ValenberghsSven
Copy link
Contributor

@ValenberghsSven ValenberghsSven commented Dec 10, 2024

https://kanselarij.atlassian.net/browse/KAS-4896

https://chat.semte.ch/group/kanselarij-dev?msg=8hM2zfYWrtmM9SdXr

We have some places where we do a query to all agendaitems on designagenda of a subcase.
In reality this is mostly 1 result.
Only in this case it's 2.
We should only ever update 1, the latest one.
But it also depends on what the user wants.
In this change I changed 2 counts of where we did this.

One was the piece-upload.
One was the agendaitem-subcase-sync

The second one also means that changing titles and mandatees of a subcase wont be pushed to the agendaitem that is on the retracted agenda (if it has already been resubmitted to a new agenda)
If it was retracted and updates happen before resubmitting, we will still update the retracted agendaitem like normal.
That makes sense to me, so I didn't force a check on the decision-result-code as suggested in the ticket.
This might need some user feedback as to what is allowed in this scenario.

We also have the linked-pieces logic setup so we update all agendaitems on designagendas.
I have not touched that but we might have to look into that
We also use that query in saveGovernmentAreas in the CasesCaseSubcasesSubcaseIndexController
We set 'formally not yet ok' on all designagendas. which is probably unwanted in this scenario (changing government areas in general should maybe not trigger a formally ok reset ...)

@tdn tdn merged commit 23a3f71 into development Jan 7, 2025
1 check was pending
@tdn tdn deleted the feature/KAS-4896-BIS-updates-on-retracted branch January 7, 2025 10:23
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.

2 participants