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

Don't allow out of order accesses in the global scope #431

Merged

Conversation

zsol
Copy link
Member

@zsol zsol commented Dec 14, 2020

Summary

While investigating #430 I realized that scope provider might attach accesses to assignments AFTER the access in the global scope. This PR fixes that bug.

Test Plan

Added test case and verified it fails before this PR.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 14, 2020
@zsol zsol force-pushed the scope-ordering-no-fallback-on-global branch from 5d09304 to f95ef02 Compare December 15, 2020 09:24
@zsol zsol requested a review from jimmylai December 15, 2020 09:56
Copy link
Contributor

@jimmylai jimmylai left a comment

Choose a reason for hiding this comment

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

LGTM

@jimmylai jimmylai merged commit 660e533 into Instagram:master Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants