Skip to content

Roll back uniques that no key covers (into #998) - #1110

Merged
TuThoThai merged 17 commits into
v2_remove_uniquefrom
v2_remove_unique_rollbacks
Nov 17, 2026
Merged

TuThoThai merged 17 commits into
v2_remove_uniquefrom
v2_remove_unique_rollbacks

Conversation

@thbar

@thbar thbar commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Sister PR for #998, to merge into it.

TL;DR: I add tests proving duplicates are no longer rejected (red), then restore the missing constraints (green).

In this PR:

  • restores the unique not covered by a key (verbatim copy from v2.0)
  • adds the matching should-fail examples (red before, green after) as proofs
  • CalendarDate: restored too, erring on safety

@thbar thbar added this to the netex_2.0 milestone Nov 17, 2026
@TuThoThai TuThoThai added bug Technical mistake, inconsistency with the documentation, etc. hygiene Technical dept, results in a breaking change. labels Nov 17, 2026
@TuThoThai
TuThoThai merged commit 1a9561a into v2_remove_unique Nov 17, 2026
2 checks passed
@TuThoThai
TuThoThai deleted the v2_remove_unique_rollbacks branch November 17, 2026 13:47
TuThoThai pushed a commit that referenced this pull request Nov 17, 2026
* Remove unique constraints, because we have xsd:key

* Updates of metadata

For both files:
* adding in the metadata the changes made most recently on ref / key constraints
* changing status from 1.0 to 2.0

* edit date to 2026

* Roll-back unique constraints

NeTEx_publication.xsd: Roll-back for deletion of unique contraints that were not duplicated with key contraints

* rolback on publication_timetable

NeTEx_publication_timetable.xsd : roll-back on deletion of unique constraints when there is no key constraints

* Roll back uniques that no key covers (into #998) (#1110)

* should-fail: support per-case schema (timetable) and GitHub annotations

* should-fail: duplicate TemplateVehicleJourney (publication)

* should-fail: duplicate GroupOfLinkSequences (timetable)

* should-fail: duplicate ValidBetween (timetable)

* should-fail: duplicate TemplateVehicleJourney (timetable)

* should-fail: duplicate SectionInSequence (timetable)

* rollback: restore GroupOfLinkSequences unique to v2.0 state (publication)

* rollback: restore ValidityCondition unique to v2.0 state (publication)

* rollback: restore UsageValidityPeriod unique to v2.0 state (publication)

* rollback: restore TemplateVehicleJourney unique to v2.0 state (publication)

* rollback: restore GroupOfLinkSequences unique to v2.0 state (timetable)

* rollback: restore ValidityCondition unique to v2.0 state (timetable)

* rollback: restore SectionInSequence unique to v2.0 state (timetable)

* rollback: restore TemplateVehicleJourney unique to v2.0 state (timetable)

* should-fail: duplicate CalendarDate (publication)

* rollback: restore OperatingDay CalendarDate unique to v2.0 state (publication)

* rollback: restore OperatingDay CalendarDate unique to v2.0 state (timetable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Technical mistake, inconsistency with the documentation, etc. hygiene Technical dept, results in a breaking change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants