Commit graph

5007 commits

Author SHA1 Message Date
Matias Bordese
65b4a23407
Add test_connection endpoint for alert receive channel backsync setup (#4050)
Related to https://github.com/grafana/oncall-private/issues/2542
2024-03-15 18:01:38 +00:00
Ilya Lukyanov
847d4c9dec
Fix web alert templater with many links (#4068)
# What this PR does

Web templater had a bug with link substitutions: it replaced every link
with 'oncallsubstitutedlink{link_idx}', and then replaced them back.
But if we have more than 10 links in the message, there
would be replacements like 'oncallsubstitutedlink10', which will be
partially replaced by match from 'oncallsubstitutedlink1', yielding
incorrect links in the resulting message. This fixes this behaviour.

## 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-03-15 17:23:24 +00:00
Dominik Broj
cf07121300
update types (#4059)
## 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.

---------

Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-03-15 12:38:09 +00:00
Matias Bordese
eb1228e782
Update universal integrations to reject requests without payload (#4053)
Reject integration requests with a null payload
2024-03-14 15:51:46 +00:00
teslaedison
335d7a8f7f
chore: fix some comments (#4055)
# What this PR does

Fix typos in comments

## 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.

Signed-off-by: teslaedison <qingchengqiushuang@gmail.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-03-14 15:36:00 +00:00
Rares Mardare
91e6bec06b
Allow description to be optional (#4060)
# What this PR does

Allow description input to be optional in the integration form
2024-03-14 14:38:52 +00:00
Rares Mardare
b80c51b0bf
ServiceNow configuration (#4046)
# What this PR does

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

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2535
2024-03-14 13:46:25 +00:00
Dominik Broj
9257e1bec4
Fix user profile test (#4057)
# What this PR does
Fix user profile test


## 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-03-14 13:18:36 +00:00
Vadim Stepanov
e0e56b9150
Create default webhooks on integration creation (#4052)
## Which issue(s) this PR closes

Related to https://github.com/grafana/oncall-private/issues/2541

<!--
*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-03-13 14:41:33 +00:00
Rares Mardare
017afaa1b7
Pass additional_settings from the integration form to backend (#4047)
# What this PR does

- Pass additional_settings from the integration form to backend

---------

Co-authored-by: Dominik <dominik.broj@grafana.com>
2024-03-13 12:54:38 +00:00
Yulya Artyukhina
9b7dce64cd
Delete connection on channel delete (#4048)
# What this PR does
Delete alert receive channel connections on alert receive channel delete
Related to https://github.com/grafana/oncall-private/issues/2540

## 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-03-13 12:25:41 +00:00
Dominik Broj
efbd8c3724
Fix ical link revoke (#4051)
# What this PR does

Fix ical link revoke

## 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-03-13 10:45:00 +00:00
Rares Mardare
75e5edf147
Show new indicator for which slack channel is default (#4040)
# What this PR does

- Replaced the old indicator of default slack channel within the
integration page so that it follows a semi-similar pattern for the other
channels instead

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

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/3797
2024-03-12 15:10:20 +00:00
Dominik Broj
a14716551c
Fix frontend unit tests (#4045)
# What this PR does

- bring back and fix frontend unit tests


## 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-03-12 12:21:53 +00:00
Dominik Broj
a601ad506c
Connect dependent alert receive channels to source channel (#4039)
# What this PR does

Connect dependent alert receive channels to source channel

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2462

<!--
*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-03-12 09:25:37 +00:00
Ildar Iskhakov
a0d793ff84
Update CHANGELOG.md (#4041) 2024-03-12 07:47:08 +00:00
Joey Orlando
d264c6b10d
Merge pull request #4044 from grafana/helm-release/1.3.112
Merge: Release oncall Helm chart 1.3.112
2024-03-11 14:18:55 -04:00
GitHub Actions
bdb33807db Release oncall Helm chart 1.3.112 2024-03-11 17:50:16 +00:00
Michael Derynck
2fa1c44b11
Merge pull request #4043 from grafana/dev
v1.3.112
2024-03-11 11:49:17 -06:00
Matias Bordese
3a5d00ad60
Add additional settings serializer details for OpenAPI schema generation (#4042)
Related to https://github.com/grafana/oncall-private/issues/2540
2024-03-11 15:47:15 +00:00
Marco Schaefer
ff3ff39cf3
fe-o11y-team/chore(deps): upgrade faro to v1.4.2 (#4022)
# What this PR does
Upgrade Faro to v1.4.2.

This release fixes a bug in the web-tracing package where the wrong
traceId /spanId was attached to `faro.tracing.*` events

## Which issue(s) this PR closes

Closes [issue link here]

*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-03-11 09:49:54 +00:00
Dominik Broj
f4bb56fe32
Fix passing additional headers to custom fetch (#4038)
# What this PR does

Fix passing additional headers to custom fetch

## Which issue(s) this PR closes

Closes https://github.com/grafana/support-escalations/issues/9630

<!--
*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-03-11 09:23:16 +00:00
Joey Orlando
4ec5f08bde
Merge pull request #4036 from grafana/helm-release/1.3.111
Merge: Release oncall Helm chart 1.3.111
2024-03-07 16:13:37 -05:00
GitHub Actions
3f3b0ad31e Release oncall Helm chart 1.3.111 2024-03-07 20:48:52 +00:00
Matias Bordese
ce94eda820
Merge pull request #4035 from grafana/dev
v1.3.111
2024-03-07 17:47:25 -03:00
Rares Mardare
6680abb60d
Fixed schedules not showing tooltip for user details (#4033)
# What this PR does

## Which issue(s) this PR closes

## 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 <dominik.broj@grafana.com>
2024-03-07 20:28:51 +00:00
Matias Bordese
d27bd6af51
Add support for integration additional settings via custom serializer (#4027)
Related to https://github.com/grafana/oncall-private/issues/2540
2024-03-07 18:35:11 +00:00
Michael Derynck
73dd14d695
Move fcm_relay task from webhook to critical queue (#4034)
# What this PR does
The fcm_relay task was in the wrong queue, moves it to critical.

## 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

- [ ] 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-03-07 18:26:25 +00:00
Vadim Stepanov
6d9d58d0db
Add id_ne filter for integrations (internal API) (#4032)
# What this PR does

Adds a new multiple choice `id_ne` (ID not equal) filter to internal API
integrations endpoint.

## Which issue(s) this PR closes

Related to https://github.com/grafana/oncall-private/issues/2540

## 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-03-07 17:53:44 +00:00
Vadim Stepanov
cf1fac8997
Backend support for "connected" integrations (#4030)
# What this PR does

Adds a Django model and internal API for connected integrations. Based
on https://github.com/grafana/oncall/pull/3983

## Which issue(s) this PR closes

Related to https://github.com/grafana/oncall-private/issues/2540

## 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-03-07 17:47:33 +00:00
Joey Orlando
f6b6bb053c
remove GOVERNANCE.md and MAINTAINERS.md (#4021)
# What this PR does

See internal conversation
[here](https://raintank-corp.slack.com/archives/C04JCU51NF8/p1709734053681209?thread_ts=1709116950.477509&cid=C04JCU51NF8).
tldr;
- `MAINTAINERS.md` - outdated + `.github/CODEOWNERS` contains the
same/automated up-to-date information (via references to GitHub teams
rather than individual users in a `.md` file)
- `GOVERNANCE.md` - outdated; for example, a lot of references to GitHub
discussions, which we do not use in this repo + another list of outdated
users

## Which issue(s) this PR closes

N/A

## 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-03-07 17:28:58 +00:00
Joey Orlando
c85a9601a2
allow @grafana/grafana-oncall GitHub team users to approve changes to /docs (#4026)
# What this PR does

On https://github.com/grafana/oncall/pull/3992 I needed to poke the
`docs-gops` team for an approval, even though it was only a one line
change and can be safely approved by anyone on the OnCall team

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] 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-03-07 17:09:56 +00:00
Joey Orlando
b5656e1789
Merge pull request #4029 from grafana/helm-release/1.3.110
Merge: Release oncall Helm chart 1.3.110
2024-03-07 08:48:45 -05:00
GitHub Actions
34770037f6 Release oncall Helm chart 1.3.110 2024-03-07 12:33:58 +00:00
Joey Orlando
81246d9529
v1.3.110 2024-03-07 07:31:59 -05:00
Johnny Kartheiser
99cd4c1c48
OnCall Docs - Add description of Slack timeouts [support request] (#3747)
# What this PR does
A support request came in for additional documentation on the timeouts
for the Slack chat ops integration in docs.

## Which issue(s) this PR fixes
https://github.com/grafana/support-escalations/issues/8769

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)

---------

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2024-03-06 20:03:33 +00:00
Ravishankar
642f8202c8
Add silenced_at field to alert group public API (#3992)
# What this PR does

## Which issue(s) this PR fixes

Closes #3913 

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-03-06 19:20:33 +00:00
Joey Orlando
53e77e82de
Fix link on inbound email integration docs (#4025)
# What this PR does

**Before**
<img width="812" alt="Screenshot 2024-03-06 at 12 52 12"
src="https://github.com/grafana/oncall/assets/9406895/b93982e7-b092-450c-ac5b-95ccb8d33ebf">

**After**
<img width="796" alt="Screenshot 2024-03-06 at 12 50 39"
src="https://github.com/grafana/oncall/assets/9406895/edae5d53-78b5-446c-b8df-3e433b8c174d">


## Which issue(s) this PR closes

Fixes issue reported in GH issue comment
[here](https://github.com/grafana/oncall/issues/3700#issuecomment-1980991146)

Closes [issue link here]

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] 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-03-06 18:24:17 +00:00
Joey Orlando
e7eefe68e0
Allow e2e tests GitHub Actions job to run for PRs from external forks (#4024)
# What this PR does

Allow e2e tests GitHub Actions job to run for PRs from external forks.
At the moment they are not allowed to run because PRs from external
forks are not allowed to access secrets in this repository. The secrets
accessed by the e2e tests are _really_ only required by the
daily/"expensive" e2e tests.

[Example PR](https://github.com/grafana/oncall/pull/3992) from external
fork where e2e tests fail ([CI
job](https://github.com/grafana/oncall/actions/runs/8175205794?pr=3992)):
<img width="1110" alt="Screenshot 2024-03-06 at 11 58 05"
src="https://github.com/grafana/oncall/assets/9406895/00ca97c2-0740-4e3e-9a03-7e92f20b69e6">


## Which issue(s) this PR closes

N/A

## 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-03-06 18:20:55 +00:00
Joey Orlando
eac562cd94
Automate release note generation (#4004)
# What this PR does

- Automate our release note creation using `.github/release.yml` (see
docs
[here](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#example-configurations)).
- Add a GitHub Actions check for PRs to ensure that each PR contains one
`release:` label (which dictates how it will show up in the release
notes)

In addition, created the required labels:
<img width="701" alt="Screenshot 2024-03-04 at 13 25 45"
src="https://github.com/grafana/oncall/assets/9406895/eab83658-dfe9-478e-90d1-7cd66d9fce5d">

Once these changes are adopted and merged to `main` we can also delete
the `pr:no changelog` label.

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-06 14:37:55 +00:00
Dominik Broj
b939c93200
Use autogenerated types for users (#4017)
# What this PR does

use autogenerated types for users

## Which issue(s) this PR fixes

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

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-06 13:48:09 +00:00
Joey Orlando
0353bcfb92
update PR template + change assigned label on issue creation (#4020)
# What this PR does

Update PR template + change assigned label on issue creation

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated (N/A)
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-06 12:08:41 +00:00
Dominik Broj
3eaeabdddf
Configure knip and remove dead code (#3999)
# What this PR does
 - provide a way to detect dead code and remove it

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

---------

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2024-03-06 08:06:03 +00:00
Matias Bordese
5326d945e0
Allow setting integration_filter to null in webhooks internal API (#4011)
Fixes https://github.com/grafana/oncall/issues/4006
2024-03-05 17:11:47 +00:00
Michael Derynck
e5ab057490
Update readme (#4012)
Remove links to discussions  and community call.
Brief explanation:
- We are not keeping up with discussion forum better to direct people to
open an issue or chat in slack for the team to see it
- Community call info to be posted to other channels when the next one
is scheduled.
2024-03-05 16:12:54 +00:00
Dominik Broj
025b5f21f7
Fix notification settings dropdowns (#4009)
# What this PR does

- get rid of useMemo to fix passing fetched items
- get rid of nested ternary operator in GSelect to increase readability

## Which issue(s) this PR fixes

https://github.com/grafana/support-escalations/issues/9566

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-05 11:56:51 +00:00
Ildar Iskhakov
1101d8461b
Use local arm64 grpcio wheel to make local builds on arm64 faster (#4000)
This is the workaround to make local image build faster on arm64
machines
This commit can be reverted once
https://github.com/grpc/grpc/issues/34998 is resolved
2024-03-05 06:31:58 +00:00
Innokentii Konstantinov
80e93b10cd
Instrument requests lib (#4008)
# What this PR does

Instument requests lib to provide consistent trace_id
2024-03-05 05:22:34 +00:00
Michael Derynck
a466e79bc5
Fix slack declare incident label (#4007)
# What this PR does
Make label consistent with casing in web ui

## Which issue(s) this PR fixes
#2831

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-05 01:26:16 +00:00
Michael Derynck
d938b52d80
Add scheduled task to start cleanup tasks (#3976)
# What this PR does
Add scheduled task to start cleanup tasks. Currently purpose is to run
the task every 12 hours and for all active orgs cleanup empty & deleted
integrations. For deleted orgs we can run this manually. It will also
run if an org moves from active to deleted. It is expected to add more
to cleanup_organization task over time.

## Which issue(s) this PR fixes

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-03-04 19:45:01 +00:00