Added missing place order address fields, added new StoreConfig fields#463
Open
paales wants to merge 1 commit intomagento:masterfrom
Open
Added missing place order address fields, added new StoreConfig fields#463paales wants to merge 1 commit intomagento:masterfrom
paales wants to merge 1 commit intomagento:masterfrom
Conversation
`~` = deprecated `+` = added - + type CartAddressInput: prefix - + type CartAddressInput: middlename - + type CartAddressInput: suffix - + type CartAddressInput: gender - + type CartAddressInput: date_of_birth - + type CartAddressInput: fax - + type CartAddressInput: vat_id - + type CartAddressInterface: prefix - + type CartAddressInterface: middlename - + type CartAddressInterface: suffix - + type CartAddressInterface: gender - + type CartAddressInterface: region_v2 - ~ type CartAddressInterface: region - + type CartAddressInterface: country_v2 - ~ type CartAddressInterface: country - + type CartAddressInterface: date_of_birth - + type CartAddressInterface: fax - + type CartAddressInterface: vat_id - + type GenderEnum: OTHER - ~ type CountryCodeEnum: deprecated whole type - + type CustomerAddressInput: country_code_v2 - ~ type CustomerAddressInput: country_code - + type CustomerAddress: country - ~ type CustomerAddress: country_id - ~ type CustomerAddress: country_code - + AddressFieldVisibilityEnum - + StoreConfig: address_prefix - + StoreConfig: address_prefix_options - + StoreConfig: address_middlename - + StoreConfig: address_suffix - + StoreConfig: address_suffix_options - + StoreConfig: address_date_of_birth - + StoreConfig: address_gender - + StoreConfig: address_telephone - + StoreConfig: address_fax - + StoreConfig: address_company - + StoreConfig: address_vat_id - + CompanyLegalAddress: country - ~ CompanyLegalAddress: country_code - + CompanyLegalAddressCreateInput: country_code - ~ CompanyLegalAddressCreateInput: country_id - + CompanyLegalAddressUpdateInput: country_code - ~ CompanyLegalAddressUpdateInput: country_id - + OrderAddress: country - ~ OrderAddress: country_code
paales
commented
Nov 6, 2020
| } | ||
|
|
||
| # todo: We have a problem here that some fields should be required, but that is a breaking schema change? | ||
| input CustomerAddressInput { |
Author
There was a problem hiding this comment.
I've currently left this Todo in place, because the fields shouldn't have been made optional from the start. All input types should be non nullable by default and be made nullable when they actually can be nullable.
|
If we are making changes to the customer inputs I strongly suggest dropping a lot of the required fields and making them optional. The current GraphQL API is very opinionated and introduces requirements which Magento core may not need (OR should not need). A few fields which should not be required:
Please also get the input from the PWA Studio people to make sure that changes to region and countries mean they are still easily cacheable by apollo (in other words we don't end up needing v3). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
customer.graphqlsdocuments, one should probably be cleaned up?Solution
~= deprecated+= added+type CartAddressInput: prefix+type CartAddressInput: middlename+type CartAddressInput: suffix+type CartAddressInput: gender+type CartAddressInput: date_of_birth+type CartAddressInput: fax+type CartAddressInput: vat_id+type CartAddressInterface: prefix+type CartAddressInterface: middlename+type CartAddressInterface: suffix+type CartAddressInterface: gender+type CartAddressInterface: region_v2~type CartAddressInterface: region+type CartAddressInterface: country_v2~type CartAddressInterface: country+type CartAddressInterface: date_of_birth+type CartAddressInterface: fax+type CartAddressInterface: vat_id+type GenderEnum: OTHER~type CountryCodeEnum: deprecated whole type+type CustomerAddressInput: country_code_v2~type CustomerAddressInput: country_code+type CustomerAddress: country~type CustomerAddress: country_id~type CustomerAddress: country_code+AddressFieldVisibilityEnum+StoreConfig: address_prefix+StoreConfig: address_prefix_options+StoreConfig: address_middlename+StoreConfig: address_suffix+StoreConfig: address_suffix_options+StoreConfig: address_date_of_birth+StoreConfig: address_gender+StoreConfig: address_telephone+StoreConfig: address_fax+StoreConfig: address_company+StoreConfig: address_vat_id+CompanyLegalAddress: country~CompanyLegalAddress: country_code+CompanyLegalAddressCreateInput: country_code~CompanyLegalAddressCreateInput: country_id+CompanyLegalAddressUpdateInput: country_code~CompanyLegalAddressUpdateInput: country_id+OrderAddress: country~OrderAddress: country_codeRequested Reviewers
@DrewML tagged you because you are mentioned in the Component Assignments for the checkout frontend.
@paliarush tagged you because you are mentioned in the Component Assignments for the checkout
Closing notes:
What do you guys think? I'm open to discussions, but I think this cleans stuff up a lot. There are a few things I find difficult to oversee: