-
Notifications
You must be signed in to change notification settings - Fork 153
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
Wishlist Update schemas with UID changes #454
Open
RakeshJesadiya
wants to merge
4
commits into
magento:master
Choose a base branch
from
RakeshJesadiya:customer-files-uid-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
type Customer { | ||
gift_registry_list: [GiftRegistry] | ||
gift_registry(id: ID!): GiftRegistry | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we already took care of gift registy. please remove this scope from your PR |
||
gift_registry(uid: ID!): GiftRegistry | ||
} | ||
|
||
type Query { | ||
|
@@ -11,15 +11,15 @@ type Query { | |
giftRegistryTypeId: ID, | ||
searchableDynamicAttributes: [GiftRegistryDynamicAttributeInput] @doc(description: "For select attributes ID should be provided expected. For range search, '_from' and '_to' suffixes can be added to the attribute code. For text attributes provide value for exact matching.") | ||
): [GiftRegistry] @doc(description: "Gift registry search by registrant name and additional searchable attributes.") | ||
giftRegistry(id: ID!): GiftRegistry @doc(description: "This query is intended for guests and some fields of GiftRegistry will not be availalbe") | ||
giftRegistry(uid: ID!): GiftRegistry @doc(description: "This query is intended for guests and some fields of GiftRegistry will not be availalbe") | ||
} | ||
|
||
type Mutation { | ||
# All mutations below should only be accessible to the registry owner. Guest users should be getting authorization error | ||
|
||
createGiftRegistry(giftRegistry: CreateGiftRegistryInput!): CreateGiftRegistryOutput | ||
updateGiftRegistry(id: ID!, giftRegistry: UpdateGiftRegistryInput!): UpdateGiftRegistryOutput | ||
removeGiftRegistry(id: ID!): RemoveGiftRegistryOutput | ||
updateGiftRegistry(uid: ID!, giftRegistry: UpdateGiftRegistryInput!): UpdateGiftRegistryOutput | ||
removeGiftRegistry(uid: ID!): RemoveGiftRegistryOutput | ||
|
||
addGiftRegistryItems(giftRegistryId: ID!, items: [AddGiftRegistryItemInput!]!): AddGiftRegistryItemsOutput | ||
removeGiftRegistryItems(giftRegistryId: ID!, itemIds: [ID!]!): RemoveGiftRegistryItemsOutput | ||
|
@@ -29,7 +29,7 @@ type Mutation { | |
updateGiftRegistryRegistrants(giftRegistryId: ID!, registrants: [UpdateGiftRegistryRegistrantInput!]!): UpdateGiftRegistryRegistrantsOutput | ||
removeGiftRegistryRegistrants(giftRegistryId: ID!, registrantIds: [ID!]!): RemoveGiftRegistryRegistrantsOutput | ||
|
||
shareGiftRegistry(id: ID!, sender: ShareGiftRegistrySenderInput!, invitees: [ShareGiftRegistryInviteeInput!]!): ShareGiftRegistryOutput | ||
shareGiftRegistry(uid: ID!, sender: ShareGiftRegistrySenderInput!, invitees: [ShareGiftRegistryInviteeInput!]!): ShareGiftRegistryOutput | ||
} | ||
|
||
input ShareGiftRegistryInviteeInput | ||
|
@@ -58,12 +58,12 @@ input AddGiftRegistryItemInput { | |
|
||
# Should be defined in scope of https://github.com/magento/architecture/blob/master/design-documents/graph-ql/coverage/add-items-to-cart-single-mutation.md | ||
input EnteredOptionInput { | ||
id: String! | ||
uid: String! | ||
value: String! | ||
} | ||
|
||
input UpdateGiftRegistryItemInput { | ||
id: ID! | ||
uid: ID! | ||
quantity: Float! | ||
note: String | ||
} | ||
|
@@ -79,7 +79,7 @@ input UpdateGiftRegistryInput { | |
} | ||
|
||
input CreateGiftRegistryInput { | ||
id: ID @doc(description: "Optional id, can be generated on the client and used for sending multiple gift-registry related mutations in a single request. For example, create registry and immediatly add items or registrants.") | ||
uid: ID @doc(description: "Optional id, can be generated on the client and used for sending multiple gift-registry related mutations in a single request. For example, create registry and immediatly add items or registrants.") | ||
event_name: String! | ||
type_id: String! | ||
message: String! | ||
|
@@ -95,7 +95,7 @@ input GiftRegistryShippingAddressInput @doc(description: "Either address data or | |
} | ||
|
||
input UpdateGiftRegistryRegistrantInput { | ||
id: ID! | ||
uid: ID! | ||
first_name: String | ||
last_name: String | ||
email: String | ||
|
@@ -155,7 +155,7 @@ type ShareGiftRegistryOutput { | |
} | ||
|
||
type GiftRegistryType { | ||
id: ID! | ||
uid: ID! | ||
label: String! | ||
dynamic_attributes_metadata: [GiftRegistryDynamicAttributeMetadataInterface] | ||
} | ||
|
@@ -224,7 +224,7 @@ type GiftRegistrySelectAttributeOptionMetadata { | |
} | ||
|
||
type GiftRegistry { | ||
id: ID! | ||
uid: ID! | ||
event_name: String! | ||
type: GiftRegistryType | ||
message: String! | ||
|
@@ -239,7 +239,7 @@ type GiftRegistry { | |
} | ||
|
||
interface GiftRegistryItemInterface { | ||
id: String! | ||
uid: String! | ||
quantity: Float! | ||
quantity_fulfilled: Float! | ||
note: String | ||
|
@@ -301,7 +301,7 @@ enum GiftRegistryDynamicAttributeGroup { | |
} | ||
|
||
type GiftRegistryRegistrant { | ||
id: ID! | ||
uid: ID! | ||
first_name: String! | ||
last_name: String! | ||
email: String! @doc(description: "Accessible to the registry owner only") | ||
|
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.
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.
We should just deprecate wishlist field and use new field wishlists, which will always have one item in Open Source.
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.
@melnikovi I see, you have updated the schema file, Is there a need to do any additional changes to the schema file?
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.
what he means here is we should either add wishlist_v3
However we decided to make id not required and add uid also as not required
wishlist_v2(id: ID, uid: ID) - in the code we will make at least 1 that's required but not through schema
adding wishlist_v3 for this is kind of intrusive.