Commit graph

4107 commits

Author SHA1 Message Date
Joey Orlando
d669f30e3c
scratch that.. add back LICENSE 2024-06-06 09:58:26 -04:00
Joey Orlando
af60d5c030
remove LICENSE file as it is inferred from grafana/.github org repo 2024-06-06 09:57:18 -04:00
Joey Orlando
033356fad3
remove CODE_OF_CONDUCT.md and LICENSING.md files (#4452)
# What this PR does

It appears that we have Code of Conducts defined for all repositories in
the `grafana` organization (see
[here](https://github.com/grafana/irm?tab=coc-ov-file) for an example
repo which doesn't define any `CODE_OF_CONDUCT.md` but still has one
show up in the repo's GitHub UI, see screenshot below 👇):
<img width="913" alt="Screenshot 2024-06-03 at 14 34 01"
src="https://github.com/grafana/oncall/assets/9406895/242337ab-97d6-46f1-96c4-ea8cdeef6ddd">


Also, `LICENSING.md` seems to be not relevant since we have a `LICENSE`
file? (which is the file that seems to be auto-pulled-in by GitHub's UI
👇):
<img width="995" alt="Screenshot 2024-06-03 at 14 33 06"
src="https://github.com/grafana/oncall/assets/9406895/3aa0ef08-c09b-4dc7-9187-a5bf955c4ce6">
2024-06-06 09:55:45 -04:00
Joey Orlando
462cf3b00d
🪦 RIP Drone 🪦 (#4478)
# What this PR does

Related to https://github.com/grafana/oncall-private/issues/2691
2024-06-06 13:22:56 +00:00
Rares Mardare
b9d344c932
Fix alert groups automatic refresh (#4463)
# What this PR does

- Fixes AG auto-refresh (every 15s)
- Reflect correct data on the UI after doing a bulk update
- Few tweaks regarding UX around bulk updates/loading
- Added some missing typescript support

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4454
2024-06-06 08:29:08 +00:00
clemthom
28190fe6b7
add exotel call provider (#4433)
# What this PR does

Added support for [Exotel](https://exotel.com/) call provider. 

Features:

- Sending verification code through SMS
- Making test call
- Making notification call


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-06 06:19:02 +00:00
Joey Orlando
2e1021573e
debugging push to gcom step 2024-06-05 14:41:29 -04:00
Joey Orlando
3ff8f07b65
yaml linting 2024-06-05 14:24:04 -04:00
Joey Orlando
e9e55f05b1
update build-engine-docker-image github actions workflow 2024-06-05 14:10:58 -04:00
Joey Orlando
2c0e02eba6
update build-engine-docker-image github actions workflow 2024-06-05 14:07:12 -04:00
Joey Orlando
be0b00f2a8
github actions workflows - wip 2024-06-05 13:55:12 -04:00
Joey Orlando
705bdb1d5a
github actions workflows - wip 2024-06-05 13:46:07 -04:00
Joey Orlando
cdd8354702
update on release published permissions 2024-06-05 12:33:18 -04:00
Joey Orlando
8910a9abd2
Drone -> GitHub Actions migration (#4466)
# What this PR does

Related to https://github.com/grafana/oncall-private/issues/2691
2024-06-05 12:25:53 -04:00
Innokentii Konstantinov
805d4421bd
Support grafana escalate (#4453)
# What this PR does
This PR adds support for **/grafana escalate** command alongside with
**/escalate.**
2024-06-05 05:51:26 +00:00
Vadim Stepanov
f40634a6eb
only validate existing settings (#4459)
# What this PR does

Only validate live settings in `AVAILABLE_NAMES` to avoid issues when a
live setting is renamed (one of the settings was renamed in
https://github.com/grafana/oncall/pull/4287 earlier)

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-04 19:06:59 +00:00
Vadim Stepanov
b3a56cdffc
Reduce size of payload on /escalate Slack command (#4458) 2024-06-04 18:11:15 +00:00
Rares Mardare
038d78df2a
Show correct swap request dates (#4456)
# What this PR does

Part of https://github.com/grafana/oncall/issues/4428

Additionally it fixes
- NPE within `SchedulePersonal`
- changes the line-break to use `contrastText` instead of `main` (from
grafana theme)
2024-06-04 14:12:16 +00:00
Andrey Oleynik
0acb66bd1a
conditionally enable searching for alert groups via env var (#4287)
# What this PR does

re-enables the search for alert groups

## Which issue(s) this PR closes

Closes #2232

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2024-06-04 11:51:02 +00:00
Rares Mardare
2f1ffcf2ff
Fix display of schedule final in preview mode (#4447)
# What this PR does

- Fixes the display of preview schedule when you click on a row

Part of #4428
2024-06-04 08:16:25 +00:00
Andrey Oleynik
d0dd15453e
change zvonok call verification (#4393)
# Change zvonok call verification

After May 27, the Zvonok service will block number verification that was
not set up as part of the phone number verification campaign. This PR
modifies the number verification process.

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
2024-06-04 05:34:57 +00:00
Michael Derynck
8539514d85
Add twilio flow templates for docs (#4380)
Adding JSON for Twilio flows to go with upcoming docs and blog post
2024-06-03 20:24:31 +00:00
Dominik Broj
66f807a671
Fix escaping quotes in Insights queries (#4442)
# What this PR does

Use backticks to correctly escape quotes in queries

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4439

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-03 14:14:16 +00:00
Levente Balogh
3566de38b9
Plugin.json: update with extensions info (#4407)
### What changed?

- Manually added ui-extensions metadata to the plugin.json (to be able
to lazy-load plugins in Grafana, based on [this
PR](https://github.com/grafana/grafana/pull/88288)
2024-06-03 13:21:01 +00:00
Vadim Stepanov
fafc336795
Allow custom wait delay (#4446)
# What this PR does

Same as https://github.com/grafana/oncall/pull/4422 but returns wait
delays as strings so it's backward-compatible with the mobile app API
calls.

## Which issue(s) this PR closes

Related to https://github.com/grafana/oncall/issues/2464

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-03 13:06:47 +00:00
Rares Mardare
cca2d0d960
Allow user unset the escalation chain on the integration (#4436)
# What this PR does

- Allow user unset the escalation chain on the integration

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4434
2024-06-03 12:46:17 +00:00
Rares Mardare
270ceeaeaf
Theming backwards compatibility (#4438)
# What this PR does

Closes https://github.com/grafana/oncall/issues/4437
2024-06-03 12:36:02 +00:00
Vadim Stepanov
e4170389dc
Revert "Allow custom wait delays" (#4441)
Reverts grafana/oncall#4422
2024-06-03 10:47:42 +00:00
Innokentii Konstantinov
17f448c506
Prepare OnCall for Unified Slack App (#4232)
This PR does a bunch of changes to prepare OnCall for Unified Slack App:
1. Install Slack via Chatops-Proxy. This change contains two parts:
getting a Slack install link from chatops-proxy
([code](https://github.com/grafana/oncall/pull/4232/files#diff-437a77d49fc04b92d315651b3df5991000b1ab74cf60aabb21aa77cb2823bf52R46))
and receiving a "slack installed" event from chatops-proxy
([code](https://github.com/grafana/oncall/pull/4232/files#diff-976d106f0962be5c1de5e35582193f68435ed0c17f2defd6bd2857bf6e27f65d)).
Also it means that OnCall doesn't need to register slack_links anymore
when slack is connected/disconnected. These changes are behind
UNIFIED_SLACK_APP_ENABLED flag and should be no-op if flag is not
enabled.
2. Get rid of Multiregionatily restrictions - instrument all slack
interactions with a ProxyMeta - json data telling chatops-proxy where to
route the interaction. Note, that it doesn't apply for "Add to
resolution notes" message action - it will be handled differently in
following PR.
3. Move all chatops-proxy related stuff from common/oncall-gateway to
apps/chatops-proxy

Minor changes:
1. Remove usage of **CHATOPS_V3** flag. Chatops v3 is already released
(It's a refactoring from previous quarter)

---------

Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-06-03 09:07:10 +00:00
Matias Bordese
2aa8639e2a
Update escalation auditor logs to expose succeeding count (#4431)
Related to https://github.com/grafana/oncall-private/issues/2619
(we need the succeeding number to make the SLO query happy with
cluster/namespace filtering)
2024-05-31 18:29:31 +00:00
Vadim Stepanov
d8e1a1dfae
Allow custom wait delays (#4422)
# What this PR does

Allows custom wait durations for:
* `Wait` escalation policy
* `>X alerts per Y minutes` escalation policy
* `Wait` user notification policy

## Which issue(s) this PR closes

Related to https://github.com/grafana/oncall/issues/2464

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-05-31 13:18:59 +00:00
Maxim Mordasov
f7975f1280
Schedules minor fixes (#4429)
# What this PR does

Schedules minor fixes

## Which issue(s) this PR closes


## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-05-31 12:36:23 +00:00
Matias Bordese
08d1e00430
Update escalation auditor to log total and failed escalations info (#4425)
Related to https://github.com/grafana/oncall-private/issues/2619
2024-05-30 18:53:53 +00:00
Matias Bordese
5291feeb51
Fix update slack group to not raise if group is not found (#4423)
Fixes https://github.com/grafana/oncall-private/issues/2664
2024-05-30 11:27:25 +00:00
Maxim Mordasov
d7419780e7
Schedule two-weeks and monthly view (#4318)
# What this PR does

Schedule two-weeks and monthly view, UI polishing

## Which issue(s) this PR closes

https://github.com/grafana/oncall-private/issues/2667


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Dominik Broj <dominik.broj@grafana.com>
2024-05-30 11:10:13 +00:00
Matias Bordese
8160482b5e
Fix team uniqueness db migration (#4416) 2024-05-28 19:41:42 +00:00
Vadim Stepanov
ef47e54f24
fix bad redirects (#4413) 2024-05-28 18:24:57 +00:00
Matias Bordese
6acbb71fad
Do not retry on SlackAPICantUpdateMessageError errors (#4405)
Related to https://github.com/grafana/oncall/pull/4329
2024-05-28 17:46:15 +00:00
Rares Mardare
80ecde6fbb
Fix reported errors by Faro (#4408)
# What this PR does

Fixes the following reported errors by Faro
- Cannot read properties of undefined (reading 'error_code') - found in
Page Error Handling wrapper
- Cannot read properties of undefined (reading 'slack_team_identity') -
Found in DefaultPageLayout helpers
- Cannot read properties of undefined (reading 'reduce') - undefined
passed labels in labels helpers
- Cannot read properties of undefined (reading 'controlled_fields') -
webhooks
- Cannot read properties of undefined (reading 'data')

The following needs to be further investigated to see if the response
misses whole body
- Cannot read properties of undefined (reading 'config') - happening in
Faro. I assume it's when an exception is thrown and the ex doesn't have
the `config` field

## Which issue(s) this PR closes

Closes #4403
2024-05-28 14:11:34 +00:00
Matias Bordese
7e3008ba0f
Setup team uniqueness at DB level (#4396)
Avoid potential duplicated teams. Also it should help ensuring
`sync_organization` idempotency.
2024-05-27 17:41:20 +00:00
Joey Orlando
2881bc8fec
update install-frontend-dependencies composable github action (again) (#4404) 2024-05-27 09:47:34 -04:00
Rares Mardare
f7beced64e
More emotionjs migration changes (#4362)
# What this PR does

- Get rid of some of the hardcoded css variables defined in `vars.css`,
specifically tags-related, but not only
- Migrated a few more components to emotion
2024-05-27 13:28:56 +00:00
Joey Orlando
d52e821c33
update install-frontend-dependencies github action (#4402) 2024-05-27 09:18:33 -04:00
Rares Mardare
997cb64a57
Fixed UserGroup selectors not showing the set value (#4394)
# What this PR does

Fix for https://github.com/grafana/oncall/issues/4371

- Fixed UserGroups' selectors not showing up the stored value - this
behavior was found in Schedule Form and Escalation Chains

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4371
2024-05-27 07:51:01 +00:00
Michael Derynck
357857faca
Add endpoint to get a single user group (#4395)
# What this PR does
Add endpoint to return slack user group from public primary key

## Which issue(s) this PR closes

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-05-24 20:26:28 +00:00
Joey Orlando
a92203e71c
remove unnecessary CI step bash command (#4397)
# What this PR does

This command is no longer necessary. Currently it doesn't seem to be
working (see screenshot 👇). Presumably `netcat-traditional` is installed
on the `ubuntu-latest-8-cores` runner.

![Screenshot 2024-05-24 at 14 42
23](https://github.com/grafana/oncall/assets/9406895/dcb80711-6168-4885-a7b8-a05e323c03bf)
2024-05-24 15:13:38 -04:00
Joey Orlando
96a4b36f1e
update drone.yml signature 2024-05-24 14:24:02 -04:00
Joey Orlando
93ab3407ff
rename settings/ci-test.py to settings/ci_test.py (#4391)
# What this PR does

Related to Drone -> GitHub Actions migration
2024-05-24 13:55:08 +00:00
Rares Mardare
dfea60e736
Allow custom silence period for alert groups + display how much left is for a silenced AG (#4375)
# What this PR does

https://github.com/grafana/oncall/issues/2333

- Allow custom input for silence period (either by duration or by
setting a future date in the calendar, both inputs are syncedd/editable)
- Show how much time is left for a silenced alert group

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/2333
2024-05-24 08:32:19 +00:00
Dominik Broj
f061d26a7d
hide datasource dropdown on cloud (#4386)
# What this PR does
hide datasource dropdown on cloud

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-05-23 18:22:56 +00:00