Feature Language Change PBF PR-5.1-dev PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
11 Nov 2022

This is a combination of previously accepted pull requests #38244 and #38426 that were reverted due to misunderstanding.

Summary of Changes

All field types that joomla supports should be available via plugin to be used in custom fields.

adds a custom field to show a list of all menu items that can be selected and then displayed as a link in the frontend

Testing Instructions

Install a prebuilt package
or
Install this PR, discover the extension and publish the plugin

Create a menuitem custom field. Check that it shows all menuitems from all menus in the select ;ist and then check on the front end that the link is displayed.

Expected result AFTER applying this Pull Request

image

image

image

avatar brianteeman brianteeman - open - 11 Nov 2022
avatar brianteeman brianteeman - change - 11 Nov 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Nov 2022
Category SQL Administration com_admin Postgresql com_fields Language & Strings Installation Libraries Front End Plugins
avatar brianteeman brianteeman - change - 11 Nov 2022
Labels Added: Language Change PR-4.3-dev
avatar brianteeman
brianteeman - comment - 1 Mar 2023

conflicts resolved

avatar HLeithner
HLeithner - comment - 8 May 2023

This pull request has been automatically rebased to 5.0-dev. No new features will be merged into Joomla! 4.3 series. Joomla! 4.4 series is a bridge release to make migration from Joomla! 4 to 5 as smooth as possible.

avatar brianteeman brianteeman - change - 8 May 2023
Title
[4.3] Menu Item Plugin
[5.0] Menu Item Plugin
avatar brianteeman brianteeman - edited - 8 May 2023
avatar brianteeman
brianteeman - comment - 23 Jul 2023

Would be nice to get some testers here as there were many people asking for this field

avatar brianteeman brianteeman - change - 23 Jul 2023
Labels Added: Feature PR-5.0-dev
Removed: PR-4.3-dev
avatar richard67
richard67 - comment - 23 Jul 2023

@brianteeman The update SQL scripts need to be renamed due to the rebase to 5.0. The new names should be e.g. "5.0.0-2023-07-23.sql".

avatar brianteeman
brianteeman - comment - 23 Jul 2023

@brianteeman The update SQL scripts need to be renamed due to the rebase to 5.0. The new names should be e.g. "5.0.0-2023-07-23.sql".

renamed

avatar HLeithner
HLeithner - comment - 24 Jul 2023

This doesn't consider my concern about groupfieldlist, and the default_value === null for other field types. Or is this fixed in the meantime?

avatar chmst
chmst - comment - 24 Jul 2023

Should we change the date to 2023?

avatar brianteeman
brianteeman - comment - 24 Jul 2023

Should we change the date to 2023?

yes - I noticed it this morning over coffee and am doing it now

115afb8 24 Jul 2023 avatar brianteeman 2023
avatar chmst
chmst - comment - 24 Jul 2023

Used the discover for a test and it works great. It needs test with fresh installation and update.

avatar brianteeman
brianteeman - comment - 24 Jul 2023

thanks for testing. I would use this a lot with one of my custom components. Currently its an ugly sql field

avatar ceford
ceford - comment - 15 Sep 2023

Testing, got as far as Create a menuitem custom field and got this after selecting the New button:

Fatal error: Class Joomla\Plugin\Fields\Calendar\Extension\Calendar contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Joomla\Event\SubscriberInterface::getSubscribedEvents) in /Users/ceford/Sites/joomla-cms/plugins/fields/calendar/src/Extension/Calendar.php on line 26

Uninstalled plugin, reverted patch and the New button works as normal. Work needed?


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

avatar richard67
richard67 - comment - 15 Sep 2023

@ceford Same thing: We have conflicts in the base.sql files for new installations, so when you are testing, the database might not fit. Please don't waste your time with testing PRs which have conflicts. As explained earlier by @brianteeman in another PR, you can see if a PR has conflicts on GitHub at the bottom of the PR.

avatar brianteeman
brianteeman - comment - 15 Sep 2023

Conflicts now resolved

avatar ceford ceford - test_item - 18 Sep 2023 - Tested successfully
avatar ceford
ceford - comment - 18 Sep 2023

I have tested this item ✅ successfully on 8b6d7f0

Front end text from test article:

Test 39192

Details
    Written by: Cliff 
    Category: Uncategorised 
    Published: 18 September 2023 
    Hits: 2

    Test 39192: Atomic 
```<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/39192">issues.joomla.org/tracker/joomla-cms/39192</a>.</sub>
avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 5.1-dev.

avatar brianteeman brianteeman - change - 30 Sep 2023
Title
[5.0] Menu Item Plugin
[5.1] Menu Item Plugin
avatar brianteeman brianteeman - edited - 30 Sep 2023
avatar viocassel viocassel - test_item - 23 Nov 2023 - Tested successfully
avatar viocassel
viocassel - comment - 23 Nov 2023

I have tested this item ✅ successfully on 8b6d7f0


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

avatar richard67 richard67 - change - 23 Nov 2023
Labels Added: PR-5.1-dev
avatar richard67
richard67 - comment - 23 Nov 2023

@brianteeman I've allowed myself to fix the conflict in the FieldsPlugin.php file. What remains to be done is to rename the update SQL scripts from "5.0.0-2023-09-15.sql" to the right version and a newer date, e.g. "5.1.0-2023-11-23.sql". Could you do that? Thanks in advance.

avatar brianteeman
brianteeman - comment - 23 Nov 2023

@richard67 thanks for fixing the conflict - my available time is heavily restricted now. I have renamed the files

avatar TLWebdesign TLWebdesign - test_item - 24 Feb 2024 - Tested successfully
avatar TLWebdesign
TLWebdesign - comment - 24 Feb 2024

I have tested this item ✅ successfully on 9c8a2b5


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

avatar crimle crimle - test_item - 24 Feb 2024 - Tested successfully
avatar crimle
crimle - comment - 24 Feb 2024

I have tested this item ✅ successfully on 9c8a2b5


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

avatar dorisdreher dorisdreher - test_item - 24 Feb 2024 - Tested successfully
avatar dorisdreher
dorisdreher - comment - 24 Feb 2024

I have tested this item ✅ successfully on 9c8a2b5


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

avatar Heinz-R Heinz-R - test_item - 24 Feb 2024 - Tested successfully
avatar Heinz-R
Heinz-R - comment - 24 Feb 2024

I have tested this item ✅ successfully on 9c8a2b5


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

avatar hl-dev-DE hl-dev-DE - test_item - 24 Feb 2024 - Tested successfully
avatar hl-dev-DE
hl-dev-DE - comment - 24 Feb 2024

I have tested this item ✅ successfully on 9c8a2b5


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

avatar richard67 richard67 - change - 24 Feb 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Feb 2024

RTC


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

avatar richard67
richard67 - comment - 24 Feb 2024

@brianteeman Please rename the update SQL scripts from "5.1.0-2023-11-23.sq" (mind the missing "l" at the end of the extension) to something newer than "5.1.0-2024-02-10.sql", which is the latest update SQL present in the 5.1-dev branch. I suggest to use "5.1.0-2024-02-26.sql" because "5.1.0-2024-02-24.sql" and "5.1.0-2024-02-25.sql" will be used by other PRs.

It will not required new human tests, but the PR should not be merged as it is. With the extension "sq" instead of "sql" the scripts will never be run.

Thanks in advance.

avatar richard67
richard67 - comment - 24 Feb 2024

P.S.: Or let me know if I shall do that for you, rename the update SQL scripts.

avatar brianteeman
brianteeman - comment - 25 Feb 2024

@richard67 my time in front of a computer is so restrictd right now could you do it please

avatar richard67 richard67 - change - 25 Feb 2024
Labels Added: RTC Updates Requested PBF
avatar richard67
richard67 - comment - 25 Feb 2024

Done, update SQL scripts renamed to "5.1.0-2024-02-26.sql".

avatar brianteeman
brianteeman - comment - 25 Feb 2024

thanks @richard67

avatar richard67
richard67 - comment - 13 Mar 2024

Hmm, the update SQL scripts would again need to be renamed to something newer than „5.1.0-2024-03-08.sql“, but if this PR will not make it into 5.1 and be rebased to 5.2 it would need to change also the „5.1.0“ to „5.2.0“.

@LadySolveig Is there a decision yet?

avatar brianteeman
brianteeman - comment - 13 Mar 2024

after 488 days if there is no decision then it might as well be closed

avatar richard67
richard67 - comment - 13 Mar 2024

Please don’t close. I am optimistic there will be a decision, and then I can help with rebase and update SQL scripts rename.

avatar brianteeman
brianteeman - comment - 8 Apr 2024

@richard67 @LadySolveig @pe7er
any decision on this RTC pr. really dont want to have to redo it again for a third release if nothing will happen

avatar richard67
richard67 - comment - 9 Apr 2024

@brianteeman I am not a release manager so I won’t decide anything. But @bembelimen is. If this PR is merged into 5.1-dev, the update SQL scripts will need to be renamed to a newer date. And if it will be rebased to 5.2-dev they need to be renamed, too.

avatar brianteeman
brianteeman - comment - 9 Apr 2024

@richard67 yes I am aware of that but I am not going to change this pull request again if it is never going to be merged. Thats just a waste of my time. I will update it one last time and then if there is no response I will just close it

avatar brianteeman brianteeman - change - 9 Apr 2024
Labels Removed: Updates Requested PR-5.0-dev
avatar HLeithner
HLeithner - comment - 24 Apr 2024

This pull request has been automatically rebased to 5.2-dev.

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
[5.1] Menu Item Plugin
[5.2] Menu Item Plugin
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar brianteeman brianteeman - change - 24 Apr 2024
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2024-04-24 19:06:22
Closed_By brianteeman
Labels Added: PR-5.2-dev
avatar brianteeman
brianteeman - comment - 24 Apr 2024

Closed due to the complete lack of any response from release managers which is very disappointing.

avatar brianteeman brianteeman - close - 24 Apr 2024
avatar pe7er
pe7er - comment - 25 Apr 2024

@brianteeman Sorry to see that you've closed this issue. @woluweb and I just started as Joomla 5.2 Release Manager 1 week ago. This PR was on our list of PRs to check out.

avatar brianteeman
brianteeman - comment - 25 Apr 2024

@pe7er it has been sat here since 2022 and i have updated it 4 times for differing releases. Even though it was RTC and I asked multiple release managers they never had the courtesy to reply.

4716b98 25 Apr 2024 avatar brianteeman sql
avatar brianteeman brianteeman - change - 25 Apr 2024
Labels Removed: RTC
avatar brianteeman brianteeman - change - 25 Apr 2024
Status Closed New
Closed_Date 2024-04-24 19:06:22
Closed_By brianteeman
avatar brianteeman brianteeman - change - 25 Apr 2024
Status New Pending
avatar brianteeman brianteeman - reopen - 25 Apr 2024
avatar brianteeman
brianteeman - comment - 25 Apr 2024

re-opened and updated for 5.2 - will not update again

avatar rdeutz rdeutz - change - 26 Apr 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-04-26 08:17:36
Closed_By rdeutz
avatar rdeutz
rdeutz - comment - 26 Apr 2024

@brianteeman I'm sorry that you haven't received an answer here for so long. We discussed this PR at the end of Feburary and made a decision against it. Some reasons are:

  • No access rights are checked
  • Changing default value in the FieldsPlugin class, this shouldn’t be done in the PR
  • Menuitem is only used in 4 places in core, better would be menu_modal

We have noticed at the last meeting that we hadn't posted an answer. So doing it now to stop wasting time on it.

avatar rdeutz rdeutz - close - 26 Apr 2024
avatar brianteeman
brianteeman - comment - 26 Apr 2024

would have been niced if "you" had responded to my numerous requests. Your reasoning is wrong and inconsistent with all the other fields but "you" always know better.

"you" is not an individual but a collective

avatar brianteeman
brianteeman - comment - 26 Apr 2024

PS I can accept this being rejected but your reasoning must be valid.

  1. No access rights are checked for similar fields such as user and usergroup
  2. Default value is not changed. It just checks correctly for null - this was code from @HLeithner previously merged and reverted in error
  3. Irrelevant how many times it is used in core. this is for a custom field

All field types that joomla supports should be available via plugin to be used in custom fields.

Add a Comment

Login with GitHub to post a comment