Skip to content

Allow null and empty string values for unused field

Sarah Yasonik requested to merge sy-unrequire-prometheus-api-url into master

What does this MR do and why?

Allow null and empty string values for unused field

API URL field on Prometheus integrations is no longer used. It should not be required via API.

Fixes specs that test this functionality.

Changelog: changed

Screenshots or screen recordings

NA

How to set up and validate locally

  1. Use the following GQL mutation to create an entry for Integration -
mutation PrometheusIntegrationCreate($input: PrometheusIntegrationCreateInput!) {
  prometheusIntegrationCreate(input: $input) {
    integration {
      id
      name
      active
      apiUrl
      url
    }
    errors
  }
}

with following same input -

{
  "input": {
    "projectPath": "<project_path>",
    "active": true
  }
}
  1. The above mutation should return success and integration should be created.

MR acceptance checklist

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

Edited by Rajendra Kadam

Merge request reports