Skip to content

[2.3] Improve Database Media Storage Configuration settings usability #23710

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

Merged
merged 2 commits into from
Jul 18, 2019
Merged

[2.3] Improve Database Media Storage Configuration settings usability #23710

merged 2 commits into from
Jul 18, 2019

Conversation

gwharton
Copy link
Contributor

@gwharton gwharton commented Jul 15, 2019

Description (*)

The Media Storage Location setting has the option to "use default value", however this option causes issues with the page's javascript routines which need to independently control whether the media storage location dropdown box is enabled or not. This can result in situations where the use default value checkbox is checked, but the setting is enabled (and ignored). This PR removed the "Use default value" option for both the media storage mode and location.

Fixed Issues (if relevant)

  1. Database Media Storage : Difficulty changing mode to database media storage due to poor "Use Default Value" checkbox behaviour #23597: Database Media Storage : Difficulty changing mode to database media storage due to poor "Use Default Value" checkbox behaviour

Manual testing scenarios (*)

  1. Stores -> Configuration -> Advanced -> System -> Storage Configuration for Media
  2. Ensure there is no "Use default value" checkbox next to "Media Storage" dropdown
  3. Ensure "Media Storage" is enabled
  4. Change mode to Database
  5. Ensure there is no "Use default value" checkbox next to "Database" dropdown
  6. Select "default setup" for database
  7. Click Synchronize
  8. Verify that both "Media Storage" and "Database" are both greyed out during the synchronization, but are re-enabled once complete.
  9. Click "Save Config"
  10. After screen refresh, Verify that both "Media Storage" and "Database" are both enabled and selectable.
  11. Change mode to Filesystem
  12. Click Synchronize
  13. Verify that "Media Storage" is greyed out during the synchronization, but is re-enabled once complete.
  14. Click "Save Config"

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Added additional comment reminding of need to save settings
following synchronization of storage.
@m2-assistant
Copy link

m2-assistant bot commented Jul 15, 2019

Hi @gwharton. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@ghost ghost assigned sidolov Jul 15, 2019
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5442 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@m2-assistant
Copy link

m2-assistant bot commented Jul 18, 2019

Hi @gwharton, 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.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.3 milestone Jul 18, 2019
@gwharton gwharton deleted the 2.3-develop-dbcheckbox branch July 19, 2019 09:47
@VladimirZaets VladimirZaets added the Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Component: MediaStorage Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants