-
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.
fix(gatsby-source-drupal): Ensure all new nodes are created before cr…
- Loading branch information
1 parent
62a5612
commit cdeff78
Showing
5 changed files
with
214 additions
and
0 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
45 changes: 45 additions & 0 deletions
45
packages/gatsby-source-drupal/src/__tests__/fixtures/webhook-body-multiple-nodes.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"action": "update", | ||
"data": [ | ||
{ | ||
"type": "node--article", | ||
"id": "article-10", | ||
"attributes": { | ||
"id": 100, | ||
"uuid": "article-10", | ||
"title": "Article #10", | ||
"body": "Aliquam non varius libero, sit amet consequat ex. Aenean porta turpis quis vulputate blandit. Suspendisse in porta erat. Sed sit amet scelerisque turpis, at rutrum mauris. Sed tempor eleifend lobortis. Proin maximus, massa sed dignissim sollicitudin, quam risus mattis justo, sit amet aliquam odio ligula quis urna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut mollis leo nisi, at interdum urna fermentum ut. Fusce id suscipit neque, eu fermentum lacus. Donec egestas laoreet felis ac luctus. Vestibulum molestie mattis ante, a vulputate nunc ullamcorper at. Ut hendrerit ipsum eget gravida ultricies." | ||
}, | ||
"relationships": { | ||
"field_tags": { | ||
"data": [ | ||
{ | ||
"type": "taxonomy_term--tags", | ||
"id": "tag-10" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "taxonomy_term--tags", | ||
"id": "tag-10", | ||
"attributes": { | ||
"id": 110, | ||
"uuid": "tag-10", | ||
"langcode": "en", | ||
"name": "Tag #10", | ||
"description": null, | ||
"weight": 0, | ||
"changed": 1523031646, | ||
"default_langcode": true, | ||
"path": { | ||
"alias": null, | ||
"pid": null, | ||
"langcode": "en" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|
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