phac-nml / irida-next

IRIDA Next
https://phac-nml.github.io/irida-next/
Apache License 2.0
8 stars 2 forks source link

Disable Workflow Executions and Automated Workflow Executions if pipelines.json is empty [DFCT0010085] #636

Closed joshsadam closed 3 weeks ago

joshsadam commented 3 weeks ago

What does this PR do and why?

Describe in detail what your merge request does and why.

If pipeline.json file is empty:

  1. Hide links in the UI (sidebar, projects, groups)
  2. Hide launch workflow button (projects and groups)
  3. Disable routes

Screenshots or screen recordings

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

How to set up and validate locally

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

  1. Update pipelines.json file to be an empty array []
  2. Restart bin/dev
  3. Ensure you cannot launch a workflow execution or visit any workflow execution pages.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

github-actions[bot] commented 3 weeks ago

Simplecov Report

Covered Threshold
92.46% 90%