? NPM Resource Changed bug ? PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar MagnusSinger
MagnusSinger
11 Apr 2022

Pull Request for Issue #37313

Summary of Changes

When you create a new scheduled task and select custom execution rules, and you don't specify a execution time, you can't save it now

Testing Instructions

Create Demo Task - Sleep
Select Cron Expression Advanced as Execution Rule
Do not select all values in area Cron match
Try to save, Joomla will show you that you still have empty fields

Actual result BEFORE applying this Pull Request

You were able to click save, but then ran into an error

Expected result AFTER applying this Pull Request

You see that there are required fields left and you cannot save

Documentation Changes Required

None

avatar MagnusSinger MagnusSinger - open - 11 Apr 2022
avatar MagnusSinger MagnusSinger - change - 11 Apr 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2022
Category Administration
avatar MagnusSinger MagnusSinger - change - 11 Apr 2022
Labels Added: ?
avatar MagnusSinger MagnusSinger - change - 11 Apr 2022
Title
Require custom task cron execution rules to be filled out
Task Scheduler require custom cron execution rules to be filled out
avatar MagnusSinger MagnusSinger - edited - 11 Apr 2022
avatar richard67
richard67 - comment - 11 Apr 2022

@MagnusSinger My comment from another, closed PR for the same issue also applies here, see #37350 (comment) .

Also the testing instructions should include a test that nothingness broken for other kinds of execution rules that the advanced cron expression .

avatar MagnusSinger
MagnusSinger - comment - 11 Apr 2022

@richard67 thanks for the hint, I'll have a look at it

avatar bembelimen
bembelimen - comment - 12 Apr 2022
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2022
Category Administration Administration Repository NPM Change JavaScript
avatar MagnusSinger
MagnusSinger - comment - 12 Apr 2022

@bembelimen @richard67 I tried to control it now via JS, please let me know if this is okay

avatar MagnusSinger MagnusSinger - change - 12 Apr 2022
Labels Added: NPM Resource Changed
avatar richard67
richard67 - comment - 14 Apr 2022

@dgrammatiko Could you do a quick review on the JS in this PR? To me it looks good, but I am not really a JS expert. Thanks in advance.

avatar richard67
richard67 - comment - 14 Apr 2022

@MagnusSinger Could you extend your testing instructions by a test if other execution rules than advanced cron expressions don't require the cron parameters (i.e. mainly a test for your last change)? Thanks in advance. In general it's important that testing instructions don't cover only the test for the fixed issue but also the test that other behaviour of the changed code is not broken.

avatar bembelimen
bembelimen - comment - 14 Apr 2022

We need for sure also a server side validation for this (e.g. in the models validate method)

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 - comment - 2 May 2023

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

avatar MagnusSinger MagnusSinger - change - 6 May 2023
Labels Added: ? bug
avatar MagnusSinger MagnusSinger - change - 6 May 2023
Labels Added: PR-4.3-dev
avatar HLeithner
HLeithner - comment - 30 Sep 2023

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

Add a Comment

Login with GitHub to post a comment