Commit Graph
18 Commits
Author SHA1 Message Date
Lukasz MierzwaandŁukasz Mierzwa 1cf2e5760f fix(backend): use json v2 2026-03-11 13:10:15 +00:00
Lukasz MierzwaandŁukasz Mierzwa f207da0f79 fix(backend): use less memory 2026-03-11 13:10:15 +00:00
Lukasz MierzwaandŁukasz Mierzwa 3ab3417931 fix(backend): fix some go issues 2026-03-09 19:44:23 +00:00
Lukasz MierzwaandŁukasz Mierzwa e0478ec685 fix(backend): replace intern package with unique 2025-10-30 12:59:44 +00:00
Lukasz MierzwaandŁukasz Mierzwa ccd14cbc7f fix(backend): reduce allocations 2025-09-04 14:43:18 +01:00
Łukasz MierzwaandŁukasz Mierzwa 46b566a92b fix(backend): fix links with spaces 2022-10-28 12:51:22 +01:00
Łukasz MierzwaandŁukasz Mierzwa 689866a64c fix(backend): enable more Go linters 2022-07-15 18:32:07 +01:00
Łukasz MierzwaandŁukasz Mierzwa 650fdca8e6 feat(ci): use goimports to format import statements 2021-12-16 20:51:52 +00:00
Łukasz MierzwaandŁukasz Mierzwa d172c58a1a feat(backend): add labels:order config option
Fixes #3500
2021-11-01 11:00:46 +00:00
Łukasz MierzwaandŁukasz Mierzwa f68399cc70 feat(ui): allow moving annotations to alert dropdown menu
Fixes #2596
2021-03-06 16:01:50 +00:00
Łukasz MierzwaandŁukasz Mierzwa fbef0aeb5f fix(backend): reduce number of memory allocations 2020-05-28 18:44:13 +01:00
Benoît KnechtandŁukasz Mierzwa 7f3846b9f8 feat(backend): Add option to order annotations
The `annotations.order` option lets users pass a list of annotation names in
the order they want them displayed. Any annotation that isn't in the list is
shown after the annotations from the list, in alphabetical order.

For instance, with

```yaml
annotations:
  order:
  - summary
  - description
```

an alert with `description`, `help`, `runbook` and `summary` annotations will
have them displayed in that order:

- `summary`
- `description`
- `help`
- `runbook`

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2020-05-09 15:18:56 +01:00
Łukasz MierzwaandŁukasz Mierzwa bc9b711d0f fix(ui): correctly handle annotations with spaces after the link
Fixes #1648
2020-04-20 22:59:48 +01:00
Łukasz Mierzwa 9c16ffa447 chore(project): rename from unsee to karma
Fixes prymitive/unsee#23
2018-09-09 14:12:26 +01:00
Łukasz Mierzwa b71883f1ef Migrate to new repo
Forked unsee from cloudflare, so import paths needs to be updated
2018-06-07 15:30:57 +02:00
Łukasz Mierzwa 6273a5a585 Rewrite flag & env handling to use viper
This adds support for reading configuration from file, env support is still there and legacy env variables will still work, but flags are now following config schema, so they don't match old flags.
Having a config file allows to express more complex configuration options, which is needed for some feature requests.
2017-11-27 20:34:36 -08:00
Łukasz Mierzwa ab25daf6c9 Implement logic for setting annotation visibility
This allows to signal to the UI which annotations to hide and which to show by default, user still can view hidden ones
2017-09-07 12:15:32 -07:00
Łukasz Mierzwa 54b1455276 Use dedicated struct for storing alert annotations
Annotations are just string maps, but to render those we need a bit more information (is it a link, should it be visible by default). Store them as more complex structs internally, this also allows us to drop alert.Links since we now have enough information to tell if annotation is a link
2017-09-07 12:15:32 -07:00