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

Collapsed fields collision in graphql #13927

Merged

Conversation

lampersky
Copy link
Contributor

fixes #13926

@lampersky lampersky changed the title Lampersky/collapsed fileds collision graphql collapsed fileds collision in graphql Jul 3, 2023
@agriffard agriffard changed the title collapsed fileds collision in graphql Collapsed fields collision in graphql Jul 24, 2023
# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.ContentFields/GraphQL/Fields/ContentFieldsProvider.cs
#	src/OrchardCore.Modules/OrchardCore.ContentFields/GraphQL/Fields/ObjectGraphTypeFieldProvider.cs
….com:lampersky/OrchardCore into lampersky/collapsed-fileds-collision-graphql
@lampersky
Copy link
Contributor Author

@sebastienros whenever you have time, please have a look into this PR, also here quick video was added to present those changes in PartSettings

Copy link
Contributor

github-actions bot commented Feb 8, 2024

This pull request has merge conflicts. Please resolve those before requesting a review.

# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.ContentFields/GraphQL/Fields/ObjectGraphTypeFieldProvider.cs

if (settings.PreventFieldNameCollision)
{
return $"{partName.ToFieldName()}{fieldName.ToPascalCase()}";
Copy link
Member

Choose a reason for hiding this comment

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

No separators?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sebastienros yes, no separator, partName.ToFieldName() is producing camelCase, fieldName.ToPascalCase() is producing PascalCase when concatenated you will get some user friendly fields

example:
partName: MyCustomPart
fieldName: MyCustomField
will produce: myCustomMyCustomField graphQL field

image

# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.ContentFields/GraphQL/Fields/ObjectGraphTypeFieldProvider.cs
@Piedone
Copy link
Member

Piedone commented Mar 21, 2024

Do you want to get back to the review of this, @sebastienros?

Copy link
Contributor

github-actions bot commented Apr 5, 2024

This pull request has merge conflicts. Please resolve those before requesting a review.

@Piedone
Copy link
Member

Piedone commented Apr 5, 2024

@sebastienros?


public GraphQLContentTypePartSettingsDriver(IOptions<GraphQLContentOptions> optionsAccessor)
public GraphQLContentTypePartSettingsDriver(IOptions<GraphQLContentOptions> optionsAccessor, IStringLocalizer<GraphQLContentTypePartSettingsDriver> stringLocalizer)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see it used.

@lampersky lampersky requested a review from hishamco April 7, 2024 13:03
@hishamco
Copy link
Member

hishamco commented Apr 7, 2024

@hyzx86 do you have any feedback on this PR?

@Piedone
Copy link
Member

Piedone commented Apr 8, 2024

Please also merge soon before any conflicts can arise, if suitable.

@Piedone
Copy link
Member

Piedone commented Apr 10, 2024

Can this be merged, then, Hisham?

Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

@lampersky
Copy link
Contributor Author

third merge conflict resolved, hurry up guys 😛

@Piedone Piedone merged commit 4e0f746 into OrchardCMS:main Apr 16, 2024
4 checks passed
@Piedone
Copy link
Member

Piedone commented Apr 16, 2024

So, I assume yes, this can be merged :D.

Sorry about that, and thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[graphQL] named part fields return nulls when Collapsed is checked
4 participants