Feature Language Change Maintainers Checked PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
21 May 2022

New feature

Thanks to @brianteeman for the idea.

Summary

New task plugin to check in all checked out items.

Testing Instructions

  • Apply patch
  • Check out some items
  • Create a new task in system/Scheduled Tasks
  • Select Global Checkin
  • Set Execution Rule to Manual Execution
  • Set a Title
  • Save
  • You should see something like this

grafik

  • Click on Run Task
  • Go Back to the checked out items, they should be checked in

You can also set a delay time in hours, then only items that are checkout before actual - delay time will be checked in.

Documentation Changes Required

Documentation needs to be updated

avatar rdeutz rdeutz - open - 21 May 2022
avatar rdeutz rdeutz - change - 21 May 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2022
Category Administration Language & Strings Front End Plugins
avatar rdeutz rdeutz - change - 21 May 2022
Title
[4.2]Create a new example plugin
[4.2] New example task plugin for check in items
avatar rdeutz rdeutz - edited - 21 May 2022
avatar rdeutz rdeutz - change - 21 May 2022
Labels Added: Language Change ?
avatar HLeithner
HLeithner - comment - 21 May 2022

Nice plugin but blindly checking in all it's seems wrong to me. Can we get a parameter which allows us to configure an expire timeframe?

Something lime "Minutes to expire" default 60?

avatar richard67
richard67 - comment - 21 May 2022

Nice plugin but blindly checking in all it's seems wrong to me. Can we get a parameter which allows us to configure an expire timeframe?

Something lime "Minutes to expire" default 60?

I just wanted to say the same.

avatar brianteeman
brianteeman - comment - 21 May 2022

Nice plugin but blindly checking in all it's seems wrong to me. Can we get a parameter which allows us to configure an expire timeframe?

Something lime "Minutes to expire" default 60?

I just wanted to say the same.

Except the core component does it blindly as well

avatar laoneo
laoneo - comment - 21 May 2022

Can you please use the modern way with a service provider.

avatar richard67
richard67 - comment - 21 May 2022

Nice plugin but blindly checking in all it's seems wrong to me. Can we get a parameter which allows us to configure an expire timeframe?
Something lime "Minutes to expire" default 60?

I just wanted to say the same.

Except the core component does it blindly as well

The core component is change controlled by a human while a scheduler task runs unattended.

avatar rdeutz
rdeutz - comment - 21 May 2022

Changed so that you can set a delay time.

avatar rdeutz
rdeutz - comment - 22 May 2022

needs a bit more time fighting with the service provider

3581f25 23 May 2022 avatar rdeutz WIP
avatar richard67
richard67 - comment - 23 May 2022
avatar rdeutz rdeutz - change - 23 May 2022
Labels Added: Maintainers Checked
d7239dc 28 May 2022 avatar rdeutz wip
avatar rdeutz rdeutz - change - 2 Jun 2022
Labels Removed: Maintainers Checked
avatar richard67
richard67 - comment - 4 Jun 2022

@rdeutz For the SQL and the ExtensionHelper see rdeutz#16 . But please also apply the changes suggested here in review comments.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2022
Category Administration Language & Strings Front End Plugins SQL Administration com_admin Postgresql Language & Strings Installation Libraries Front End Plugins
avatar rdeutz rdeutz - change - 11 Jun 2022
The description was changed
avatar rdeutz rdeutz - edited - 11 Jun 2022
avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: Maintainers Checked ?
avatar woluweb
woluweb - comment - 26 Sep 2022

Hi there.
What is the status of this PR? What is preventing it from being merged?
It would indeed be interesting to have more useful / practical examples of working Tasks :)

avatar rdeutz rdeutz - change - 18 Oct 2022
Title
[4.2] New example task plugin for check in items
[4.3] New example task plugin for check in items
avatar rdeutz rdeutz - edited - 18 Oct 2022
avatar zero-24
zero-24 - comment - 27 Nov 2022

Without knowing that this PR had be proposed as core plugin already I have published an extension called plg_task_checkin: https://github.com/zero-24/plg_task_checkin I have also been asked to contribute it back as plg_task_globalcheckin (#39323). I have closed said PR so this PR can be taken but I would like to ask to rename the core plugin to plg_task_globalcheckin to not conflict with the now published to the live extension.
Thanks :)

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 HLeithner
HLeithner - comment - 10 Jun 2023

@rdeutz can you please update this pr and automatically create a task for new installations please? I would like to have this in 5.0

avatar rdeutz rdeutz - change - 23 Jun 2023
Title
[4.3] New example task plugin for check in items
New example task plugin for check in items
avatar rdeutz rdeutz - edited - 23 Jun 2023
avatar rdeutz rdeutz - change - 23 Jun 2023
Labels Added: Feature PR-5.0-dev
Removed: ? ?
avatar rdeutz
rdeutz - comment - 23 Jun 2023

@richard67 Do we need to rename the sql files?

avatar richard67
richard67 - comment - 23 Jun 2023

@richard67 Do we need to rename the sql files?

Yes, e.g. to "5.0.0-2023-06-23.sql" (or anything else with 5.0.0 and a date younger than 2023-03-17).

avatar rdeutz
rdeutz - comment - 23 Jun 2023

Yes, e.g. to "5.0.0-2023-06-23.sql" (or anything else with 5.0.0 and a date younger than 2023-03-17).

Younger? 5.0.0-2023-06-23.sql is older as 2023-03-17, I am confused

avatar richard67
richard67 - comment - 23 Jun 2023

Yes, e.g. to "5.0.0-2023-06-23.sql" (or anything else with 5.0.0 and a date younger than 2023-03-17).

Younger? 5.0.0-2023-06-23.sql is older as 2023-03-17, I am confused

No. June 23 is newer (or younger) than March 17, or not?

avatar rdeutz
rdeutz - comment - 23 Jun 2023

I renamed the files. Thanks @richard67

This is now ready to test.

avatar richard67
richard67 - comment - 23 Jun 2023

@rdeutz The magic with the ISO date format "YYYY-MM-DD" is that alphabetical order is also order by time.

avatar alikon
alikon - comment - 23 Jun 2023

there are no prebuild + pr download package for 5.0-dev
image

as for 4.4-dev
image

can someone please check?

avatar richard67
richard67 - comment - 26 Jul 2023

Meanwhile the newest update SQL script in 5.0-dev is "5.0.0-2023-07-25.sql" so the scripts "5.0.0-2023-06-23.sql" in this PR need to be renamed to something newer that that, e.g. to "5.0.0-2023-07-26.sql".

avatar HLeithner HLeithner - change - 27 Jul 2023
Title
New example task plugin for check in items
[5.0] New task plugin for check in items
avatar HLeithner HLeithner - edited - 27 Jul 2023
avatar richard67
richard67 - comment - 26 Aug 2023

@rdeutz It needs to rename the update SQL scripts again because meanwhile we have some with a higher schema version (base name) in the repo so yours would not run on an update. I suggest to rename them to "5.0.0-2023-08-27.sql" because there are other PR's proposed which will already use "5.0.0-2023-08-22.sql" to "5.0.0-2023-08-26.sql".

avatar rdeutz
rdeutz - comment - 26 Aug 2023

@richard67 done, with a bit luck some tests today and we can merge this

avatar richard67
richard67 - comment - 26 Aug 2023

@richard67 done, with a bit luck some tests today and we can merge this

@rdeutz Thanks.

avatar webgras webgras - test_item - 26 Aug 2023 - Tested successfully
avatar webgras
webgras - comment - 26 Aug 2023

I have tested this item ✅ successfully on 6b3e80e

also check articles on two different times

tested on J 5.0.0-beta1-dev


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

avatar alikon alikon - test_item - 26 Aug 2023 - Tested successfully
avatar alikon
alikon - comment - 26 Aug 2023

I have tested this item ✅ successfully on 6b3e80e


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

avatar alikon
alikon - comment - 26 Aug 2023

some kind of cache issue
btw i'm fully confortable with this pr
waiting for the last mile
i'll redo my test

avatar richard67
richard67 - comment - 26 Aug 2023

@alikon @webgras Could you test again with the latest changes? Thanks in advance.

avatar heelc29 heelc29 - test_item - 26 Aug 2023 - Tested successfully
avatar heelc29
heelc29 - comment - 26 Aug 2023

I have tested this item ✅ successfully on 6b3e80e


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

avatar webgras webgras - test_item - 26 Aug 2023 - Tested successfully
avatar webgras
webgras - comment - 26 Aug 2023

I have tested this item ✅ successfully on 6b3e80e


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

avatar HLeithner HLeithner - close - 26 Aug 2023
avatar HLeithner HLeithner - merge - 26 Aug 2023
avatar HLeithner HLeithner - change - 26 Aug 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-08-26 13:51:43
Closed_By HLeithner
avatar HLeithner
HLeithner - comment - 26 Aug 2023

finally thanks all

avatar rdeutz
rdeutz - comment - 26 Aug 2023

Thanks to all who helped to get this done

Add a Comment

Login with GitHub to post a comment