-
Notifications
You must be signed in to change notification settings - Fork 9.4k
31075-added type to CustomizableDateValue for detect from one of three #31164
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
31075-added type to CustomizableDateValue for detect from one of three #31164
Conversation
Hi @korovitskyi. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@@ -153,6 +153,7 @@ type CustomizableDateOption implements CustomizableOptionInterface @doc(descript | |||
type CustomizableDateValue @doc(description: "CustomizableDateValue defines the price and sku of a product whose page contains a customized date picker.") { | |||
price: Float @doc(description: "The price assigned to this option.") | |||
price_type: PriceTypeEnum @doc(description: "FIXED, PERCENT, or DYNAMIC.") | |||
type: String @doc(description: "date, date_time or time") |
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.
I would suggest the ENUM type instead if we have a predefined set of values
https://graphql.org/learn/schema/#enumeration-types
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.
@rogyar ,thanks for review.
This case was fixed.
@magento run Static Tests, WebAPI Tests |
Hi @korovitskyi. Please, check the failing static tests. |
@magento run Static Tests |
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.
@cpartica changes looks good to me. Looping you in to confirm the schema changes.
@@ -49,6 +49,12 @@ enum PriceTypeEnum @doc(description: "This enumeration the price type.") { | |||
DYNAMIC | |||
} | |||
|
|||
enum CustomizableDateTypeEnum @doc(description: "This enumeration customizable date type.") { | |||
date |
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.
these should be all caps
I think you need a resolver for that or en enum value mapper converter
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.
@cpartica, thanks for the review.
Changes were added.
@magento run Static Tests, WebAPI Tests |
This pull request is being processed internally. Please do not add anymore commits on this PR. |
Hi @korovitskyi, thank you for your contribution! |
Description (*)
Fixed the issue
GraphQL: CustomizableDateOption or CustomizableDateValue should indicate the precise Date option type
.Was added
type
option to detect one of three CustomizableDateOption types: date, date_time or time.Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)