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

Temporal coverage with only start date #3192

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

magopian
Copy link
Contributor

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...

Copy link
Contributor

@maudetes maudetes left a 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 ;)

@magopian magopian changed the title Test temporal coverage with only start date Temporal coverage with only start date Nov 14, 2024
@magopian
Copy link
Contributor Author

udata (old) admin daterange may crash as well?

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.

@magopian magopian requested a review from maudetes November 14, 2024 10:24
@magopian
Copy link
Contributor Author

Updated the PR with a change to the old admin so it also allows setting/editing a temporal coverage with only a start date.

Copy link
Contributor

@bolinocroustibat bolinocroustibat left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

Copy link
Contributor

@maudetes maudetes left a 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!

js/components/form/daterange-picker.vue Outdated Show resolved Hide resolved
Copy link
Contributor

@maudetes maudetes left a 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

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.

Fonctionnement de la couverture temporelle dans le parcours
3 participants