? PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
1 Jan 2023

Summary of Changes

Migrate the majority of core components towards the new toolbar API (notably I'm skipping Joomla Update as part of this PR and the use of ToolbarHelper::modal in com_templates views which probably need to be moved to the popupButton - but that's a bigger piece of work for another PR)

Testing Instructions

Check all the toolbar icons work the same before and after the patch is applied across all backend components

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 1 Jan 2023
Category Administration com_cache
avatar wilsonge wilsonge - open - 1 Jan 2023
avatar wilsonge wilsonge - change - 1 Jan 2023
Status New Pending
avatar brianteeman brianteeman - test_item - 1 Jan 2023 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 1 Jan 2023

I have tested this item ? unsuccessfully on b4bab7d

changes the button id :(


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar wilsonge
wilsonge - comment - 1 Jan 2023

https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Toolbar/ToolbarButton.php#L221

IDs look fairly fixed. I can rebase this to 5.0 I guess - Depends how much we think IDs are a major b/c break in the backend. It's only the delete button that has the changed ID right?

avatar wojtekxtx
wojtekxtx - comment - 2 Jan 2023

changes the button id :(

@brianteeman: I see where you come from, but, TBH, Im not entirely sure if thats desired direction.......

avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2023
Category Administration com_cache Administration com_admin com_associations com_banners com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder
avatar wilsonge wilsonge - change - 3 Jan 2023
Labels Added: PR-4.3-dev
avatar wilsonge wilsonge - change - 3 Jan 2023
Title
Migrate com_cache to the new toolbar api
Migrate most components to the new toolbar api
avatar wilsonge wilsonge - edited - 3 Jan 2023
avatar wilsonge wilsonge - change - 3 Jan 2023
Title
Migrate most components to the new toolbar api
[4.3] Migrate most components to the new toolbar api
avatar wilsonge wilsonge - edited - 3 Jan 2023
avatar carlitorweb
carlitorweb - comment - 5 Jan 2023

@wilsonge what you mean with cache toolbar in the test instructions? Is just test the toolbar of each component right? Sorry for ask, just testing this PR, and for avoid do it wrong.

avatar wilsonge
wilsonge - comment - 5 Jan 2023

Yes. Sorry originally the PR was just over com_cache but then I worked on some more components so need to update the instructions

avatar wilsonge wilsonge - change - 5 Jan 2023
The description was changed
avatar wilsonge wilsonge - edited - 5 Jan 2023
avatar wilsonge wilsonge - change - 5 Jan 2023
The description was changed
avatar wilsonge wilsonge - edited - 5 Jan 2023
avatar wilsonge wilsonge - change - 5 Jan 2023
The description was changed
avatar wilsonge wilsonge - edited - 5 Jan 2023
avatar wilsonge
wilsonge - comment - 5 Jan 2023

Final batch of components migrated. I suggest we test functionality here and I'll leave it to @joomla/cms-maintainers to decide if it needs to go to 4.3 or 5.0 and I'll happily rebase it to 5.0 if the IDs are deemed a concern.

avatar carlitorweb
carlitorweb - comment - 7 Jan 2023
  • com_actionlogs ✔️
  • com_admin ✔️
  • com_associations ✔️
  • com_cache ✔️
  • com_categories ✔️
  • com_checkin ✔️
  • com_config ✔️
  • com_contact ✔️
  • com_cpanel ✔️
  • com_content ✔️
  • com_contenthistory ✔️
  • com_fields ✔️
  • com_finder ✔️
  • com_installer ✔️
  • com_languages ✔️
  • com_media ✔️
  • com_menus ✔️
  • com_messages ✔️
  • com_modules ✔️
  • com_newsfeed ✔️
  • com_plugins ✔️
  • com_postinstall ✔️
  • com_privacy ✔️
  • com_redirect ✔️
  • com_sheduler ✔️
  • com_tags ✔️
  • com_templates ✔️
  • com_users ✔️
  • com_workflow ✔️
avatar carlitorweb
carlitorweb - comment - 7 Jan 2023

@wilsonge com_installer -> view=manage

The button Install Extension: Undefined variable $url in ..www\bugtesting\joomla-cms\layouts\joomla\toolbar\link.php on line 34

avatar wojtekxtx
wojtekxtx - comment - 8 Jan 2023

@carlitorweb also got this error

avatar wilsonge
wilsonge - comment - 10 Jan 2023

Fixed!

avatar carlitorweb carlitorweb - test_item - 15 Jan 2023 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 15 Jan 2023

I have tested this item successfully on 4198356


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar HLeithner
HLeithner - comment - 16 Jan 2023

Is there a reason why you not directly migrate this to ListView and FormView, also Toolbar::getInstance(); is deprecated so I think you are not allowed to introduce new deprecated function calls ;-)

avatar obuisard obuisard - test_item - 17 Jan 2023 - Tested successfully
avatar obuisard
obuisard - comment - 17 Jan 2023

I have tested this item successfully on fd47b40


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar wilsonge
wilsonge - comment - 17 Jan 2023

Is there a reason why you not directly migrate this to ListView and FormView, also Toolbar::getInstance(); is deprecated so I think you are not allowed to introduce new deprecated function calls ;-)

Not all of these views are ready to be migrated - but having everything consistently using the toolbar api as an example to extension devs is a good thing. The new API is also easier to understand than many of the magic parameters we currently have. I had to spend ages figuring out some of the mappings

Toolbar::getInstance removal is a major deal. The factory being stored in the container means that there's no way to share it with the module. I suspect that's a major version change.

avatar bembelimen
bembelimen - comment - 18 Jan 2023

Not all of these views are ready to be migrated

But shouldn't we move the one we can to the two mentioned views (+ updating them, too): It would save so much code.

avatar wilsonge
wilsonge - comment - 18 Jan 2023

But shouldn't we move the one we can to the two mentioned views (+ updating them, too): It would save so much code.

Eventually yes. But I don't think we are ready yet. Certainly aligning the views first so that jump is smaller isn't a bad thing anyhow

avatar Quy Quy - test_item - 18 Jan 2023 - Tested successfully
avatar Quy
Quy - comment - 18 Jan 2023

I have tested this item successfully on 661f0b1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar viocassel viocassel - test_item - 20 Jan 2023 - Tested successfully
avatar viocassel
viocassel - comment - 20 Jan 2023

I have tested this item successfully on 661f0b1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar Quy Quy - change - 20 Jan 2023
Status Pending Ready to Commit
avatar Quy
Quy - comment - 20 Jan 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39537.

avatar Quy Quy - change - 20 Jan 2023
Labels Added: ?
avatar obuisard obuisard - change - 21 Jan 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-01-21 04:17:47
Closed_By obuisard
avatar obuisard obuisard - close - 21 Jan 2023
avatar obuisard obuisard - merge - 21 Jan 2023
avatar obuisard
obuisard - comment - 21 Jan 2023

Thank you George @wilsonge for this PR!

Add a Comment

Login with GitHub to post a comment