mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
ed7d29f2b9
* Migrate old alerting templates to use $labels * Fix imports * Add test coverage and separate rewriting to Go templates * Fix lint * Check for additional closing braces * Add logging of invalid message templates * Fix tests * Small fixes * Update comments * Panic on empty token * Use logtest.Fake * Fix lint * Allow for spaces in variable names by not tokenizing spaces * Add template function to deduplicate Labels in a Value map * Fix behavior of mapLookupString * Reference deduplicated labels in migrated message template * Fix behavior of deduplicateLabelsFunc * Don't create variable for parent logger * Add more tests for deduplicateLabelsFunc * Remove unused function * Apply suggestions from code review Co-authored by: Yuri Tseretyan <yuriy.tseretyan@grafana.com> * Give label val merge function better name * Extract template migration and escape literal tokens * Consolidate + simplify template migration --------- Co-authored-by: William Wernert <william.wernert@grafana.com> |
||
---|---|---|
.. | ||
accesscontrol | ||
anonservice | ||
oauthserver | ||
ualert | ||
alert_mig.go | ||
annotation_mig.go | ||
apikey_mig.go | ||
cache_data_mig.go | ||
common.go | ||
correlations_mig.go | ||
dashboard_acl.go | ||
dashboard_mig.go | ||
dashboard_public_mig.go | ||
dashboard_snapshot_mig.go | ||
dashboard_version_mig.go | ||
datasource_mig.go | ||
db_file_storage.go | ||
entity_events_mig.go | ||
external_alertmanagers.go | ||
folder_mig.go | ||
heartbeat_mig.go | ||
kv_store_mig.go | ||
libraryelements.go | ||
login_attempt_mig.go | ||
migrations_test.go | ||
migrations.go | ||
org_mig.go | ||
playlist_mig.go | ||
plugin_setting.go | ||
preferences_mig.go | ||
query_history_mig.go | ||
query_history_star_mig.go | ||
quota_mig.go | ||
secrets_mig.go | ||
serverlock_migrations.go | ||
session_mig.go | ||
short_url_mig.go | ||
stats_mig.go | ||
tag_mig.go | ||
team_mig.go | ||
temp_user.go | ||
user_auth_mig.go | ||
user_auth_token_mig.go | ||
user_mig.go |