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-source-drupal): add typePrefix option #37967

Merged
merged 7 commits into from Apr 27, 2023

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Apr 21, 2023

Description

Adds support for type prefixes to the Drupal source plugin. When set, all types generated by the plugin are prefixed with that value. This is analogous to similar options in the Shopify and WordPress plugins.

Documentation

I've added it to the README

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 21, 2023
Comment on lines -798 to -803
store,
cache,
createNode,
createNodeId,
getCache,
reporter,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These aren't valid props

@LekoArts LekoArts added topic: source-drupal Related to Gatsby's integration with Drupal topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 21, 2023
Copy link
Contributor

@TylerBarnes TylerBarnes left a comment

Choose a reason for hiding this comment

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

Looking good!

@TylerBarnes TylerBarnes self-requested a review April 21, 2023 20:55
TylerBarnes
TylerBarnes previously approved these changes Apr 21, 2023
@ascorbic
Copy link
Contributor Author

I've updated to capitalise the typePrefix, and at the same time optimised isFileNode

TylerBarnes
TylerBarnes previously approved these changes Apr 25, 2023
@LekoArts
Copy link
Contributor

Unit tests are failing (valid)

@ascorbic
Copy link
Contributor Author

@LekoArts tests are now passing

@ascorbic ascorbic requested a review from LekoArts April 26, 2023 15:29
@LekoArts LekoArts merged commit 3f8c55b into gatsbyjs:master Apr 27, 2023
29 of 31 checks passed
@ascorbic ascorbic deleted the drupal-prefix branch April 27, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-drupal Related to Gatsby's integration with Drupal topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants