Feature Language Change Information Required b/c break PR-5.1-dev PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar max123kl
max123kl
14 Sep 2023

Code owner Daniel

Summary of Changes

See Daniel's description below

avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2023
Category Language & Strings Modules Front End
avatar max123kl max123kl - open - 14 Sep 2023
avatar max123kl max123kl - change - 14 Sep 2023
Status New Pending
avatar max123kl max123kl - change - 14 Sep 2023
Title
Article IDs to include
[5.0] Article IDs to include
avatar max123kl max123kl - edited - 14 Sep 2023
avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

Thanks Max :)

Summary of change adding a filtering option to include articles by their IDs to the mod_articles_category module

Testing Instructions
In mod_articles_category, replace the existing files with the files in the ZIP archive attached
mod_articles_category.zip

Actual result BEFORE applying this Pull Request
The current version of the module (3.0.0) doesnt allow to include articles by their IDs

Expected result AFTER applying this Pull Request
In the filtering options, you should have a new option to include articles by their IDs
Add some IDs there and check the output to control the module displays the articles you've indicated.

avatar max123kl max123kl - change - 14 Sep 2023
The description was changed
avatar max123kl max123kl - edited - 14 Sep 2023
avatar brianteeman
brianteeman - comment - 14 Sep 2023

looks like this was made from an old version of the module

avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

It's from module 3.0.0 version

avatar brianteeman
brianteeman - comment - 14 Sep 2023

If you look at the changes https://github.com/joomla/joomla-cms/pull/41745/files you can see all the code that is being removed by this pull request as well as the changes. I would expect to ONLY be seeing code added.

avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

Sorry, I don't get you (again).

I've edited the files of the module currently installed in a J4.
I've worked on mod_articles_category 3.0.0 which is the latest version.
I've provided the new files with my changes to make it simplier to test and validate.
I didn't submitted the PR, as I do not have the rights to.
If needed, I can provide you only the lines I've changed. Is that you ask/want/need?

I understand you're very familiar with but to me, GitHub is a complete strange and scary universe. I don't ask for a favor, just some understanding if I don't reply correctly or as expected.

avatar brianteeman
brianteeman - comment - 14 Sep 2023

@web-eau-net Daniel github shows all the changes in this pull request. You can see them if you follow the link I gave before https://github.com/joomla/joomla-cms/pull/41745/files The original is on the left and the changes from this PR are on the right

Everything in "pink" is being removed and Everything in "green" is being added. You dont need to understand the code to realise that thiss pull request is removing a lot of code when it should really be adding a small bit of code.

avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

Thanks for your explanations Brian, really appreciate your time and efforts.

I do understand the adding/removed color codes you've mentioned.
I don't know where the differences come from but as I've worked on the latest version of the module, we should have the same code in the PR (or shouldn't have any differences except my changes in green)?

What should I do now with my limited GitHub account to make this PR happen?

avatar max123kl
max123kl - comment - 14 Sep 2023

As I did the PR in helping Daniel, I asked him if the 3 files will replace the ones already in.
I just generated a new branch, based on the 5.0-dev one, and added the new files from Daniel.
If I did something wrong, pls tell me

avatar brianteeman
brianteeman - comment - 14 Sep 2023

See #41746 - easier to show you than explain

avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

Thank you Brian

avatar brianteeman
brianteeman - comment - 14 Sep 2023

Basically you have taken code from 4.x edited and put it into 5.0
BUT the code in 5.0 was already chanaged so you were replacing those changes

avatar brianteeman
brianteeman - comment - 14 Sep 2023

ps - your github account is no different to mine

avatar web-eau-net
web-eau-net - comment - 14 Sep 2023

I've understood where was the confusion.
I've applied the same changes in the J5 version of the module files and @max123kl will submit it.

avatar max123kl max123kl - change - 14 Sep 2023
Labels Added: Language Change PR-5.0-dev
avatar ceford
ceford - comment - 18 Sep 2023

I think a change is needed:

Without the patch I can put some blank space in the Article IDs to Exclude and that does not prevent all articles in the category appearing in the frontend module. With the patch applied, any blank space only in the Article IDs to Include causes the module to disappear in the front end. I think you need to check that Article IDs to Include does not include only white space and perhaps check for valid numbers. It is a pity that there is no field descriptor saying 'One per line'.


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

avatar web-eau-net
web-eau-net - comment - 20 Sep 2023

@ceford I got your point.
Attached a ZIP archived with a new version of the XML with an explicite tooltip description for these 2 fields.

mod_articles_category_xml.zip

avatar ceford
ceford - comment - 20 Sep 2023

@web-eau-net @max123kl needs to include any changes in the PR. What about the problem with accidental white space in the Articles to include field? I can just see the questions in the Forum now - my mod_articles_category module has disappeared.

avatar web-eau-net
web-eau-net - comment - 20 Sep 2023

Honestly @ceford I have absolutly NO idea about this issue :/
I've simply copied/pasted the code for articles to exclude and turned into articles to include (my coding knowledges are that point but no more). For the others questions, I can't help at all.
Sure that @max123kl will do the job for including the changes.
Thanks for your help here.

avatar max123kl
max123kl - comment - 20 Sep 2023

@web-eau-net & @ceford
we shall discuss the best way to optimise the PR via DM on mattermost and then commit the solution

avatar chmst
chmst - comment - 20 Sep 2023

Maybe there is a misunderstanding of how the module works.
It first makes a list of all categories which match the filter.
Then it makes a list of all articles in these categories.
Now it is easy to exclude some articles from this list.

But you cannot include articles without another search in the database for these articles. And if they are not in the specified categories, the name of the module mod_articles_category would be wrong.

@web-eau-net, are you sure that this worked in a former version of the module?

avatar web-eau-net
web-eau-net - comment - 20 Sep 2023

@chmst I use the current version of the module (J4 3.0.0) with this modification and without any issue.
Of course, I've indicated a category because I didn't had the idea to use the module without this parameter and I would say I use mod_articles_category like I always did.

Maybe I'm wrong but to exclude the articles with the module, nobody need a documentation. Why would it be different with including?

avatar web-eau-net
web-eau-net - comment - 20 Sep 2023

Okay... we can use the description tooltip id needed. It would be the easiest way to inform the user to select at last one category before excluding or including any article by their IDs.

avatar max123kl max123kl - change - 20 Sep 2023
Labels Added: Feature
avatar HLeithner
HLeithner - comment - 30 Sep 2023

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

avatar carcam carcam - test_item - 5 Oct 2023 - Tested successfully
avatar carcam
carcam - comment - 5 Oct 2023

I have tested this item ✅ successfully on 07bc613

Nice work!!

I have tested this issue successfully. I have found that if you add the same ID in exclude and include options, include option prevails.


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

avatar HLeithner HLeithner - change - 5 Oct 2023
Title
[5.0] Article IDs to include
[5.1] Article IDs to include
avatar HLeithner HLeithner - edited - 5 Oct 2023
avatar viocassel viocassel - test_item - 18 Nov 2023 - Tested successfully
avatar viocassel
viocassel - comment - 18 Nov 2023

I have tested this item ✅ successfully on 07bc613


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

avatar richard67 richard67 - change - 18 Nov 2023
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 18 Nov 2023

RTC


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

avatar max123kl max123kl - change - 21 Nov 2023
Labels Added: ? PR-5.1-dev
Removed: PR-5.0-dev
avatar joomla-cms-bot joomla-cms-bot - change - 21 Nov 2023
Category Language & Strings Modules Front End Unit Tests Repository Administration com_admin com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_media NPM Change JavaScript com_menus com_messages com_templates com_users Language & Strings
avatar richard67 richard67 - change - 22 Nov 2023
Labels Added: ? ? NPM Resource Changed
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2023
Category Language & Strings Unit Tests Repository Administration com_admin com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_media NPM Change JavaScript com_menus com_messages com_templates com_users Language & Strings Modules Front End
avatar rdeutz rdeutz - change - 10 Jan 2024
Labels Added: RTC Information Required
Removed: ? ? NPM Resource Changed
avatar rdeutz rdeutz - change - 10 Jan 2024
Status Ready to Commit Pending
avatar rdeutz
rdeutz - comment - 10 Jan 2024

Please fix the cs error


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

avatar wilsonge
wilsonge - comment - 10 Jan 2024

Even once the CS error is fixed this should not be merged until @richard67 's comment is addressed

avatar richard67
richard67 - comment - 10 Jan 2024

Even once the CS error is fixed this should not be merged until @richard67 's comment is addressed

@wilsonge I just see that the already existing exclude list works the same way, so for me it's ok, and I've marked my review comment as resolved.

avatar alikon
alikon - comment - 10 Jan 2024

to me it seems not a core feature

avatar LadySolveig LadySolveig - change - 15 Jan 2024
Labels Removed: RTC
avatar LadySolveig
LadySolveig - comment - 17 Jan 2024

@web-eau-net i have adapted it as we discussed. now there is an inclusive/exclusive filter switch and only the original input field for the article ids.

Would appreciate your feedback after testing.

grafik

avatar web-eau-net
web-eau-net - comment - 18 Jan 2024

Module tested ✔️

avatar richard67
richard67 - comment - 18 Jan 2024

Module tested ✔️

@web-eau-net Was that a successful test of this PR? If so, please go to the issue tracker and mark your test result so it's properly counted. Go to https://issues.joomla.org/tracker/joomla-cms/41745 and use the blue "Test this" button at the top left corner, select your test result and submit. Thanks in advance.

avatar web-eau-net web-eau-net - test_item - 18 Jan 2024 - Tested successfully
avatar web-eau-net
web-eau-net - comment - 18 Jan 2024

I have tested this item ✅ successfully on 233e5ec


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

avatar web-eau-net
web-eau-net - comment - 18 Jan 2024

Thanks @richard67 , done :)


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

avatar HLeithner
HLeithner - comment - 21 Jan 2024

this pr is a b/c break and can't be merged.

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] Article IDs to include
[5.2] Article IDs to include
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar rdeutz rdeutz - change - 13 Jul 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-07-13 12:31:46
Closed_By rdeutz
Labels Added: b/c break PR-5.2-dev
avatar rdeutz
rdeutz - comment - 13 Jul 2024

This PR has a longer story so I will explain the not clear points.

This is a b/c break because of a change of the parameter name. If you have an existing site with excluded articles that these articles will be shown after the update. That is something we cann fix but I wouldn't do it, instead I would close this one and concentrate on #43738 who should have included this function into the new article module.

Thanks to all who have worked on this one.

avatar rdeutz rdeutz - close - 13 Jul 2024

Add a Comment

Login with GitHub to post a comment