Skip to content

AER-3979 Replaced duplicate source id check with more generic cohesion check in reading GML - #402

Merged
Hilbrand merged 1 commit into
aerius:mainfrom
Hilbrand:AER-3979-duplicate-id-check
Oct 26, 2026
Merged

Hilbrand merged 1 commit into
aerius:mainfrom
Hilbrand:AER-3979-duplicate-id-check

Conversation

@Hilbrand

Copy link
Copy Markdown
Member

The check in GMLConversionData was only used for emission sources. But that check is also part of the cohesion check that also test other id's. Therefore, use more generic one.
Note that when imported with schema validation these checks never trigger because the schema validation will already report duplications and not process the file any further.

…n check in reading GML

The check in GMLConversionData was only used for emission sources. But that check is also part of the cohesion check that also test other id's.
Therefore, use more generic one.
Note that when imported with schema validation these checks never trigger because the schema validation will already report duplications and not process the file any further.

@MichielJanssen-DAT MichielJanssen-DAT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK to use COHESION_DUPLICATE_SOURCE_IDS and check for other issues using SituationCohesionValidator.checkCohesion.
Should this be merged together with changes (removing GML_ID_NOT_UNIQUE) in other repositories?

@Hilbrand

Copy link
Copy Markdown
Member Author

@MichielJanssen-DAT Not needed to be merged with other repos as they don't use this snapshot version yet. If they start using it, it likely only an issue for the translations that will fail the unit test checking if everything matches as there is no direct usage of the enum value (references go implicit via the error code).

@MichielJanssen-DAT MichielJanssen-DAT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK as long as other repositories with GML_ID_NOT_UNIQUE don't use this (snapshot) version yet

@BertScholten BertScholten left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK

@Hilbrand
Hilbrand merged commit d1f1139 into aerius:main Oct 26, 2026
1 check passed
@Hilbrand
Hilbrand deleted the AER-3979-duplicate-id-check branch October 26, 2026 08:24
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