You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AMP-31226: Add third dimension for disaggregation - #4522
Replace image clearing and adding with a direct HashSet assignment.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Four critical active findings remain, including incorrect activity-ID fallback behavior, a missing Level 2 database view, shallow-clone image corruption, and a sequence collision risk.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Critical link-generation and structure-cloning defects can produce incorrect entity links and delete source images, while the missing third-category dependency check can cause protected deletions to fail with server errors.
The new third-category foreign key is not included in DisaggregationService.isOptionLinkedToIndicator, which still checks only parentCategory and childCategory. Deleting an option referenced only by third_category_id will bypass the API's protection and then fail on the FK at flush (or surface as a 500); include thirdCategory.id in that query.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical active finding shows that AmpStructure.clone() aliases the source image set, so merging can corrupt the original structure; this must be fixed before approval.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical active finding remains because AmpStructure.clone() can clear the source activity version’s shared image set, potentially losing attachments during version merge.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical finding remains in AmpStructure.clone(): its shallow-copied image set is mutated during cloning, potentially corrupting the source activity during a merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.