-
Notifications
You must be signed in to change notification settings - Fork 45
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
fix(og): fixed open graph field names #97
Conversation
`:` Isn't allowed character for a field when the grapqhl plugin tries to generate definitions for it. This makes the build of the app fail if one has both Graphql Plugin and Seo plugin and adds an seo component to some content-type. Changing the names of the open-graphql components to not include the `:` fixes this bug.
@jhoward1994 Hi sorry to directly mention you but, I'd be nice if we could get this merged as soon as possible and you are the person I remember being most active in these types of PRs. Could you please look at it or assign it to someone ? |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR and for all your patience with this 🙏🏻. To me this PR looks good & is working in conjunction with the graphQL plugin.
@Mcastres would you be able to take a look at this too please?
This PR needs to be merged ASAP as it can produce this serious issue strapi/strapi#18664 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
The : character is not allowed in field names when the GraphQL plugin generates type definitions. This restriction causes the app build to fail when both the GraphQL plugin and the SEO plugin are used, specifically when an SEO component is added to a content type.
Changes
Screenshots
Related Issues
This PR addresses the issues raised in:
Both issues suggest renaming attributes as a potential solution but also note that the preview feature in the admin panel stops working. This PR resolves both the build failure and the preview functionality issue.
Testing