-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
refactor(gatsby): new dirty tracking implementation for queries #27504
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7c8de4e
Remove dead code
vladar 34613f9
Consistently use job hash for static-query identification on the fron…
vladar b9a545f
New reducer to track the state of queries
vladar 52191d6
tmp: output newly calculated dirty queries (still using old calculati…
vladar 350c3a5
Add new `QUERY_START` action
vladar 875402f
Remove redundant component-data-dependencies reducer (now handled in …
vladar f21d447
Actually use the new query tracking (and remove the old one)
vladar 38ea80b
Fix data-tracking test
vladar 7e278e0
Shape of tracked component state should match component reducer
vladar 0f3a5b6
remove page-component machine (as we track query state in `queries` r…
vladar fad497f
Remove DELETE_COMPONENTS_DEPENDENCIES action
vladar 3dadbdd
Cleanup
vladar f1a8fcd
Cleanup
vladar 7f5b8dd
Re-enable previously skipped test
vladar 2f0949e
Cleanup
vladar 2013e1f
Do-not re-run queries with babel extraction errors
vladar 267e50f
WIP: tests for the queries reducer
vladar d909675
Track babel errors per component (not per page/static query)
vladar ab6b2e8
tests for the queries reducer
vladar 3146e34
rename test
vladar e5f1f31
Cleanup / update snapshots
vladar 5ed8f4f
Add missing snapshot
vladar 066a4e1
fix integration tests?
vladar afe30f9
Merge branch 'master' into vladar/query-state-refactor
vladar 8e14546
Revert "fix integration tests?"
vladar a43a0ea
Restore DELETE_COMPONENTS_DEPENDENCIES as a no-op for BC
vladar 16aa4fa
Take into account deletePage/createPage pattern in onCreatePage
vladar 02e00fa
Update test snapshot
vladar 089f898
Do not mark page query as dirty when component has babel errors
vladar cb1536e
Use flag constants vs. literal values in tests
vladar f3c056f
Rename FLAG_ERROR_BABEL to FLAG_ERROR_EXTRACTION
vladar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this change
PAGE_QUERY_RUN
action receiveshash
inpath
property of the payload so we can't invalidate the dirty state for static queries. This also seems more consistent.