-
Notifications
You must be signed in to change notification settings - Fork 89
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
Temporal coverage with only start date #3192
base: master
Are you sure you want to change the base?
Conversation
Code from @ThibaudDauce: https://github.com/opendatateam/udata/compare/temporal_coverage_with_only_start_date?expand=1 Was copy/pasted from his branch, because cherry-picking led to humongous conflicts for some reason...
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.
Thank you for this PR! I think it works nicely but we should probably check for side effects a bit 🕵️
On udata-front, we should probably re-open datagouv/udata-front#411 and I think the udata (old) admin daterange may crash as well?
Don't forget the changelog ;)
Regarding the (old) admin daterange, I've just tested and it seems to work as usual, no crashes if you provide both start and end date (this behavior wasn't changed by this PR as far as I can tell). Not providing an end date shows a frontend validation error asking for both the start and end date. One thing that fails in the old admin: editing a dataset that has no end date. In this case, the dataset can't be updated unless an end date is provided. I'll work on allowing that in this PR. |
Updated the PR with a change to the old admin so it also allows setting/editing a temporal coverage with only a start date. |
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.
Nice, LGTM!
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.
Minor comment on the admin, but else I think we're fine!
Signed-off-by: Mathieu Agopian <[email protected]>
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.
We'll need to be ready to merge datagouv/udata-front#411 before merging this PR.
I think we will probably need to update the front-end as well. cc @nicolaskempf57 & @ThibaudDauce
Fixes #1268
Code from @ThibaudDauce:
https://github.com/opendatateam/udata/compare/temporal_coverage_with_only_start_date?expand=1
Was copy/pasted from his branch, because cherry-picking led to humongous conflicts for some reason...