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

[Hotfix] fix tutorial content mutation #25096

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Sep 28, 2018

Hotfix PR for #25095.

Fixes regression caused by #24613.
Returns `deep_dup` contents from `Tutorials` so results hash can be
mutated by views without affecting the cached object.
Fixes a caching issue in hourofcode.com/learn.
Copy link
Member

@breville breville left a comment

Choose a reason for hiding this comment

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

The test looks like it addresses the known issue. Are there any risks in additional behavior that deep_dup introduces?

@wjordan
Copy link
Contributor Author

wjordan commented Sep 28, 2018

In general there will be extra memory usage and reduced performance from the object creation, but this didn't seem to be significant. I'm pretty sure dataset used in development is the same as that used in production so I'm not too worried about much unexpected behavior compared to local testing.

@wjordan wjordan merged commit 675ae06 into production Sep 28, 2018
@wjordan wjordan deleted the tutorials_cache_hotfix branch September 28, 2018 06:51
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.

None yet

2 participants