You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, that PUBLICATION_DATE and PUBLISHED_AT have the same values. It results descriptions in graphql.schema and playground have DEPRECATED_IN_3X_INPUT info. We want to add the info only for PUBLICATION_DATE and not for PUBLISHED_AT.
Steps to reproduce the problem
Find class PageSortField(graphene.Enum)
Add two new sorters, with different name and same value
For one of them, apply some description
Run npm run build-schema
Check, that the description is applied to both sorters
What did you expect to happen?
The description is applied to single sorter
Logs
No response
Environment
Saleor version: 3.7
OS and version: macOS Big Sur
The text was updated successfully, but these errors were encountered:
What are you trying to achieve?
https://saleorcommerce.slack.com/archives/C039MGJDWU8/p1665750963551539
The thing is python built-in
Enum
returns wrongname
if two members, with different names, have the same value.Example:
Note, that
PUBLICATION_DATE
andPUBLISHED_AT
have the same values. It results descriptions in graphql.schema and playground haveDEPRECATED_IN_3X_INPUT
info. We want to add the info only forPUBLICATION_DATE
and not forPUBLISHED_AT
.Steps to reproduce the problem
class PageSortField(graphene.Enum)
npm run build-schema
What did you expect to happen?
The description is applied to single sorter
Logs
No response
Environment
Saleor version: 3.7
OS and version: macOS Big Sur
The text was updated successfully, but these errors were encountered: