? ? Failure

User tests: Successful: Unsuccessful:

avatar hans2103
hans2103
8 May 2021

Partial Pull Request for Issue #33599 .

Summary of Changes

This PR will change some J3 classNames by J4 namespaced classNames in Atum template

Testing Instructions

just code change without visual change.

Actual result BEFORE applying this Pull Request

no visual changes to be expected.

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar hans2103 hans2103 - open - 8 May 2021
avatar hans2103 hans2103 - change - 8 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2021
Category Administration Templates (admin)
avatar hans2103 hans2103 - change - 8 May 2021
Title
:art: use J4 namespacing
[4.0] :art: use J4 namespacing
avatar hans2103 hans2103 - edited - 8 May 2021
avatar brianteeman
brianteeman - comment - 8 May 2021

please try not to use (or attempt to use) emoji in titles.
At best they dont work and are meaningless
At worse they break drone

avatar joomdonation
joomdonation - comment - 9 May 2021

It works but I'm unsure if the changed is needed. My my personal preference is keep using the fully qualified names for these lines of code. The reason is that it is only used in comment to help IDE to find the right class, so adding use statement is not necessary.

avatar hans2103 hans2103 - change - 9 May 2021
Title
[4.0] :art: use J4 namespacing
[4.0] use J4 namespacing
avatar hans2103 hans2103 - edited - 9 May 2021
avatar hans2103
hans2103 - comment - 9 May 2021

Emoji removed.
I think JDocumentHtml and JDocumentError are J3.
Since we're moving to J4 those classes need to be changed to HtmlDocument and ErrorDocument.
The reason to move it to use is be consistent with the rest. Just a way to write code... keeping all use stuff on one place.

avatar hans2103 hans2103 - change - 9 May 2021
Labels Added: ?
avatar joomdonation
joomdonation - comment - 9 May 2021

I think JDocumentHtml and JDocumentError are J3.

You are right and I agree with that. I just want to say that the class is not really used, it is used to help IDE only. So I would write it like this https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/templates/atum/error_full.php#L19 (save the system from having to run an unnecessary use command)

But as I said, it's not a big thing. It is just my own preference only.

avatar hans2103
hans2103 - comment - 9 May 2021

@joomdonation thank you for clear explanation. Used your suggestion
Please test my PR.

avatar joomdonation joomdonation - test_item - 9 May 2021 - Tested successfully
avatar joomdonation
joomdonation - comment - 9 May 2021

I have tested this item successfully on 042de66

Looks good now. Thanks :)


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

avatar chmst chmst - test_item - 9 May 2021 - Tested successfully
avatar chmst
chmst - comment - 9 May 2021

I have tested this item successfully on 042de66

code review


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

avatar chmst chmst - change - 9 May 2021
Status Pending Ready to Commit
avatar chmst
chmst - comment - 9 May 2021

RTC


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

avatar richard67 richard67 - close - 9 May 2021
avatar richard67 richard67 - merge - 9 May 2021
avatar richard67 richard67 - change - 9 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-09 18:01:58
Closed_By richard67
Labels Added: ?
avatar richard67
richard67 - comment - 9 May 2021

Thanks!

Add a Comment

Login with GitHub to post a comment