Commit graph

3628 commits

Author SHA1 Message Date
Dominik Broj
fdbccdac99
add tabs for snow integration (#3726)
# What this PR does
add incoming / outgoing tabs when integration is service now

## Which issue(s) this PR fixes
https://github.com/grafana/oncall-private/issues/2460

## 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-01-22 15:24:54 +00:00
Dominik Broj
32b11196c8
Brojd/update insights docs (#3692)
# What this PR does
- add info in docs about Insights within OnCall

## Which issue(s) this PR fixes
https://github.com/grafana/oncall-private/issues/2436

## 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: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-01-22 11:26:07 +00:00
Innokentii Konstantinov
3a2cb99ac9 Another round of fixing chatops urls 2024-01-22 15:25:47 +08:00
Innokentii Konstantinov
89b6b06879
Update v3 telegram routes namespace (#3724) 2024-01-22 14:50:13 +08:00
Innokentii Konstantinov
f7df1ad5e7
Slack and telegram routes to test chatops-proxy v3 (#3723) 2024-01-22 13:48:19 +08:00
Innokentii Konstantinov
4a02d83fd1
Chatops api v3 (#3721)
This PR makes OnCall compatible with chatops-proxy v3. When CHATOPS_V3
is enabled, oncall will use new api client to register tenants and slack
installations. Also I added v3 routes for slack and telegram, so it's
possible to test new chatops proxy.

Currently two versions of chatops-proxy api are deployed, but they are
not compatible. They are doing same thing, using different db model and
tables. Once only v3 version will be left in prod, I'll remove
CHATOPS_V3 env var, all leftovers of previous api client and v3 slack
and telegram routes.

---------

Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
2024-01-20 06:56:17 +00:00
Johnny K
36f5fdc56e
OnCall Docs: Fix 'escalations' typo on Get Started page (#3717)
# What this PR does
Fixes the escalations typo.

## Which issue(s) this PR fixes
Someone noticed the typo internally.

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

---------

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-01-19 21:09:08 +00:00
Dominik Broj
d3b1dc619e
Brojd/add e2e test for webhooks creation (#3709)
# What this PR does

## 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-01-19 12:57:03 +00:00
Rares Mardare
fc40abac9e
Improved alert group table columns layout calculation (#3712)
# What this PR does

Improves calculations across columns width

## Which issue(s) this PR fixes

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

## 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-01-19 11:25:18 +00:00
Dominik Broj
5e47e79cba
fix queries in insights scenes (#3720)
# What this PR does
- fix wrongly renamed instance in promql queries


## 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-01-19 10:52:20 +00:00
github-actions[bot]
8f2f21ab89
Update make docs procedure (#3718)
Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-19 09:32:03 +00:00
Joey Orlando
15a9a6cd69
[DOCS] fix column ordering in RBAC roles tables (#3715)
# Which issue(s) this PR fixes

Column ordering was mixed up.

**Before**
<img width="1345" alt="Screenshot 2024-01-18 at 11 10 25"
src="https://github.com/grafana/oncall/assets/9406895/106774df-be36-48df-be71-6ebe67d155d1">

**After**
<img width="818" alt="Screenshot 2024-01-18 at 11 16 07"
src="https://github.com/grafana/oncall/assets/9406895/adca446b-5ab4-47e8-8ff3-0956f6a6b8ec">
2024-01-18 16:28:53 -05:00
Joey Orlando
ddd71a81d7
Merge branch 'dev' of github.com:grafana/oncall into dev 2024-01-18 09:10:04 -05:00
Joey Orlando
f27aa48dcb
address typo in partial passed to transaction.on_commit 2024-01-18 09:09:48 -05:00
Yulya Artyukhina
40c964c7b7
Speed up send email notification task (#3713)
# What this PR does
Removes unnecessary filtering by organization during emails limit check
in send email notification task since there is filtering by user there,
so there is no need to check organization
## Which issue(s) this PR fixes
https://github.com/grafana/oncall-private/issues/2205
## 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-01-18 13:54:18 +00:00
Joey Orlando
17f3260657
Merge branch 'main' into dev 2024-01-18 08:05:17 -05:00
Joey Orlando
87d7901a59
Update CHANGELOG.md 2024-01-18 08:04:25 -05:00
Joey Orlando
909aacd8b8
change perform_notification.apply_async
transaction.on_commit back to using partial
2024-01-18 07:58:21 -05:00
Joey Orlando
16b648bd15
fix infinitely retrying apps.alerts.tasks.notify_user.perform_notification task (#3708)
# Which issue(s) this PR fixes

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

## 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-01-18 07:07:01 -05:00
Rares Mardare
b312667d31
AG columns polishing (#3668)
# What this PR does

## Which issue(s) this PR fixes

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

## 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-01-18 11:15:13 +00:00
Joey Orlando
969c28c232
modify mobile app proxy gateway headers + request body (#3707)
# What this PR does

Some more necessary changes after local testing w/ Grafana Incident team

## 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-01-17 16:29:47 -05:00
Matias Bordese
2fd456fc77
Update alert group personal notifications checker to check sent SMS (#3698)
Sent SMS messages are considered completed for our purpose here (ie. do
not wait for Twilio delivered confirmation).
2024-01-17 17:46:18 +00:00
Joey Orlando
6a8ab15af3
Merge pull request #3706 from grafana/helm-release/1.3.89
Merge: Release oncall Helm chart 1.3.89
2024-01-17 12:25:03 -05:00
GitHub Actions
b4adeb4e0b Release oncall Helm chart 1.3.89 2024-01-17 17:10:08 +00:00
Joey Orlando
7fed606835
v1.3.89 2024-01-17 12:03:03 -05:00
Joey Orlando
78de298a2e
Update CHANGELOG.md 2024-01-17 12:02:11 -05:00
Matias Bordese
c99788e9d2
Update schedule on-call cache on scheduled refresh tasks (#3699)
Related to https://github.com/grafana/oncall/issues/3673
Keep cache up to date on every schedule refresh task run (which should
keep cache populated every time), helping on any call using cached
information (particularly the direct paging slack dialog building).
2024-01-17 16:30:11 +00:00
Joey Orlando
31ffa805cc
update mobile app gateway jwt to include user email (#3704)
# What this PR does

Changes as requested by Grafana Incident team

## 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-01-17 10:47:18 -05:00
Matias Bordese
0a077ccfdb
Update and refactor users API team filter (#3703)
This should hopefully fix the lint issue
[here](https://drone.grafana.net/grafana/oncall/3361/1/7)
2024-01-17 15:18:08 +00:00
Innokentii Konstantinov
36d2c3bdb7
Adds new templates cheatsheats (#3643)
Co-authored-by: Maxim Mordasov <maxim.mordasov@grafana.com>
2024-01-17 13:49:36 +00:00
Yulya Artyukhina
c7895c2308
Fix post message to slack channel (#3701)
# What this PR does
Extend list of exceptions to ignore on posting message to slack channel

## Which issue(s) this PR fixes
https://github.com/grafana/oncall/issues/3694

## 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-01-17 13:05:36 +00:00
Vadim Stepanov
6c248ed1c8
Fix posting Slack message when route is deleted (#3702)
# What this PR does

Fixes https://github.com/grafana/oncall/issues/3646

## 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-01-17 13:00:25 +00:00
Rares Mardare
3c2c259721
Proper fix for GForm not resetting the hidden fields to undefined (#3691)
# What this PR does

## Which issue(s) this PR fixes

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

## 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-01-16 15:17:42 +00:00
Joey Orlando
bd924d9809
v1.3.88 2024-01-16 07:14:28 -05:00
Joey Orlando
72fc32daf6
Update CHANGELOG.md 2024-01-16 07:13:51 -05:00
Joey Orlando
f85cc6d33b
add more logging on celery task retry (#3695)
# What this PR does

This is a follow up to https://github.com/grafana/oncall/pull/3677.

It appears that when a task uses the [`autoretry_for`
kwarg](https://docs.celeryq.dev/en/stable/userguide/tasks.html#automatic-retry-for-known-exceptions)
in the task decorator, it doesn't log the exception in `on_failure` as
would be expected. Now when retrying, we log out a message + any
exception/stack trace information.

## 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-01-16 07:13:16 -05:00
Vadim Stepanov
80f85cf4b4
Fix updating a shift swap with no Slack message (#3686)
# What this PR does

Fixes https://github.com/grafana/oncall/issues/3648

## 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-01-15 17:36:01 +00:00
Joey Orlando
9d84095b75
Merge pull request #3689 from grafana/helm-release/1.3.87
Merge: Release oncall Helm chart 1.3.87
2024-01-15 12:00:43 -05:00
GitHub Actions
38a66beb12 Release oncall Helm chart 1.3.87 2024-01-15 16:36:51 +00:00
Joey Orlando
0534f00ba2
v1.3.87 2024-01-15 11:36:07 -05:00
Joey Orlando
da7f07ffd6
Fix occasional AttributeError in apps.grafana_plugin.tasks.sync.sync_organization_async task (#3687)
# Which issue(s) this PR fixes

Fix this issue I came across in a celery task retry exception log:
![Screenshot 2024-01-15 at 11 21
13](https://github.com/grafana/oncall/assets/9406895/ed08f2f1-dc7d-4ad3-88a0-dc02cd740582)


## 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-01-15 11:34:40 -05:00
Vadim Stepanov
cc071806f3
disable DRF_SPECTACULAR_ENABLED by default 2024-01-15 16:06:46 +00:00
Vadim Stepanov
d7f23c0404
servicenow logo (#3684) 2024-01-15 14:29:38 +00:00
Dominik Broj
e899fc8447
add e2e test for schedules (#3683)
# What this PR does
- add e2e test for schedules page

## Which issue(s) this PR fixes
https://github.com/grafana/oncall-private/issues/2455

## 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-01-15 13:49:15 +00:00
Dominik Broj
898d025d09
enable live reload (#3682)
# What this PR does
- enable auto reloading browser on frontend code changes in development

## Which issue(s) this PR fixes
https://github.com/grafana/oncall/issues/3652

## 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-01-15 10:38:36 +00:00
Joey Orlando
4036ced9b9
add LogExceptionOnFailureTask celery task class (#3677)
# What this PR does

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

## 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-01-12 21:31:01 +00:00
Joey Orlando
348ccb8653
unskip escalation policy test (#3678) 2024-01-12 15:19:43 -05:00
Joey Orlando
42b258bfc8
Merge pull request #3676 from grafana/helm-release/1.3.86
Merge: Release oncall Helm chart 1.3.86
2024-01-12 13:14:54 -05:00
GitHub Actions
76c702aae8 Release oncall Helm chart 1.3.86 2024-01-12 17:39:14 +00:00
Matias Bordese
128240000d
Merge pull request #3675 from grafana/dev
v1.3.86
2024-01-12 14:24:36 -03:00