gatsby-source-contentful: Next Major Version Public Test #38585
Replies: 21 comments 90 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
@axe312ger I've been looking at custom type prefixes and they don't seem to be working. If I set query MyQuery {
allContentfulContentTypePost {
nodes {
title
}
}
allCustomPrefixPost {
nodes {
title
}
}
} ..returns {
"data": {
"allContentfulContentTypePost": {
"nodes": [
{
"title": "Lorem Ipsum is simply dummy text of printing and typesetting"
},
{
"title": "Friends of Sydney: Flora Fricker"
},
{
"title": "This is a title"
},
{
"title": "This is a blog post by Theo"
}
]
},
"allCustomPrefixPost": {
"nodes": []
}
},
"extensions": {}
} |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm super keen for this to officially release. In testing, one issue I've noticed is that Gatsby node fields seem to no longer end up in the schema, practically breaking them. If I call |
Beta Was this translation helpful? Give feedback.
-
Are the codemods supposed to traverse your code? Mine only looks at gatsby-browser.js and does nothing. UPDATE: it looks like the command in the doc does not traverse the code, but if I remove |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Beta Was this translation helpful? Give feedback.
-
And one last thing, which probably relates to the previous issue:
The image_cdn job never reaches 100%, looking like it "finds" new jobs over and over again, as if it got into a recursive endless loop. I think this relates to the linked assets containing all 5000+ images all the time. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
After some number of builds I start to get errors like this, and must clear cache:
|
Beta Was this translation helpful? Give feedback.
-
Am I correct that we are no longer dependent on the gatsby-plugin-image? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, @tony-gutierrez @grgcnnr @FrivalszkyP @me4502 @ascorbic (and others...) Thanks for trying the new version, your feedback really helps me. We are getting closer and closer to a "hopefully bug free" release version :) I updated the README and the steps to migrate, if some of you could check it, maybe dog-food my new "getting started guide", I would be very happy. https://github.com/gatsbyjs/gatsby/blob/feat/contentful-schema-generation/packages/gatsby-source-contentful/README.md Thanks a bunch! |
Beta Was this translation helpful? Give feedback.
-
Hi @axe312ger, any news on this thing going into beta maybe? Let us know if we, open-source contributors can help! A roadmap or a checklist could be helpful, I'd be glad to contribute. |
Beta Was this translation helpful? Give feedback.
-
I just updated from alpha3 to alpha7, and can no longer build. It appears now that no 2 content types can use the same name for a field unless those fields return the exact same type?
|
Beta Was this translation helpful? Give feedback.
-
After some testing, I feel like I've found the source of another performance degradation (and a bug). Based on what I've read on the contentful docs, this appears to be more a shortcoming in the SDK overall, but could be resolved within this plugin. Currently, if you filter a query for an entry down to a specific locale, this isn't reflected in rich text If either the resolver only fetched entries with a locale matching the parent locale, or an option was added to the resolver to allow filtering by locale, this would resolve both the performance issue and the "wrong locale content selection" issue from this plugin's side. |
Beta Was this translation helpful? Give feedback.
-
I am getting this error, any advice on how to solve this? "gatsby-source-contentful" threw an error while running the Unable to create schema for Contentful Content Type My Pages Block: I am using This Content Type have a cross reference to another space if that helps. I am handling the cross-reference myself with the supplied "urn" so I am not expecting the real data from the other space to be available to me. I know that is a current limitation Added information I looked at my current implementation with gatsby-source-contentful 8.13.0 and The type ResourceLink is from the cross-reference.
and the current schema generated for it looks like this
|
Beta Was this translation helpful? Give feedback.
-
Suggestion to add to the migration guide: We have several Contentful apps in our project and they save their data as the type JSON. In the previous version of gatsby-source-contentful you could do this in your graphql city is defined as JSON
in gatsby-source-contentful v9 I get the error Field "city" must not have a selection since type "JSON" has no subfields. and it should just be defined only as city without any proprties. I might have missed something, but it was not obvious to me when I read the migration guide. |
Beta Was this translation helpful? Give feedback.
-
Alpha 8 gives me |
Beta Was this translation helpful? Give feedback.
-
Is this totally on ice/stopped or is there a chance that there will be fix implemented for cross-space references @axe312ger ? |
Beta Was this translation helpful? Give feedback.
-
The Next Major Version of gatsby-source-contentful: Public Test
We're very happy to unveil the upcoming version of the
gatsby-source-contentful
plugin. This release tackles several architectural issues and brings forth significant changes.Key Highlight:
In essence, the absence of values in Contentful fields will no longer break your page.
Moreover, this update aligns the plugin's GraphQL schema more closely with Contentful's GraphQL Content API.
For a detailed overview of the changes, please consult this issue.
1. Installation 🚀
For those utilizing the SQIP plugin:
2. Migration and Codemods ⚙️
This release brings numerous new naming conventions, and to assist your transition to this upcoming version, we've provided several code modifications. Furthermore, you'll need to review the alterations these modifications make and also perform additional manual updates to your codebase.
See our new Migration.md: https://github.com/gatsbyjs/gatsby/blob/feat/contentful-schema-generation/packages/gatsby-source-contentful/MIGRATION.md
3. Manual Review 👀
git diff
. While most are spot-on, occasional discrepancies may arise.git checkout -p
to revert them.gatsby develop
. However, don't forget to validate thatgatsby build
also concludes successfully.git add -p
to certify each change's purpose.4. Your Feedback is Valuable 🌟
We believe in the power of community collaboration. While we've extensively tested these big changes with various projects, there's nothing quite like real-world testing to ensure robustness and compatibility.
Here's how you can help:
Testing: Try integrating this version with your projects. Every unique project setup brings a fresh perspective and uncovers potential nuances.
Suggestions: Do you have ideas for improvements or enhancements? Maybe a feature you've always wished for? Now's the time to let us know.
Feedback: Positive feedback can accelerate this version's transition from alpha to beta and beyond. If things are working smoothly for you, please share your experience.
Bug Reports: Encountered any issues? Report them immediately, so we can ensure a polished final release.
Your input plays a crucial role in shaping the future of
gatsby-source-contentful
. Let's make it the best version yet, together!Beta Was this translation helpful? Give feedback.
All reactions