Let user upload multiple alert rule templates using CreateTemplate API endpoint in Alerting.

Description

User story:{*}*

This constraint makes Global Services automation slow. 

https://github.com/percona/pmm/blob/ce434f5f1432ed74bce7b1682f256bca8ee66b19/managed/services/management/alerting/service.go#L550

UI/UX:

 

Acceptance criteria:

 

Out of scope:

 

Suggested implementation:

 

How to test:{*}*

UI form for creating custom template should accept yaml file that contains multiple templates. In case of invalid template error should be descriptive enough.

Details:

How to test

-

How to document

Templates creation form lets user to pass multiple templates in one yaml

Activity

Show:

vasyl.yurkovych July 27, 2023 at 12:20 PM

verified in perconalab/pmm-server-fb:PR-3291-1cfb684 build

Artem Gavrilov July 20, 2023 at 9:13 AM

Fixed

vasyl.yurkovych July 10, 2023 at 9:59 AM

While editing one of the templates that were uploaded via Bulk upload functionality whole initial yml content is shown in the Edit dialog instead of a single template that I'm trying to edit. 

We should show only yaml content of an actual template user is trying to edit.  

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Smart Checklist

Created December 7, 2022 at 3:24 PM
Updated March 6, 2024 at 12:18 AM
Resolved July 28, 2023 at 4:19 PM