-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(gatsby): new dirty tracking implementation for queries (#27504)
* Remove dead code * Consistently use job hash for static-query identification on the frontend (and queryId in node) * New reducer to track the state of queries * tmp: output newly calculated dirty queries (still using old calculation for actual query running to compare) * Add new `QUERY_START` action * Remove redundant component-data-dependencies reducer (now handled in the queries reducer) * Actually use the new query tracking (and remove the old one) * Fix data-tracking test * Shape of tracked component state should match component reducer * remove page-component machine (as we track query state in `queries` reducer now) * Remove DELETE_COMPONENTS_DEPENDENCIES action * Cleanup * Cleanup * Re-enable previously skipped test * Cleanup * Do-not re-run queries with babel extraction errors * WIP: tests for the queries reducer * Track babel errors per component (not per page/static query) * tests for the queries reducer * rename test * Cleanup / update snapshots * Add missing snapshot * fix integration tests? * Revert "fix integration tests?" This reverts commit 066a4e1 * Restore DELETE_COMPONENTS_DEPENDENCIES as a no-op for BC * Take into account deletePage/createPage pattern in onCreatePage * Update test snapshot * Do not mark page query as dirty when component has babel errors * Use flag constants vs. literal values in tests * Rename FLAG_ERROR_BABEL to FLAG_ERROR_EXTRACTION
- Loading branch information
Showing
23 changed files
with
1,322 additions
and
954 deletions.
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.