Commit graph

1618 commits

Author SHA1 Message Date
Rares Mardare
c3558061b7
#1032 - Modal set to modal-wide, renamed AppVerification (#1123)
# What this PR does

Fix for #1032 
- Set `UserSettings` popup to `modal-wide` all the time
- Renamed `AppVerification` to `AppConnection` both in file naming and
UI
- Make telegram tab take `width: 100%` inside modal
2023-01-13 16:08:33 +02:00
Matias Bordese
0d38fe2a7f
Web schedules overrides are the higher priority level (#1115)
Related to https://github.com/grafana/oncall-private/issues/1550
2023-01-13 08:58:35 -03:00
Rares Mardare
71188a895e
#1096 - Show loading inside PluginPage (#1134)
# What this PR does

#1096 - Show plugin loading inside PluginPage
2023-01-13 13:52:05 +02:00
Dieter Plaetinck
6e4d877f93
dev quickstart: no need to configure, safe to ignore warnings (#1131) 2023-01-13 12:19:42 +01:00
Vadim Stepanov
33af256aec
lint 2023-01-12 18:37:14 +00:00
Ildar Iskhakov
bf11857d1d
Update README.md 2023-01-12 22:32:53 +08:00
Ed Welch
6231eff0c0
Remove helm chart signing (#1126)
# What this PR does

Please See https://github.com/grafana/helm-charts/pull/2107

## Which issue(s) this PR fixes

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
2023-01-12 19:02:44 +08:00
Innokentii Konstantinov
1b0ad667d2 Update changelog.md 2023-01-12 17:49:56 +08:00
Innokentii Konstantinov
9a3b53ff34
Delete slack_connector on org soft-delete (#1127) 2023-01-12 17:37:05 +08:00
Tom Mitchell
ccbe8259c9
correct values file stub for slack commandName (#1093)
# What this PR does

The templates actually generate the SLACK_SLASH_COMMAND_NAME envvar from
`.Values.oncall.slack.commandName`, not `command`. This commit changes
the default values file to reflect this.

## Which issue(s) this PR fixes

#1092 

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated

^ Are these applicable with regards to updating the helm chart, not the
core application? I did take the time to test both the default and
changed value after this change in a kubernetes deployment.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-01-12 08:03:33 +01:00
Rares Mardare
ed7e8ac55e
Fix typo in slack connect (#1120)
# What this PR does

Typo fix in slack connect on user's profile

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-01-11 13:05:49 +01:00
Joey Orlando
babacf4da8
refactor the is_rbac_permissions_enabled check to be more robust (#1099)
# What this PR does
Checks the `is_rbac_permissions_enabled` flag differently based on
whether we are dealing with an open-source, or cloud installation:
- for open-source installations, simply continue making a `HEAD` request
to the list RBAC permissions Grafana API endpoint.
- for cloud installations, use the `config` object returned from `GET
/instances/{instance_id}?config=true` and check whether
`instance_info["config"]["feature_toggles"]["accessControlOnCall"] ==
"true"`

## Which issue(s) this PR fixes
Resolves the issue in hosted grafana where when a stack is inactive, the
hosted grafana gateway, returns 200 to the `HEAD` request (which
erroneously sets the `is_rbac_permissions_enabled` flag to `true`)

## Checklist

- [x] Tests updated (N/A)
- [ ] Documentation added
- [x] `CHANGELOG.md` updated
2023-01-11 12:48:30 +01:00
Vadim Stepanov
231c0f45a3
Re-implement FCM relay after introducing firebase (#1121)
This PR changes how `FCMRelayView` handles push notifications from OSS
instances, also changing how the mobile app backend sends push
notifications.
2023-01-11 11:42:01 +00:00
Ieva
2dcb25721e
update role description (#1113)
# What this PR does

Updates OnCall RBAC role description, as `Editor` role seems to include
permissions to create schedules.

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-01-11 12:36:46 +01:00
Rares Mardare
2ac4d88e88
v1.1.15 CHANGELOG (#1116)
# What this PR does

`v1.1.15`
2023-01-10 10:37:52 +02:00
Innokentii Konstantinov
fa6906a606
Simplify and speed up slack rendering (#1105)
Simplify and speed up slack rendering.
2023-01-10 15:41:38 +08:00
Rares Mardare
86436f9f15
Faro - Point to 3 separate apps instead of just 1 for all environments (#1110)
# What this PR does

- App will now send traces to either of the Faro configured apps:
`grafana-oncall-dev`, `grafana-oncall-ops` or `grafana-oncall-prod`
instead of just `grafana-oncall` for all of 3.
- Added tests to reflect latest changes
2023-01-10 09:14:04 +02:00
Michael Derynck
78bbfe0c4c
Update tokens used by GH Actions (#1102)
Separate tokens for GH actions with minimal scope
2023-01-09 10:14:07 -07:00
Matias Bordese
abbb5a8381
Update schedules query not to defer ical fields used for on-call check (#1114)
Do not defer cached ical fields which are later needed for calculating
on-call users listed in the schedules list page.
2023-01-09 14:10:23 -03:00
Matias Bordese
87fad5eec1
Add select_related to fetch schedules user group information (#1109) 2023-01-09 13:15:27 -03:00
Rares Mardare
db2e4f4018
Update prettier@2.8.2 (#1112)
# What this PR does

Updated prettier to `2.8.2` to fix linter issue on CI
2023-01-09 17:50:55 +02:00
Jack Baldry
b3d81646e6
Update publishing workflows to use PATs with fine-grained access control (#1100)
Secrets have already been created by @mderynck 

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-01-09 09:58:08 +00:00
Rares Mardare
d8dcb673da
Move alerts inside PageNav (#1040)
# What this PR does

Fix for #904 - TopNav: Move Alerts inside PluginPage
Fix for #908 - Horizontal menu scrolling fix for tabs

There's also a few styling tweaks to be more in match with Grafana core
styles.
2023-01-06 15:36:17 +02:00
Vadim Stepanov
a1e4f72280
remove send_link_to_channel_message_or_fallback_to_full_incident 2023-01-06 11:34:11 +00:00
Joey Orlando
923bee1f8f
update changelog (#1091) 2023-01-05 17:58:40 +01:00
Salvatore Giordano
a3dbe95d5a
fix: update android notification payload (#1090) 2023-01-05 17:36:07 +01:00
Matias Bordese
7d9e844068
Restore schedule export option for all types (#1088)
Fixes #1036
2023-01-05 12:42:27 -03:00
Joey Orlando
802e3964e9
update mobile app push notification text + make telegram alert verbage consistent ("Firing" instead of "Alerting") (#1089) 2023-01-05 16:16:43 +01:00
Joey Orlando
eafdaf5176
Merge pull request #1087 from grafana/revert-1086-jorlando/branch-merge-test
Revert "testing branch merge strategy"
2023-01-05 12:47:18 +01:00
Joey Orlando
12751fa510
Revert "testing branch merge strategy" 2023-01-05 12:46:55 +01:00
Joey Orlando
5d82432b78
Merge pull request #1086 from grafana/jorlando/branch-merge-test
testing branch merge strategy
2023-01-05 12:46:48 +01:00
Joey Orlando
58a9d2ac52
testing 2023-01-05 12:45:08 +01:00
Innokentii Konstantinov
bf9e5c0ad7 Update Changelog 2023-01-05 13:39:23 +08:00
Innokentii Konstantinov
8abbcee050
Org soft-delete (#1073)
# What this PR does
It introduces soft-delete of organization, since grafana stacks are
soft-deleted too. Also, we had a problem with deleting orgs with large
amounts of alerts, so soft-deletion will fix this problem. I think, that
problem of cleaning alerts of deleted orgs should be solved as a part of
alert retention
2023-01-05 12:42:55 +08:00
Vadim Stepanov
0d4701bd81
Change wording from "incident" to "alert group" in the Telegram app (#1052)
# What this PR does
Makes Telegram integration consistent with the rest of the system so it
uses the word "alert group" instead of "incident" when referring to
alert groups.

## Checklist

- [x] Tests updated
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
2023-01-04 17:44:01 +00:00
Vadim Stepanov
9503a77579
Fix "existing schedule will be deleted" message for PD migrator (#1076)
Resolves https://github.com/grafana/oncall/issues/1066
2023-01-04 17:36:15 +00:00
Vadim Stepanov
7a1f176cb5
Schedule score backend (#338)
This PR adds an endpoint returning a schedule quality score, overloaded
users and comments on the existing issues (e.g. balance issues or gaps).

## Limitations
- Since working hours editor is not implemented yet, there are only two
scores taken into account: balance score and a score representing the
ratio of time when someone is on-call to the whole time period.
- Time period is now set to be constant (90 days from today), so **in
some cases the results will be inaccurate** (when rotations don't align
with the time period)
- It only takes primary rotations into account (overrides are ignored)

## Usage
`GET /api/internal/v1/schedules/<pk>/quality?date=<TOMORROW_DATE>`

Note that `date` should be tomorrow date, because we can only be sure
about changing tomorrow's shifts (some of the shifts for current day
could be "deleted" but still show up in the UI).

## Example response
```json
{
  "total_score": 90,
  "comments": ["Schedule has no gaps", "Schedule is well-balanced, but still can be improved"],
  "overloaded_users": ["USSZ5WRH2CUA9", "U74XJZSSQGBIH"]
}
```

Issue: #118
2023-01-04 16:49:58 +00:00
Ildar Iskhakov
34ba3e7574
Merge pull request #1075 from grafana/iskhakov/remove-local-uwsgi-tracing
Remove local uwsgi instrumentation and local development tempo and agent
2023-01-04 22:47:26 +08:00
Ildar Iskhakov
15256bc4cf Remove local uwsgi instrumentation and local development tempo and agent 2023-01-04 22:25:17 +08:00
Ildar Iskhakov
8e61d0fde0
Merge pull request #1074 from grafana/iskhakov/fix-local-env
Add uwsgidecorators to requirements.txt
2023-01-04 20:47:34 +08:00
Ildar Iskhakov
dd6e716ea4 Add uwsgidecorators to requirements.txt 2023-01-04 20:46:52 +08:00
dependabot[bot]
0d7924ea05
Bump json5 from 1.0.1 to 1.0.2 in /grafana-plugin (#1071) 2023-01-04 09:35:37 +01:00
Ildar Iskhakov
6406381a14
Merge pull request #1019 from grafana/iskhakov/add-tracing
Add tracing support
2023-01-04 11:15:34 +08:00
Ildar Iskhakov
846497ddc7 Move env vars to docker-compose-dev.yml and clean up 2023-01-04 10:49:42 +08:00
Ildar Iskhakov
2b0e4e1d14 Merge branch 'dev' into iskhakov/add-tracing 2023-01-04 10:46:49 +08:00
Ildar Iskhakov
01f3e19e02
Update CHANGELOG.md 2023-01-04 10:11:33 +08:00
Ildar Iskhakov
0e54a9f253
Update CHANGELOG.md 2023-01-04 10:02:29 +08:00
Ildar Iskhakov
89144692d3
Update CHANGELOG.md 2023-01-04 09:09:51 +08:00
Ildar Iskhakov
47687ff88b
Merge pull request #1013 from grafana/rares/grafana-faro
Grafana Faro integration
2023-01-04 08:58:50 +08:00
Ildar Iskhakov
3583c5ea49
Update faro.ts 2023-01-04 08:57:22 +08:00