Skip to content

Fix nullable fields in all types#82

Merged
rainerdema merged 3 commits intomasterfrom
rainerd/fix-nullable-fields-in-all-types
Mar 20, 2020
Merged

Fix nullable fields in all types#82
rainerdema merged 3 commits intomasterfrom
rainerd/fix-nullable-fields-in-all-types

Conversation

@rainerdema
Copy link
Copy Markdown
Contributor

@rainerdema rainerdema commented Feb 28, 2020

Quick Info

Issue Schema updates New type
N/A 👍 👎

Incorrectly declared fields were found in the following types:

  • SolidusGraphqlApi::Types::Address
  • SolidusGraphqlApi::Types::Store

All changes are made by comparing the GraphQL types with the validations present in their Solidus models.

Note

The null settings in SolidusGraphqlApi::Types::Address of these two fields:

field :phone, String, null: false
field :zipcode, String, null: false

Depends since the Boolean return value of these two Spree::Address instance methods (true):

validates :zipcode, presence: true, if: :require_zipcode?
validates :phone, presence: true, if: :require_phone?

The current type definition refers to the current default configuration in Solidus.

@rainerdema rainerdema added the enhancement New feature or request label Feb 28, 2020
@rainerdema rainerdema self-assigned this Feb 28, 2020
@rainerdema rainerdema force-pushed the rainerd/fix-nullable-fields-in-all-types branch 3 times, most recently from face49a to 6b06a12 Compare February 28, 2020 12:57
@rainerdema rainerdema force-pushed the rainerd/fix-nullable-fields-in-all-types branch 2 times, most recently from 51ea50f to 8b2f644 Compare March 13, 2020 15:49
@rainerdema rainerdema marked this pull request as ready for review March 20, 2020 08:31
@rainerdema rainerdema force-pushed the rainerd/fix-nullable-fields-in-all-types branch from 8b2f644 to 3168fa0 Compare March 20, 2020 10:51
@rainerdema rainerdema merged commit aad4e07 into master Mar 20, 2020
@rainerdema rainerdema deleted the rainerd/fix-nullable-fields-in-all-types branch March 20, 2020 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants