Skip to content
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

Bug/12308 #15781

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bug/12308 #15781

wants to merge 4 commits into from

Conversation

moraj-turing
Copy link

This PR implements missing requirements from #12308

Impact

  • New migrations
  • New/Updated API fields or mutations
  • Deprecated API fields or mutations
  • Removed API types, fields, or mutations

Docs

N/A

Pull Request Checklist

  • Privileged queries and mutations are either absent or guarded by proper permission checks
  • Database queries are optimized and the number of queries is constant
  • Database migrations are either absent or optimized for zero downtime
  • The changes are covered by test cases
  • All new fields/inputs/mutations have proper labels added (ADDED_IN_X, PREVIEW_FEATURE, etc.)
  • All migrations have proper dependencies
  • All indexes are added concurrently in migrations
  • All RunSql and RunPython migrations have revert option defined

@kadewu
Copy link
Member

kadewu commented Apr 10, 2024

Hi @moraj-turing, thank you for your contribution!

About changes, please adjust PR name to something more meaningful (e.g. the issue name).

Is this PR ready for review? Cause from my understanding it's still missing some of the requirements from the ticket. You can always mark PR as draft when you still working on it, and this way it will be more clear for other developers.
Please also remember to test changes that you are introducing.

@moraj-turing
Copy link
Author

Hello, this PR is ready. Most of the work was already done on previous changes by other contributors.

Copy link
Member

@kadewu kadewu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And couple more general comments:

class Meta:
doc_category = DOC_CATEGORY_PRODUCTS


class ProductMediaCreate(BaseMutation):
product = graphene.Field(Product)
media = graphene.Field(ProductMedia)
support_meta_field = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add tests to check ensure that changes works?

@@ -939,6 +939,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):
)
variants = NonNullList(
ProductVariant,
required=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not mix different issues together in one PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants