Skip to content

Conversation

AronNovak
Copy link

GitHub Issue:
#123

What does this Pull Request do?

Adds stricter validation for date ranges, start date should be earlier than end date.

What's new?

It validates date intervals for EDTF fields, so previously accepted (but incorrect) date entries could become suddenly not accepted by this change.

Interested parties

@Islandora/committers

@AronNovak AronNovak changed the title Validate date intervals Validate date intervals - start date must be before end date Jun 13, 2024
@seth-shaw-asu seth-shaw-asu self-assigned this Jun 19, 2024
@seth-shaw-asu
Copy link
Member

Tests are failing because the item you added is processed with the "intervals" parameter of validate() set to FALSE.

See https://github.com/Islandora/controlled_access_terms/blob/2.x/src/EDTFUtils.php#L132 and https://github.com/Islandora/controlled_access_terms/blob/2.x/tests/src/Kernel/EdtfUtilsTest.php#L59.

Copy link

This PR is being marked as stale from inactivity and will be automatically closed in 90 days unless further action is taken. If this PR is still relevant please comment. Please also consider attending the weekly Tech Call to discuss the PR

@github-actions github-actions bot added the Stale label Jul 29, 2025
@github-actions github-actions bot closed this Aug 13, 2025
@amitaibu
Copy link

@AronNovak could you update the tests please

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants