Skip to content

Fix project deselect bug

Alexander Turinske requested to merge fix-project-clear-all into master

What does this MR do and why?

Fix project deselect bug

  • when a project was deselected, it returned undefined, which caused an issue with the yaml
  • now handle this case
  • update tests

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
error error_message fixed

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project => Create a .yml file in it
  3. Navigate to the project => Secure => Policies => New policy => Scan Execution Policy
  4. Add new action => Run CI/CD code => Run "Linked existing CI file"
  5. Select the current project
  6. Verify the yaml is correct
  7. Deselect the project with clear all
  8. Verify the yaml is correct

Related to #428507 (closed)

Edited by Alexander Turinske

Merge request reports