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

Ben/lmb 1288 end date mandatarissen #358

Merged
merged 9 commits into from
Jan 28, 2025

Conversation

bfidlers
Copy link
Contributor

@bfidlers bfidlers commented Jan 20, 2025

Description

Update mandataris form so that the mandataris end date is actually the start of next day.
Add migration to reset end dates for gemeenteraad Zottegem.
Add migration to update end dates previously entered in LMB, so it is actually the start of next day.

How to test

See linked PR.

Links to other PR's

Copy link
Contributor

@JonasVanHoof JonasVanHoof left a comment

Choose a reason for hiding this comment

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

Just looked at the code for now

@@ -88,6 +89,7 @@ ext:eindeF
sh:name "Einde";
sh:order 800;
sh:path mandaat:einde;
fieldOption:endOfDay true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of naming it endOfDay

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other option is startOfNextDay, which would be more correct but I think that makes it more confusing. Otherwise don't really have any better ideas.

Copy link
Collaborator

Choose a reason for hiding this comment

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

keep it

}
INSERT {
GRAPH ?g {
?mandataris mandaat:einde "2025-01-12T23:00:00Z"^^xsd:dateTime .
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to add the dcterms:modified here aswell?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is not really necessary because this is updated in the next migration as well, with a dct:modified.

?mandataris dct:modified ?mod.

?mandataris mandaat:einde ?end.
FILTER(?mod > "2024-01-01T00:00:00Z"^^xsd:dateTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this not create errors for mandatarissen that are at the end of a bestuursorgaan binding end? For now the dateInpit still still showing this as an error when the date is after the max date

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes true, added a new migration to also set the end dates of bestuursorganen to the beginning of the next day

Copy link
Collaborator

Choose a reason for hiding this comment

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

they should also be rendered as end of day, but we don't render them anywhere do we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't render them indeed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove the migration to set these end dates of bestuursorganen, because those are not final yet, and we will set them correctly whenever we do set them.

?mandataris dct:modified ?mod.

?mandataris mandaat:einde ?end.
FILTER(?mod > "2024-01-01T00:00:00Z"^^xsd:dateTime)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are having some issues with data before this date as well, Karel is checking with loket.

@Rahien Rahien merged commit a0ad2f7 into master Jan 28, 2025
@Rahien Rahien deleted the ben/lmb-1288-end-date-mandatarissen branch January 28, 2025 09:20
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