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

Bug/DES-2608: Fix copy_meta util to avoid altering the original metadata #1122

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

jarosenb
Copy link
Member

@jarosenb jarosenb commented Nov 3, 2023

Overview:

Small bug: When we copy metadata, we pass its value attribute into the file_meta_object method which updates the values to reflect the new system/path. This inadvertently updates the values on the original metadata object. This hasn't caused problems yet but it does leave the data in an invalid state. for the remainder of the request This PR changes the method to use a deep copy so the original dict is unaffected.

PR Status:

  • Ready.
  • Work in Progress.
  • Hold.

Related Jira tickets:

@jarosenb jarosenb merged commit 5e4bbc6 into main Nov 6, 2023
@jarosenb jarosenb deleted the task/DES-2608--metadata-copy-reference-bug branch November 6, 2023 03:20
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.

1 participant