-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5106 from grafana/dev
v1.9.31
- Loading branch information
Showing
41 changed files
with
394 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ venv | |
.idea | ||
.DS_Store | ||
.env | ||
|
||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1206,7 +1206,7 @@ def test_schedule_related_users(make_organization, make_user_for_organization, m | |
now = timezone.now().replace(hour=0, minute=0, second=0, microsecond=0) | ||
start_date = now - timezone.timedelta(days=7) | ||
|
||
user_a, _, _, user_d, user_e = (make_user_for_organization(organization, username=i) for i in "ABCDE") | ||
user_a, user_b, _, user_d, user_e = (make_user_for_organization(organization, username=i) for i in "ABCDE") | ||
|
||
shifts = ( | ||
# user, priority, start time (h), duration (hs) | ||
|
@@ -1239,7 +1239,20 @@ def test_schedule_related_users(make_organization, make_user_for_organization, m | |
) | ||
override.add_rolling_users([[user_e]]) | ||
|
||
# override: 22-23, a month ago / B (won't be considered a related user) | ||
override_data = { | ||
"start": start_date - timezone.timedelta(hours=22, days=30), | ||
"rotation_start": start_date - timezone.timedelta(hours=22, days=30), | ||
"duration": timezone.timedelta(hours=1), | ||
"schedule": schedule, | ||
} | ||
override = make_on_call_shift( | ||
organization=organization, shift_type=CustomOnCallShift.TYPE_OVERRIDE, **override_data | ||
) | ||
override.add_rolling_users([[user_b]]) | ||
|
||
schedule.refresh_ical_file() | ||
schedule.refresh_ical_final_schedule() | ||
schedule.refresh_from_db() | ||
|
||
users = schedule.related_users() | ||
|
@@ -1282,6 +1295,7 @@ def test_schedule_related_users_usernames( | |
on_call_shift.add_rolling_users([[user]]) | ||
|
||
schedule.refresh_ical_file() | ||
schedule.refresh_ical_final_schedule() | ||
schedule.refresh_from_db() | ||
|
||
assert set(schedule.related_users()) == set(users) | ||
|
@@ -1304,7 +1318,7 @@ def test_schedule_related_users_emails(make_organization, make_user_for_organiza | |
DTSTAMP:20230127T151619Z | ||
UID:something | ||
SUMMARY:[email protected] | ||
RRULE:FREQ=WEEKLY;UNTIL=20221231T010101 | ||
RRULE:FREQ=WEEKLY | ||
DTSTART;TZID=Europe/Madrid:20220309T130000 | ||
DTEND;TZID=Europe/Madrid:20220309T133000 | ||
SEQUENCE:4 | ||
|
@@ -1317,6 +1331,8 @@ def test_schedule_related_users_emails(make_organization, make_user_for_organiza | |
schedule_class=OnCallScheduleICal, | ||
cached_ical_file_primary=cached_ical_primary_schedule, | ||
) | ||
schedule.refresh_ical_final_schedule() | ||
schedule.refresh_from_db() | ||
|
||
assert set(schedule.related_users()) == {user} | ||
|
||
|
@@ -1604,6 +1620,7 @@ def test_user_related_schedules( | |
) | ||
on_call_shift.add_rolling_users([[user]]) | ||
schedule1.refresh_ical_file() | ||
schedule1.refresh_ical_final_schedule() | ||
|
||
schedule2 = make_schedule(organization, schedule_class=OnCallScheduleWeb) | ||
override_data = { | ||
|
@@ -1617,10 +1634,27 @@ def test_user_related_schedules( | |
) | ||
override.add_rolling_users([[admin]]) | ||
schedule2.refresh_ical_file() | ||
schedule2.refresh_ical_final_schedule() | ||
|
||
# schedule3 | ||
make_schedule(organization, schedule_class=OnCallScheduleWeb) | ||
|
||
# schedule4 | ||
schedule4 = make_schedule(organization, schedule_class=OnCallScheduleWeb) | ||
# user was part of the schedule some time ago (outside of the final schedule window) | ||
override_data = { | ||
"start": today - timezone.timedelta(days=21), | ||
"rotation_start": today - timezone.timedelta(days=21), | ||
"duration": timezone.timedelta(hours=1), | ||
"schedule": schedule4, | ||
} | ||
override = make_on_call_shift( | ||
organization=organization, shift_type=CustomOnCallShift.TYPE_OVERRIDE, **override_data | ||
) | ||
override.add_rolling_users([[admin]]) | ||
schedule4.refresh_ical_file() | ||
schedule4.refresh_ical_final_schedule() | ||
|
||
schedules = OnCallSchedule.objects.related_to_user(admin) | ||
assert set(schedules) == {schedule1, schedule2} | ||
|
||
|
@@ -1658,6 +1692,7 @@ def test_user_related_schedules_only_username( | |
) | ||
on_call_shift.add_rolling_users([[user]]) | ||
schedule1.refresh_ical_file() | ||
schedule1.refresh_ical_final_schedule() | ||
|
||
schedule2 = make_schedule(organization, schedule_class=OnCallScheduleWeb) | ||
override_data = { | ||
|
@@ -1671,6 +1706,7 @@ def test_user_related_schedules_only_username( | |
) | ||
override.add_rolling_users([[user]]) | ||
schedule2.refresh_ical_file() | ||
schedule2.refresh_ical_final_schedule() | ||
|
||
# schedule3 | ||
schedule3 = make_schedule(organization, schedule_class=OnCallScheduleWeb) | ||
|
@@ -1685,6 +1721,7 @@ def test_user_related_schedules_only_username( | |
) | ||
override.add_rolling_users([[other_user]]) | ||
schedule3.refresh_ical_file() | ||
schedule3.refresh_ical_final_schedule() | ||
|
||
schedules = OnCallSchedule.objects.related_to_user(user) | ||
assert set(schedules) == {schedule1, schedule2} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Changelog | ||
|
||
## [1.9.27](https://github.com/grafana/irm/compare/grafana-oncall-app-v1.9.26...grafana-oncall-app-v1.9.27) (2024-09-26) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* address RBAC Admin issue ([#183](https://github.com/grafana/irm/issues/183)) ([508857b](https://github.com/grafana/irm/commit/508857b719641ce405910bb1b110dec62f1a7af5)) | ||
* Bring webhooks to IRM ([#144](https://github.com/grafana/irm/issues/144)) ([1a883e1](https://github.com/grafana/irm/commit/1a883e1e44fe154ec0a7d36fa8183444fb90c773)) | ||
* run go mod tidy ([#174](https://github.com/grafana/irm/issues/174)) ([df2cf75](https://github.com/grafana/irm/commit/df2cf75ac5d4f57661af722f4785ef4996644bbc)) | ||
* style links in incident message ([#143](https://github.com/grafana/irm/issues/143)) ([2e55b07](https://github.com/grafana/irm/commit/2e55b07c1069cebfb30ba944b1c0b6f7dbfb1bad)) | ||
|
||
|
||
### Dependencies | ||
|
||
* bump `github.com/grafana/grafana-plugin-sdk-go` to `v0.250.2` to address CVE-2024-8986 ([#173](https://github.com/grafana/irm/issues/173)) ([2385dc3](https://github.com/grafana/irm/commit/2385dc39e0108ca8ee4047046a34a735d1598ec8)) | ||
* bump micromatch version from 4.0.6 to 4.0.8 ([#181](https://github.com/grafana/irm/issues/181)) ([b1123fd](https://github.com/grafana/irm/commit/b1123fd8d54db080eb90c9959494a3bd00a89540)) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* release main ([#157](https://github.com/grafana/irm/issues/157)) ([1b2901c](https://github.com/grafana/irm/commit/1b2901c952cc8e82f94becfa44db146fc0abe076)) | ||
* release main ([#187](https://github.com/grafana/irm/issues/187)) ([3221340](https://github.com/grafana/irm/commit/3221340148ac972ed32cd16194a5eaf3cc29db3d)) | ||
* release main ([#190](https://github.com/grafana/irm/issues/190)) ([e2489d0](https://github.com/grafana/irm/commit/e2489d0a31c4ac80dc72dca57c42eb3068fa4661)) | ||
|
||
## [1.9.26](https://github.com/grafana/irm/compare/grafana-oncall-app-v1.9.25...grafana-oncall-app-v1.9.26) (2024-09-23) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* fix template editor layout ([#142](https://github.com/grafana/irm/issues/142)) ([c8ac3b0](https://github.com/grafana/irm/commit/c8ac3b0f60cb5472fb93b59255ca30bc8ba64653)) | ||
* make sure GMT elem is selected from the dropdown options is sele… ([#141](https://github.com/grafana/irm/issues/141)) ([cc86f17](https://github.com/grafana/irm/commit/cc86f1751f7378d981d6e60a20cef746f090f1df)) | ||
* rename OnCall notification titles ([#126](https://github.com/grafana/irm/issues/126)) ([7df0120](https://github.com/grafana/irm/commit/7df01208271b29640939730375d035b5d5a13f98)) | ||
* update how config page is rendered in cloud ([#137](https://github.com/grafana/irm/issues/137)) ([3cf9bc2](https://github.com/grafana/irm/commit/3cf9bc23bee92dd8dde77fe225efebaeaf38a233)) | ||
|
||
|
||
### Miscellaneous Chores | ||
|
||
* improve (again) ui pod readiness probe ([#120](https://github.com/grafana/irm/issues/120)) ([c4ee02b](https://github.com/grafana/irm/commit/c4ee02b5253a7cfaf983518c6475f6207a66e253)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.