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

feat(gatsby): Defer node mutation during querying #25479

Merged
merged 68 commits into from
Jul 22, 2020
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1193d2e
Move bootstrap into machine
ascorbic Jun 25, 2020
696d5fa
Add parent span and query extraction
ascorbic Jun 26, 2020
77b7f3b
Add rebuildSchemaWithSitePage
ascorbic Jun 26, 2020
6f97db6
Use values from context
ascorbic Jun 26, 2020
36e8ef4
Remove logs
ascorbic Jun 26, 2020
07d0741
Add redirectListener
ascorbic Jun 26, 2020
cd3a909
Changes from review
ascorbic Jun 26, 2020
d2b615b
Log child state transitions
ascorbic Jun 26, 2020
01280a9
Add state machine for query running
ascorbic Jun 29, 2020
d049022
Changes from review
ascorbic Jul 1, 2020
2dad129
Changes from review
ascorbic Jul 1, 2020
1df526a
Merge branch 'feat/bootstrap-state-machine' into feat/query-state-mac…
ascorbic Jul 1, 2020
26420c4
Switch to reporter
ascorbic Jul 1, 2020
637c642
Merge branch 'master' into feat/bootstrap-state-machine
ascorbic Jul 1, 2020
4ff46bd
Merge branch 'master' into feat/bootstrap-state-machine
ascorbic Jul 1, 2020
7bc5056
Use assertStore
ascorbic Jul 1, 2020
cd82b3f
Merge branch 'feat/bootstrap-state-machine' into feat/query-state-mac…
ascorbic Jul 1, 2020
6f0ab66
Merge branch 'master' into feat/query-state-machine
ascorbic Jul 1, 2020
2ce7b77
Remove unused action
ascorbic Jul 1, 2020
133099d
Remove unusued config
ascorbic Jul 1, 2020
e7f426e
Remove unusued config
ascorbic Jul 1, 2020
7da48a6
Add gql runner reset
ascorbic Jul 1, 2020
8f497be
Merge branch 'feat/query-state-machine' of github.com:gatsbyjs/gatsby…
ascorbic Jul 1, 2020
a4ac2dc
Handle node mutation queuing and batching in state machine
ascorbic Jul 2, 2020
6ca668f
Use new pagedata utils
ascorbic Jul 3, 2020
b701d7c
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 3, 2020
d3e7a59
Use develop queue
ascorbic Jul 3, 2020
ae0ece9
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 3, 2020
28e7691
Merge branch 'master' into feat/query-state-machine
ascorbic Jul 3, 2020
896a2af
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 3, 2020
186eb0c
New xstate syntax
ascorbic Jul 3, 2020
c0acfe1
Work-around xstate bug
ascorbic Jul 3, 2020
12d5f20
Track first run
ascorbic Jul 3, 2020
78463b7
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 3, 2020
8987299
Track first run
ascorbic Jul 3, 2020
dc3fb42
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 3, 2020
fa05e0d
Disable --quiet in e2e
ascorbic Jul 3, 2020
4e8609f
Don't defer node mutation if we're outside the state machine
ascorbic Jul 3, 2020
425eafc
Re-quieten e2e
ascorbic Jul 3, 2020
aadc60b
Listen for query file changes
ascorbic Jul 6, 2020
33dc4fa
Lint
ascorbic Jul 6, 2020
50faf93
Handle webhook
ascorbic Jul 6, 2020
f9bdf3c
Merge branch 'master' into feat/query-state-machine
ascorbic Jul 7, 2020
059798b
Changes from review
ascorbic Jul 7, 2020
da0b2ce
Merge branch 'feat/query-state-machine' into feat/defer-node-mutation
ascorbic Jul 7, 2020
e9bf259
Fix typings
ascorbic Jul 7, 2020
2116857
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 7, 2020
e514a76
Changes from review
ascorbic Jul 7, 2020
9edd938
Typefix
ascorbic Jul 7, 2020
a32dc5f
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 9, 2020
b126a99
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 13, 2020
95e0291
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 13, 2020
9496046
feat(gatsby): Move final parts into develop state machine (#25716)
ascorbic Jul 14, 2020
1cab0be
Resolve api promises
ascorbic Jul 15, 2020
6966e76
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 15, 2020
00a975d
Remove unused action
ascorbic Jul 16, 2020
087ed94
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 16, 2020
c807968
Move logging into helper
ascorbic Jul 16, 2020
69f9a7a
Changes from review
ascorbic Jul 16, 2020
523478a
Manually save db
ascorbic Jul 17, 2020
b814215
Add comments
ascorbic Jul 17, 2020
38c05f5
Remove first run from query running
ascorbic Jul 17, 2020
98936a8
Refactor into separate data layer machines
ascorbic Jul 17, 2020
3f758f5
Fix condition
ascorbic Jul 17, 2020
f12ceec
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 20, 2020
e8ddb4d
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 20, 2020
e450d7f
Merge branch 'master' into feat/defer-node-mutation
ascorbic Jul 20, 2020
0d672fc
Merge remote-tracking branch 'upstream/master' into feat/defer-node-m…
Jul 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add rebuildSchemaWithSitePage
ascorbic committed Jun 26, 2020
commit 77b7f3b3783d994b4820cafeeabab48c5aa502d5
3 changes: 3 additions & 0 deletions packages/gatsby/src/commands/develop-process.ts
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ import {
initialize,
postBootstrap,
extractQueries,
rebuildSchemaWithSitePage,
} from "../services"
import { boundActionCreators } from "../redux/actions"
import { ProgramStatus } from "../redux/types"
@@ -162,6 +163,8 @@ module.exports = async (program: IProgram): Promise<void> => {
// These were previously in `bootstrap()` but are now
// in part of the state machine that hasn't been added yet
await postBootstrap({ parentSpan: bootstrapSpan })
await rebuildSchemaWithSitePage({ parentSpan: bootstrapSpan })

await extractQueries({ parentSpan: bootstrapSpan })
bootstrapSpan.finish()