Alerting: Templates created via file don't display creation time

Description

STR:

Start dev-latest pmm-server and create .yml file in /srv/ia/templates/
Copy the content from the attachment to the file
Find the created template in Alert Rule Templates tab and check "Created" column

Result:

Suggested implementation
Rework loadTemplatesFromUserFiles in the following way - retrieve creation time of each template file, prepare []templateInfo slice and return it from.
 

How to test

None

How to document

None

Attachments

1

Smart Checklist

Activity

Show:

Details

Assignee

Reporter

Priority

Components

Needs QA

Needs Doc

Story Points

Affects versions

Smart Checklist

Created February 2, 2021 at 3:18 PM
Updated March 6, 2024 at 3:14 AM