one icon indicating copy to clipboard operation
one copied to clipboard

Schedule actions section on vm template

Open dcarracedo opened this issue 1 year ago β€’ 0 comments

Description Issues on the Scheduled action section of the vm template:

Issue 1: Sched action relative: If you try to update a schedule action that is of relative type, there is an error so the user cannot do this action. Screencast from 26-02-24 12:11:31.webm

To Reproduce

  1. Create a template with a schedule action of relative type.
  2. Update the template.
  3. Go to Schedule action tab
  4. Edit the scheduled action and click Accept.
  5. Nothing happens and the form is not closed.

Expected behavior That the scheduled action is updated without problems.

Issue 2: Sched action default type: Mark as default the One time action. image

To Reproduce

  1. Create a template with a schedule action of relative type.
  2. Go to Schedule action tab
  3. Click on Add action button

Expected behavior That the One time option is selected by default. image

Issue 3: Sched daily: If you select Daily, when you submit the form, there is an error about DAYS has to be an empty value. That’s because when you select Daily, DAYS has to be β€œ0,1,2,3,4,5,6” (all days). Screencast from 26-02-24 12:19:13.webm

To Reproduce

  1. Create a template with a schedule action of relative type.
  2. Go to Schedule action tab
  3. Click on Add action button
  4. Select a perioridic action with Daily as Granularity of the action.
  5. Click accept and update the template.

Expected behavior That there is no error when a template is updated or created with this type of scheduled action.

Issue 4: Repetitions: Number of repetitions have to be mandatory if users select repetitions on end type value.

To Reproduce

  1. Create a template with a schedule action of relative type.
  2. Go to Schedule action tab
  3. Click on Add action button
  4. Select as end type Repetitions
  5. Accept without add any number as repetitions.

Expected behavior That if the user wants repetitions, he should add the number of repetitions mandatory.

Issue 5: Time on periodic type: The field time on a periodic action it's the start time of the action, so change the name from "Time" to "Start time" (be careful because it's only on periodic action and this field is used in all the types of scheduled actions). image

To Reproduce

  1. Create a template with a schedule action of relative type.
  2. Go to Schedule action tab
  3. Click on Add action button
  4. Select a perioridic action

Expected behavior The label of the field is "Start time" in case of periodic schedule actions: image

Details

  • Affected Component: FireEdge
  • Hypervisor: N/A
  • Version: 6.8

Additional context There is a case to add on templateadvanced.func.spec.js tests:

  • Develop a test to control the date component. Now, the tests type a string with the value of the time, but if you execute the test with npm run cypress:run the date component is launched, so the test could not add the time. We need a test that can manage the date component to select a date. IMPORTANT: Now the time field is ignored on the template check so change this ignore behavior after develop the test.

Tasks

  • [ ] Issue 1
  • [ ] Issue 2
  • [ ] Issue 3
  • [ ] Issue 4
  • [ ] Issue 5
  • [ ] Testing date component

Progress Status

  • [ ] Code committed
  • [ ] Testing - QA
  • [ ] Documentation (Release notes - resolved issues, compatibility, known issues)

dcarracedo avatar Feb 26 '24 11:02 dcarracedo