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

IBX-1085: Skipped schema generation for invalid Image Variation #108

Merged
merged 8 commits into from
Oct 22, 2021

Conversation

adamwojs
Copy link
Member

JIRA: https://issues.ibexa.co/browse/IBX-1085

Description

As discussed with @bdunogier we should skip schema generation for invalid Image Variation (according to GraphQL spec) and emit warning to logs (and console output):

Skipped schema generation for Image Variation with identifier '50_square'. Please rename given image variation according to GraphQL specification (http://spec.graphql.org/June2018/#sec-Names)

@adamwojs adamwojs changed the title IBX-1085: Skipped schema generation for invalid Image Variation (according to GraphQL spec) IBX-1085: Skipped schema generation for invalid Image Variation Oct 18, 2021
@adamwojs adamwojs marked this pull request as ready for review October 18, 2021 11:23
@adamwojs adamwojs requested review from bdunogier, webhdx and a team October 18, 2021 11:23
src/Schema/Domain/NameValidator.php Outdated Show resolved Hide resolved
src/Schema/Domain/ImageVariationDomain.php Outdated Show resolved Hide resolved
src/Schema/Domain/NameValidator.php Outdated Show resolved Hide resolved
@adamwojs adamwojs requested a review from alongosz October 18, 2021 11:42
Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
Copy link

@kacper-wieczorek-ibexa kacper-wieczorek-ibexa left a comment

Choose a reason for hiding this comment

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

QA - Approved.

Tested on v3.3.10 and v2.5.24

After patch application - error is absent.

@bdunogier
Copy link
Member

Good for me.

Note that this should be documented ! Maybe in the image variation doc ?

@DominikaK DominikaK added the Doc needed The changes require some documentation label Oct 20, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adamwojs adamwojs merged commit 7431563 into 1.0 Oct 22, 2021
@adamwojs adamwojs deleted the ibx_1085 branch October 22, 2021 10:03
@adamwojs
Copy link
Member Author

Waiting for merge up for #109 merge

@DominikaK DominikaK removed the Doc needed The changes require some documentation label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

7 participants