Skip to content

Stop showing Jira-issue button when setting is disabled

What does this MR do?

It fixes an issue where the "Create Jira Issue" button on the vulnerability details page always shows, even when the corresponding setting is not enabled.

Note: The issue is currently behind the :create_vulnerability_jira_issue_via_graphql feature flag.

Screenshots or Screencasts (strongly suggested)

setting
Screen_Shot_2021-08-03_at_10.49.17_am
before after
Screen_Shot_2021-08-03_at_10.49.55_am Screen_Shot_2021-08-03_at_10.50.24_am

How to setup and validate locally (strongly suggested)

  1. Enable the feature flag by running echo "Feature.enable(:create_vulnerability_jira_issue_via_graphql)" | rails c
  2. Disable the "Enable Jira issues creation from vulnerabilities" setting within "Project > Settings > Integrations > Jira"
  3. Go to a vulnerability's details page

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 #337058 (closed)

Edited by David Pisek

Merge request reports

Loading