Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@carlos-villavicencio-adsk
Copy link
Contributor

@carlos-villavicencio-adsk carlos-villavicencio-adsk commented Feb 7, 2025

@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
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
Member

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.

HISTORY.rst Outdated Show resolved Hide resolved
Co-authored-by: Julien Langlois <16244608+julien-lang@users.noreply.github.com>
@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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.