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

#1440: create an endpoint for saving asset attributes #1506

Conversation

joweecaquicla
Copy link

@joweecaquicla joweecaquicla commented Jun 18, 2020

Description (*)

This PR will implement the endpoint for saving asset attributes and it also includes a partial implementation of the Edit Image form. The 'Keywords' field will be implemented in a separate task.

Fixed Issues (if relevant)

  1. Fixes Create an endpoint for saving asset attributes #1440: Create an endpoint for saving asset attributes
  2. Fixes Add slide panel to the frontend for editing attributes #1441: Add slide panel to the frontend for editing attributes
  3. Fixes [MFTF] Cover user set image description and sees it on image details #1529: [MFTF] Cover user set image description and sees it on image details

Manual testing scenarios (*)

  1. Login to Admin panel
  2. Open the media gallery. i.e. from the Catalog -> Category -> Content fieldset -> Select image from gallery
  3. Choose an image to edit and click the three dots icon, and choose 'Edit'.
  4. Edit Image Details slide panel will be opened and will allow you to edit the Title and Description of the image.
  5. Click save after applying modifications.

joweecaquicla added 3 commits June 18, 2020 04:04
…templates for edit image details modal and additional controllers
…ent SaveDetails controller and modifications on script and templates for the edit image form
…ed SaveDetails controller and edit details form/slide panel
@joweecaquicla joweecaquicla changed the title [WIP] #1440: create an endpoint for saving asset attributes #1440: create an endpoint for saving asset attributes Jun 23, 2020
@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla joweecaquicla changed the title #1440: create an endpoint for saving asset attributes [WIP] #1440: create an endpoint for saving asset attributes Jun 23, 2020
@joweecaquicla joweecaquicla changed the title [WIP] #1440: create an endpoint for saving asset attributes #1440: create an endpoint for saving asset attributes Jun 28, 2020
@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run all tests

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Hi @joweecaquicla , looks very good! Please see my review comments

@joweecaquicla
Copy link
Author

@magento run all tests

…ed selector for image description in view image details
@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run Functional Tests B2B

@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run Functional Tests B2B

…issue on save details controller and mftf files
@joweecaquicla
Copy link
Author

@magento run all tests

@joweecaquicla
Copy link
Author

@magento run Functional Tests B2B

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for updates @joweecaquicla ! Please see my review comments

@joweecaquicla
Copy link
Author

@magento run all tests

@sivaschenko
Copy link
Member

@magento run all tests

@sivaschenko
Copy link
Member

Great job, @joweecaquicla !
To finalize the PR I have applied the following changes:

  • Added reload grid action after saving image details to update image title in the media gallery
  • Added verification of image title on the grid to MFTF tests
  • Changed AdminEnhancedMediaGalleryImageDetailsSaveActionGroup argument to image for extensibility/flexibility
  • Passed the image attribute to AdminEnhancedMediaGalleryImageDetailsSaveActionGroup for consistency: same data used to edit details and verify them
  • Changed AdminEnhancedMediaGalleryVerifyImageDescriptionActionGroup to verify description only and used existing AdminEnhancedMediaGalleryVerifyImageDetailsActionGroup to verify other attributes on image details panel in MFTF tests

@sivaschenko
Copy link
Member

@magento run Database Compare,Functional Tests CE,Functional Tests EE

@sivaschenko sivaschenko merged commit 0ce9445 into magento:2.0-develop Jul 7, 2020
@ghost
Copy link

ghost commented Jul 7, 2020

Hi @joweecaquicla, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

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