Skip to content

Conversation

@michaelmckinsey1
Copy link
Collaborator

@michaelmckinsey1 michaelmckinsey1 commented Jun 13, 2024

@ilumsden made a good catch in #173, that filter copies should be deep. This PR changes filter_metadata and filter_stats shallow copies to be deep copies. This is because we expect the returned Thicket from a filter to be a separate Thicket object.

Example of changing the filtered Thicket:
image
Shallow Copy - both objects change
image
Deep Copy - only th changes
image

For the sake of a unit test it is sufficient to check that a given filtered Thicket component is not the same object as the component in the original Thicket.

@michaelmckinsey1 michaelmckinsey1 added area-thicket Issues and PRs involving Thicket's core Thicket datastructure and associated classes priority-normal Normal priority issues and PRs status-ready-for-review This PR is ready to be reviewed by assigned reviewers type-bug Identifies bugs in issues and identifies bug fixes in PRs labels Jun 13, 2024
@michaelmckinsey1 michaelmckinsey1 self-assigned this Jun 13, 2024
Copy link
Collaborator

@ilumsden ilumsden left a comment

Choose a reason for hiding this comment

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

Looks good to me. @pearce8 this PR is ready for your review

@ilumsden ilumsden added status-approved No more revisions are required on this PR and it is ready for merge and removed status-ready-for-review This PR is ready to be reviewed by assigned reviewers labels Jun 17, 2024
@pearce8 pearce8 merged commit c2a0172 into llnl:develop Jun 17, 2024
@slabasan slabasan added this to the 2024.2.0 milestone Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-thicket Issues and PRs involving Thicket's core Thicket datastructure and associated classes priority-normal Normal priority issues and PRs status-approved No more revisions are required on this PR and it is ready for merge type-bug Identifies bugs in issues and identifies bug fixes in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants