joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.2] [4.1 ScheduledTasks]Edits for run task

Open niharikamahajan02 opened this issue 3 years ago • 33 comments

Pull Request for Issue #36453 .

Summary of Changes

Edits for run task.

niharikamahajan02 avatar Jan 18 '22 03:01 niharikamahajan02

Please review. Thanks

niharikamahajan02 avatar Jan 20 '22 16:01 niharikamahajan02

Please review. Thanks

Please check whether you have taken over all comments from your previous PRs. Furthermore, I have the impression, but still have to test it, that again not all occurrences have been renamed. Please also check this with a full text search over the whole repo. And please keep the code up to date.

tecpromotion avatar Jan 22 '22 08:01 tecpromotion

But sir , it is working fine after running the command (npm run build:js ) image

niharikamahajan02 avatar Jan 22 '22 13:01 niharikamahajan02

Should this also be adapted?

https://github.com/joomla/joomla-cms/blob/838845941106a2b93eed1d304ad97f3d152cb3a9/plugins/system/schedulerunner/schedulerunner.php#L92

and

https://github.com/joomla/joomla-cms/blob/838845941106a2b93eed1d304ad97f3d152cb3a9/plugins/system/schedulerunner/schedulerunner.php#L255

Perhaps with runTaskCron

tecpromotion avatar Jan 22 '22 16:01 tecpromotion

And maybe also replace onAjaxRunSchedulerTest with onAjaxRunSchedulerTask?

@ditsuke what do you think about this improvements?

tecpromotion avatar Jan 22 '22 16:01 tecpromotion

Please check this two code comments.

https://github.com/joomla/joomla-cms/blob/42f7f89788384ca08ec3a43d46a7e736a2777a48/plugins/system/schedulerunner/schedulerunner.php#L243

https://github.com/joomla/joomla-cms/blob/42f7f89788384ca08ec3a43d46a7e736a2777a48/plugins/system/schedulerunner/schedulerunner.php#L297

tecpromotion avatar Jan 22 '22 18:01 tecpromotion

Also, please check the occurrences of 'test-task'. This concerns file names, function calls and declarations.

@niharikamahajan02 sorry for all the comments but it's best to clean it straight away.

tecpromotion avatar Jan 22 '22 19:01 tecpromotion

Also, please check the occurrences of 'test-task'. This concerns file names, function calls and declarations.

@niharikamahajan02 sorry for all the comments but it's best to clean it straight away.

No problem sir 😄 and yes it's better to clean them straight away now

niharikamahajan02 avatar Jan 23 '22 09:01 niharikamahajan02

Yes ,I would rename the file names, function calls and declarations also 👍

niharikamahajan02 avatar Jan 23 '22 09:01 niharikamahajan02

Please suggest if something needs to be updated now . Thanks

niharikamahajan02 avatar Jan 23 '22 12:01 niharikamahajan02

@tecpromotion

@ditsuke what do you think about this improvements?

Thanks for tagging! I really like the changes so far.

ditsuke avatar Jan 23 '22 12:01 ditsuke

Yes sir , changed the file name now.

niharikamahajan02 avatar Jan 23 '22 13:01 niharikamahajan02

@niharikamahajan02

Yes sir , changed the file name now.

Nicely done! You can resolve the suggestions I left above from your end.

ditsuke avatar Jan 23 '22 13:01 ditsuke

Ok sir , thanks!

niharikamahajan02 avatar Jan 23 '22 17:01 niharikamahajan02

Actually for resolving the conflict I am doing git pull, and it's saying already up to date. Even after that new changes made in administrator/components/com_scheduler/tmpl/tasks/default.php( which is causing conflict ) are not getting reflected.

niharikamahajan02 avatar Feb 13 '22 08:02 niharikamahajan02

Actually for resolving the conflict I am doing git pull, and it's saying already up to date. Even after that new changes made in administrator/components/com_scheduler/tmpl/tasks/default.php( which is causing conflict ) are not getting reflected.

I've opened a PR to update your branch to 4.1-dev and resolve conflicts. PTAL https://github.com/niharikamahajan02/joomla-cms/pull/1.

ditsuke avatar Feb 13 '22 09:02 ditsuke

Ok , so do I need to do something for now?

niharikamahajan02 avatar Feb 13 '22 09:02 niharikamahajan02

Ok , so do I need to do something for now?

Please merge the PR. It's on your fork.

ditsuke avatar Feb 13 '22 09:02 ditsuke

ok ,done

niharikamahajan02 avatar Feb 13 '22 10:02 niharikamahajan02

This pull request has automatically rebased to 4.2-dev.

HLeithner avatar Jun 27 '22 13:06 HLeithner

I've allowed myself to solve the conflicting files.

richard67 avatar Jun 27 '22 17:06 richard67

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

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

I rebased the PR and added back removed language strings and deprecated them.

HLeithner avatar Apr 07 '23 06:04 HLeithner

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

HLeithner avatar Sep 30 '23 22:09 HLeithner

@niharikamahajan02 please solve the unresolved conversations of this PR. I would like to see this merged into a following Joomla version, while Run Test is the correct name for the action the button is doing

hans2103 avatar Dec 19 '23 14:12 hans2103

please review it once , I think there are some changes to be done

niharikamahajan02 avatar Dec 22 '23 12:12 niharikamahajan02

please review it once , I think there are some changes to be done

@niharikamahajan02 It needs to resolve merge conflicts in files build/media_source/com_scheduler/joomla.asset.json and plugins/system/schedulerunner/schedulerunner.php. Maybe just use the clean files from the 5.1-dev branch and apply your changes again on them.

richard67 avatar Dec 22 '23 12:12 richard67

but they are already having "run test" in 5.1-dev

niharikamahajan02 avatar Dec 22 '23 13:12 niharikamahajan02

but they are already having "run test" in 5.1-dev

@niharikamahajan02 What do you mean? Drone tests are failing, and if you go to the bottom of this PR on GitHub you clearly see there are the 2 mentioned files which have merge conflicts. If you don't know how to solve them we can help, but maybe you can try it yourself first like I have described.

richard67 avatar Dec 22 '23 13:12 richard67

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

HLeithner avatar Apr 24 '24 09:04 HLeithner