PR-5.0-dev b/c break Removal Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
7 Apr 2023

Replaces JPATH_PLATFORM with _JEXEC as JPATH_PLATFORM. Like that we have one way to check if the CMS is loaded correctly.

avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2023
Category Administration com_admin com_banners com_categories com_config com_contact com_content com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates com_users Repository Front End
avatar laoneo laoneo - open - 7 Apr 2023
avatar laoneo laoneo - change - 7 Apr 2023
Status New Pending
avatar sandewt
sandewt - comment - 7 Apr 2023

What to do with this? Consequences? Depreceated?

if (!defined('JPATH_PLATFORM')) {

require_once JPATH_PLATFORM . '/loader.php';

if (!defined('JPATH_PLATFORM')) {

if (!defined('JPATH_PLATFORM')) {

avatar brianteeman
brianteeman - comment - 7 Apr 2023

Surely this is a breaking change

avatar laoneo
laoneo - comment - 7 Apr 2023

What does break? Happy to solve any bc issues.

avatar laoneo laoneo - change - 7 Apr 2023
Labels Added: PR-4.4-dev
avatar laoneo
laoneo - comment - 7 Apr 2023

What to do with this? Consequences? Depreceated?

if (!defined('JPATH_PLATFORM')) {

require_once JPATH_PLATFORM . '/loader.php';

if (!defined('JPATH_PLATFORM')) {

if (!defined('JPATH_PLATFORM')) {

These must stay for backwards compatibility.

avatar brianteeman
brianteeman - comment - 7 Apr 2023

What does break? Happy to solve any bc issues.

Any tool that people have written to check for the presence of the check will fail.

avatar laoneo
laoneo - comment - 7 Apr 2023

The check should still work as the defines are still in place. @sandewt pointed them out in his last comment. Only the occurrences in the CMS code are changed.

avatar brianteeman
brianteeman - comment - 7 Apr 2023

The check should still work as the defines are still in place. @sandewt pointed them out in his last comment. Only the occurrences in the CMS code are changed.

it is those occurences I am referring to.

this is a disruptive change for zero benefit and should definitely not be made in a minor release

avatar laoneo
laoneo - comment - 7 Apr 2023

So you agree that it is not a bc break?

avatar wilsonge
wilsonge - comment - 7 Apr 2023

This was proposed in the past and we agreed things in the libraries folder was a b/c break because there were concrete examples of cli apps (in the j3 format) even on our own joomla.org sites defining JPATH_PLATFORM instead of JEXEC.

So yes it's a b/c break. You should be fine with the changes in the administrator folder however.

To be clear I'm a ? for merging this for 5.0 however.

avatar sandewt
sandewt - comment - 8 Apr 2023

See, also for completeness:

#39535 (comment)

#40337 (comment)

avatar laoneo
laoneo - comment - 8 Apr 2023

I can't really imagine how you can run joomla 4 without jexec so I wouldn't count this as break. But I do also have no issue to rebase to 5. For me is more important that we get rid of inconsistency.

avatar brianteeman
brianteeman - comment - 8 Apr 2023

I can't really imagine how you can run joomla 4 without jexec so I wouldn't count this as break.

@wilsonge already said there are cli apps

avatar laoneo
laoneo - comment - 11 Apr 2023

I did rebase this one #and made a deprecation pr for 4.4 #40366.

avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2023
Category Administration com_admin com_banners com_categories com_config com_contact com_content com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates com_users Repository Front End Administration com_admin SQL Postgresql com_banners com_categories com_config com_contact com_content com_fields com_finder
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2023
Category Administration com_admin com_banners com_categories com_config com_contact com_content com_fields com_finder SQL Postgresql Administration com_admin com_banners com_categories com_config com_contact com_content com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates com_users Repository Front End
avatar laoneo laoneo - change - 11 Apr 2023
Labels Added: PR-5.0-dev
avatar laoneo
laoneo - comment - 11 Apr 2023

Is there something documented about this vote? I'm not aware of any discussion.

avatar wilsonge
wilsonge - comment - 11 Apr 2023

I've not been in the meetings since 4.0 finished (so 1.5 years now) but https://volunteers.joomla.org/departments/production/reports/1793-production-dept-meeting-minutes-august-23-2022 was the motion i understood to have been approved which is deprecation for two major versions before removal hence #38657 being merged which was 99% of the originally intended 5.0 deprecations going back to 6.0

avatar laoneo
laoneo - comment - 11 Apr 2023

You was talking before about that PLATFORM should not be deprecated issue. The 2 years policy I'm aware of.

avatar HLeithner
HLeithner - comment - 29 May 2023

@laoneo can you sync the branch and add a deprecation notice in joomla 4.4 for this /files#diff-af833392184ea677c8d50f3b09187a3602ecb4eaed7b35a622fbf2e96ff1d3e6 (defining the constant) please

avatar laoneo laoneo - change - 29 May 2023
Labels Added: b/c break Removal
Removed: PR-4.4-dev
avatar laoneo
laoneo - comment - 29 May 2023

Did the sync, but not sure what you want for a notice where?

avatar HLeithner HLeithner - change - 29 May 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-05-29 08:12:14
Closed_By HLeithner
avatar HLeithner HLeithner - close - 29 May 2023
avatar HLeithner HLeithner - merge - 29 May 2023
avatar HLeithner
HLeithner - comment - 29 May 2023

Thanks

Add a Comment

Login with GitHub to post a comment