Skip to content

Resolve "Delete alert integration"

What does this MR do?

A smallish MVC to handle the delete/edit sync of multiple HTTP integration endpoints through the new form for Category:Incident Management. The backend to support this here is here: Add GraphQL support for creating alert integrations

This feature sits behind a feature flag: http_integrations_list for the frontend and multiple_http_integrations for the backend.

Expected responses for form:

  • User doesn't have permissions: 200 OK, but errors includes 'The resource that you are attempting to access does not exist or you don't have permission to perform this action'
  • Failure to update the integration: 200 OK, but errors includes message related to what might have gone wrong

Design

design

This merge supports this Epic: &4442 (closed) and will come in the following stages:

Merge You are here
Add initial wrapper for new form and feature flag !45993 (merged)
Add GraphQL read endpoint to new form !46212 (merged)
Build out HTTP and Prometheus steps for new form / Add GraphQL Add HTTP endpoint to new form !46647 (merged)
Add GraphQL Update / Reset Token(Add GraphQL support for updating alert integrations) endpoint to new form !46697 (merged)
Add GraphQL delete integration endpoints(backend here: !45843 (merged) 🤘
Opsgenie && Test Payload TBA
Abstraction/clean up TBA
Remove feature flag(UX review happens here to keep the cost of work low) and delete old form code / REST API code TBA
Add ee support to add multiple endpoints N/A => This is included in step 3(handled by backend)

Screenshots (strongly suggested)

List View Delete Modal Delete Success New Addition(create after delete) Sample Prometheus multi create Edit endpoint Edit success
Screenshot_2020-11-03_at_14.32.16 Screenshot_2020-11-03_at_14.32.20 Screenshot_2020-11-03_at_14.32.24 Screenshot_2020-11-03_at_14.32.48 Screenshot_2020-11-03_at_14.33.08 Screenshot_2020-11-03_at_14.33.19 Screenshot_2020-11-03_at_14.33.29

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] 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 #255603 (closed)

Merge request reports