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

Prevent import of duplicate default COCs #19101

Merged
merged 41 commits into from
Dec 2, 2024
Merged

Conversation

jason-p-pickering
Copy link
Contributor

@jason-p-pickering jason-p-pickering commented Nov 8, 2024

This PR attempts to solve two problems when importing an alternative default Category option combos through the metadata API. This PR should prevent the import of a duplicated, non-standard default category option combination.

Some time ago, this was hard-coded into the system, but it is still possible to import another default COC with a different UID. This creates all sorts of analysis and configuration issues. A separate integrity check has also been created to identify this situation in existing systems. Various tests which utilized the alternative default COCs needed to be updated.

Some tests needed to be updated as part of this PR. Some integration and E2E tests were utilizing an alternative default COC, and these have now been updated to use the standard default COC instead.

@jason-p-pickering jason-p-pickering marked this pull request as draft November 8, 2024 07:58
@jason-p-pickering jason-p-pickering marked this pull request as ready for review November 20, 2024 16:33
@jason-p-pickering jason-p-pickering requested a review from a team November 20, 2024 16:33
@jbee
Copy link
Contributor

jbee commented Nov 26, 2024

As discussed the basic idea of this PR is not wrong but to really validate duplicates correctly we need to consider all effects of the import context as a whole which is difficult to do in the bundle hooks. This needs some more thinking about where we could have such a overall consistency validation.

@jbee jbee closed this Nov 26, 2024
@jason-p-pickering jason-p-pickering changed the title Prevent import of duplicate COCs Prevent import of duplicate default COCs Nov 27, 2024
@jbee jbee merged commit f016834 into master Dec 2, 2024
15 checks passed
@jbee jbee deleted the duplicate-cocs-prevent-import branch December 2, 2024 08:05
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.

4 participants