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

feat(admin-ui): Add product variant bulk actions (assign/delete channel, delete) #2238

Conversation

DanielBiegler
Copy link
Contributor

@DanielBiegler DanielBiegler commented Jun 20, 2023

This adds assigning and deleting from channels and deletion of product variants as bulk-actions.

image

@netlify
Copy link

netlify bot commented Jun 20, 2023

Deploy Preview for effervescent-donut-4977b2 ready!

Name Link
🔨 Latest commit 6dbe73e
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-donut-4977b2/deploys/649830ba34299e0008cc03ac
😎 Deploy Preview https://deploy-preview-2238--effervescent-donut-4977b2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment on lines +118 to +130
private async getTopVariants(take: number) {
return (
await lastValueFrom(
this.dataService.product.getProductVariants({
filterOperator: LogicalOperator.OR,
filter: {
productId: { in: this.productIds },
id: { in: this.productVariantIds },
},
take,
}).single$,
)
).productVariants.items;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

RxJs' toPromise is being deprecated, so I used the opportunity to simplify the fetching.

@DanielBiegler DanielBiegler marked this pull request as ready for review June 25, 2023 12:28
@DanielBiegler DanielBiegler changed the title fix(admin-ui): Fix product variant bulk action for deletion feat(admin-ui): Add product variant bulk actions (assign/delete channel, delete) Jun 25, 2023
@michaelbromley michaelbromley merged commit b25ddcd into vendure-ecommerce:master Jun 28, 2023
@michaelbromley
Copy link
Member

Thanks so much for this! 💯

@DanielBiegler DanielBiegler deleted the feature/product-variant-bulk-actions branch June 28, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants