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 deprecated code for administrator #12278

Merged
merged 6 commits into from
Oct 3, 2016
Merged

Remove deprecated code for administrator #12278

merged 6 commits into from
Oct 3, 2016

Conversation

dgrammatiko
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

  • Move files around to use autoload
  • Drop JSubMenuHelper as it was deprecated
  • Remove the relative sub menu module
  • remove useless entries from administrator/index.php

Testing Instructions

Admin should still work

Documentation Changes Required

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

Please add the SQL Update files to remove the module

@dgrammatiko
Copy link
Contributor Author

@zero-24 you mean com_admin/sql ?

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

Yes :)

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

As well as the normal install sql under installation/sql

@dgrammatiko
Copy link
Contributor Author

@zero-24 ok, done. Travis happy (at least not complaining about these changes)

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

@dgt41 i mean the extension ;) As you removed the mod_submenu extension we need to run on update a delete on the extension table and in the install sql we need to remove that extension too :)

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

👍

@zero-24 zero-24 added this to the Joomla 4.0 milestone Oct 3, 2016
@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

Documentation Changes Required

Removed extension & removed methods

@wilsonge wilsonge merged commit 4e69698 into joomla:4.0-dev Oct 3, 2016
@@ -0,0 +1,3 @@
DELETE FROM `#__assets` WHERE `id` = 47;
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be removed from the update SQL. We cannot guarantee asset ID 47 is this module.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we purge the assets structure anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK we don't have any updates that touch the assets table with direct SQL (aside from schema changes). It's too risky making changes to its contents for a wide variety of reasons, which is in part why there's that method in the update script to check the base assets for new components are added.

@@ -0,0 +1,3 @@
DELETE FROM `#__assets` WHERE `id` = 47;

DELETE FROM `#__extensions` WHERE `name` = ''mod_submenu'';
Copy link
Contributor

Choose a reason for hiding this comment

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

The quoting on this line is busted.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I only fixed the quoting with 2bc5a9a - not the other part :)

@zero-24
Copy link
Contributor

zero-24 commented Oct 3, 2016

@wilsonge @dgt41 @mbabker see: #12281

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

Successfully merging this pull request may close these issues.

None yet

5 participants