-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Implement product clone #11785
Implement product clone #11785
Conversation
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.
Great work, and I have a suggestion to improve.
app/views/admin/products_v3/components/_product_actions.html.haml
Outdated
Show resolved
Hide resolved
Thanks for the suggestions @dacook. Will incorporate those :) |
…hub.com/chahmedejaz/openfoodnetwork into task/11067-admin_style_v3-product-clone
|
||
flash[:success] = if @new.save | ||
Spree.t('notice_messages.product_cloned') |
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.
Removing this to match with old UI experience i.e. We don't show any message on the UI whether the clone process was successful or not.
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.
Good idea to remove the unused code 👍
Of course, we will try to implement these messages in the new UI, but the method will depend on #11517 which is in progress.
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.
Looks good so far, will await for Mario's comment
|
||
flash[:success] = if @new.save | ||
Spree.t('notice_messages.product_cloned') |
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.
Good idea to remove the unused code 👍
Of course, we will try to implement these messages in the new UI, but the method will depend on #11517 which is in progress.
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.
Great! I checked the specs and they look good too, although I have a suggestion to speed one up so will go ahead and try it.
Additionally, I've noticed that you've merged master into the branch a few times. Most of the time, it's ok when it says "This branch is out of date", but if there is a conflict, we do need to update it sometimes.
So when we do this, our preference is to rebase in order to keep commit history clean. Could you please try that next time?
This comment was marked as resolved.
This comment was marked as resolved.
Awaiting a second review and manual testing. |
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.
Great thank you!
I will adjust one little thing and rebase at the same time.
Thank you @dacook for the suggestions. I'll take care of the rebase thing next time. 😄 |
Seems to work as expected, thanks @chahmedejaz 💪 Merging! |
What? Why?
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates