Skip to content

Reset oncall schedule form on cancel or close

What does this MR do?

It resets the schedule create/edit form state when the user cancels or closes the modal with the form

To check

  1. go to Project=>Monitor=>Oncall Schedules
  2. Open create schedule modal
  3. Make it invalid (submit without timezone or name)
  4. Close or cancel the modal
  5. Reopen the modal
  6. The form should be empty and have no validation messages

Same with the edit mode - the form should be restored to the initial state after close or cancel

Screenshots or Screencasts (strongly suggested)

2021-08-12_19.47.39

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #334743 (closed)

Merge request reports