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

Remove legacy media uploader / editor remnants #2434

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

justinbeaty
Copy link
Contributor

@justinbeaty justinbeaty commented Aug 16, 2022

Description (*)

Removed a few javascript files related to lib/flex which was previously removed in #2271

However I also removed some blocks, controllers, and phtml files which seem like they are not used anywhere.

Maybe the only removal I'm not sure about is app/code/core/Mage/Adminhtml/Block/Media/Uploader.php because maybe some extension adds this block to a layout.

The two controllers seem useless.

https://store.example.com/index.php/admin/media_uploader
https://store.example.com/index.php/admin/media_editor

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. Perhaps a good idea to pull both this and Flow.js updates #2433 into your local tree
  2. Try to upload media files in various places in the backend. I'm not sure of the complete list of places you can normally upload files, I know of uploading images or downloadable files in manage products... Where else can we upload?

Questions or comments

This is a draft because I think it needs to be tested by others before merging. Edit: Marked ready for review, although let's please still test it. It seems fine for me, but maybe someone else knows if those controllers I deleted were ever used. I honestly don't think they were anymore and are just cruft.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml Component: Media Relates to Mage_Media JavaScript Relates to js/* Template : admin Relates to admin template labels Aug 16, 2022
@lgtm-com
Copy link

lgtm-com bot commented Aug 16, 2022

This pull request fixes 7 alerts when merging a4820fe into 71998f5 - view on LGTM.com

fixed alerts:

  • 3 for Missing variable declaration
  • 3 for Incomplete string escaping or encoding
  • 1 for Call to eval-like DOM function

@fballiano
Copy link
Contributor

I was about to write you about FABridge :-D

@lgtm-com
Copy link

lgtm-com bot commented Aug 16, 2022

This pull request fixes 16 alerts when merging 9bfadb7 into 71998f5 - view on LGTM.com

fixed alerts:

  • 8 for Missing variable declaration
  • 3 for Comparison between inconvertible types
  • 3 for Incomplete string escaping or encoding
  • 1 for Unreachable statement
  • 1 for Call to eval-like DOM function

@justinbeaty justinbeaty marked this pull request as ready for review August 23, 2022 14:27
fballiano
fballiano previously approved these changes Aug 25, 2022
Copy link
Contributor

@fballiano fballiano left a comment

Choose a reason for hiding this comment

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

tested and found no problems, there's nothing about those 2 controllers anywhere in the code and the uploads still work

@lgtm-com
Copy link

lgtm-com bot commented Aug 29, 2022

This pull request fixes 16 alerts when merging 13bd371 into 5aece6d - view on LGTM.com

fixed alerts:

  • 8 for Missing variable declaration
  • 3 for Comparison between inconvertible types
  • 3 for Incomplete string escaping or encoding
  • 1 for Unreachable statement
  • 1 for Call to eval-like DOM function

luigifab
luigifab previously approved these changes Jan 14, 2023
Copy link
Contributor

@luigifab luigifab left a comment

Choose a reason for hiding this comment

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

I like this idea!

@justinbeaty
Copy link
Contributor Author

Fixed conflicts

@fballiano fballiano merged commit 5d62054 into OpenMage:20.0 Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Media Relates to Mage_Media environment JavaScript Relates to js/* Template : admin Relates to admin template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants