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

SG-38119 Release v3.8.0. Make payload optimization default #366

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

@carlos-villavicencio-adsk carlos-villavicencio-adsk requested a review from a team February 7, 2025 19:20
@carlos-villavicencio-adsk carlos-villavicencio-adsk changed the title Release v3.8.0. Make payload optimization default SG-38119 Release v3.8.0. Make payload optimization default Feb 7, 2025
@@ -561,7 +563,7 @@ def test_related_object_update_entity(self):
result = sg._translate_update_params(entity_type, entity_id, data, multi_entity_update_modes)
self.assertEqual(result, expected)

@mock.patch.dict(os.environ, {"SHOTGUN_API_ENABLE_ENTITY_OPTIMIZATION": "1"})
@mock.patch("shotgun_api3.shotgun.SHOTGUN_API_DISABLE_ENTITY_OPTIMIZATION", False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want to keep the patch here? Instead of removing the line since it's enabled by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems since the module shotgun is loaded in memory, the global module variable value is kept. So this mocking reverts the value to the original value.

Co-authored-by: Julien Langlois <[email protected]>
@carlos-villavicencio-adsk carlos-villavicencio-adsk merged commit 9b9e538 into master Feb 12, 2025
24 checks passed
@carlos-villavicencio-adsk carlos-villavicencio-adsk deleted the make-payload-optimization-default branch February 12, 2025 13:40
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