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

SFR-2247: Fixing deep copy work identifiers bug #397

Merged

Conversation

mitri-slory
Copy link
Contributor

This hotfix PR is meant to fix a bug when making a deep copy of the workIdentifiers array since there are Instance objects and deep copy isn't naturally designed to make copies of Instance objects. In this case, it would be better to make a new array that references the Instance objects instead with a shallow copy.

@mitri-slory mitri-slory changed the title Changed deep copy of WorkIdentifiers array to shallow copy SFR-2247: Deep copy of identifiers during clustering process is not fully successful Oct 11, 2024
@Apophenia
Copy link
Contributor

After running this locally with the changes in place, I no longer see the errors in the developer setup process. It makes sense to me that this might fix the error, since SQLAlchemy manages both the original custom data structure and the Instance objects in it.

Copy link
Contributor

@kylevillegas93 kylevillegas93 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! Recommend changing the PR title to be describing the action of the change - e.g. fixing deep copy work identifiers bug

@mitri-slory mitri-slory changed the title SFR-2247: Deep copy of identifiers during clustering process is not fully successful SFR-2247: Fixing deep copy work identifiers bug Oct 15, 2024
@mitri-slory mitri-slory merged commit 7dd7f35 into main Oct 15, 2024
1 check passed
@mitri-slory mitri-slory deleted the NO-REF--Deep-to-Shallow-copy-of-WorkIdentifiers-array branch October 15, 2024 16:53
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