Commit graph

242 commits

Author SHA1 Message Date
Matias Bordese
2a3fc397db Clear users cache before schedule tests logic/asserts 2022-10-03 15:00:23 -03:00
Matias Bordese
f7c7803807 Fix related_users for no-shifts schedule 2022-10-03 14:27:22 -03:00
Matias Bordese
f8314ef9c2
Fix timing issue with schedule tests reusing cached users (#592)
Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
2022-10-03 11:37:59 +01:00
Vadim Stepanov
5e272f8565
Fix failing tests due to bug in month calculations (#599) 2022-10-03 11:22:02 +01:00
Matias Bordese
1392994d26
Merge pull request #526 from grafana/matiasb/fix-all-day-filter-events
Fix support for all_day events in schedule filter_events
2022-09-21 08:58:06 -03:00
Maxim Mordasov
9330b89101
Schedules alpha fixes (#541)
* schedule alpha major fixes

* Fix shift update for web schedules

* Fix priority level regex, fix getting shifts without duration

* Fix shift update for web schedules

* Fix tests for shift update

* Fix priority level test

* schedule alpha fixes

* add final schedule click handler

* fix date time picker

* fix utc timzeonr time picker

* fix utc time data

* dont use user timezone on start

Co-authored-by: Julia <ferril.darkdiver@gmail.com>
2022-09-21 11:19:59 +01:00
Julia
996e6076ab Remove unnecessary variable 2022-09-20 16:42:58 +03:00
Julia
9b9470b358 Fix shift update for web schedules 2022-09-20 13:33:33 +03:00
Julia
d9609dbcc2 Fix priority level regex, fix getting shifts without duration 2022-09-20 13:20:28 +03:00
Julia
b1ea2b062f Fix shift update for web schedules 2022-09-20 13:19:12 +03:00
Vadim Stepanov
77984b77ab
Fix empty byday in ICAL rrule (#535) 2022-09-16 12:36:50 +01:00
Matias Bordese
284fcfe74d Refactoring, adding tests 2022-09-13 10:30:34 -03:00
Matias Bordese
4ec1727ecf Fix support for all_day events in schedule filter_events 2022-09-12 17:25:46 -03:00
Julia
67eb0b423d Merge branch 'dev' into on-call-shifts-rotation-index
# Conflicts:
#	engine/apps/schedules/models/on_call_schedule.py
2022-09-08 16:43:35 +03:00
Matias Bordese
62ace52ff0
Merge pull request #507 from grafana/matiasb/fix-preview-rotation-start
Update preview rotation start logic to match update logic
2022-09-08 10:32:31 -03:00
Matias Bordese
2d13f9116b Update shift preview to return events for (all) affected shifts 2022-09-08 09:33:51 -03:00
Innokentii Konstantinov
d8365db8f5
is_icals_equal fixes (#510)
* is_icals_equal fixes

* treat None SEQUENCE as equal
2022-09-08 16:11:03 +05:00
Julia
f24aacfddc Fix rotation index calculation 2022-09-08 12:51:39 +03:00
Yulya Artyukhina
84bcbb375f
Merge pull request #477 from grafana/shift-notifications-for-web-schedule
Fix slack notification for web schedules
2022-09-08 12:03:41 +03:00
Matias Bordese
a4c036d5aa Update preview rotation start logic to match update logic 2022-09-07 15:37:03 -03:00
Julia
e029464fa2 Update calculating rotation index for updated shift, fix schedule preview with respect to rotation index 2022-09-07 19:02:24 +03:00
Julia
9f71b5d72f Merge branch 'dev' into on-call-shifts-rotation-index 2022-09-07 18:54:39 +03:00
Matias Bordese
026474b43b
Merge pull request #486 from grafana/matiasb/update-preview-shift-pk-reuse
Update web schedule shift preview PK reusing logic
2022-09-07 11:35:34 -03:00
Matias Bordese
a7c44b4c08 Update preview to keep final behavior when changing a future shift 2022-09-07 11:23:40 -03:00
Matias Bordese
0a9c9eb59a
Merge pull request #487 from grafana/matiasb/next-shifts-per-user-list-all
Update next shifts per user to list all (web) schedule users
2022-09-07 10:26:28 -03:00
Matias Bordese
1a133d33ff Add rotation ID fallback for ical events 2022-09-06 15:33:58 -03:00
Innokentii Konstantinov
66be6378f3 Style fix 2022-09-06 19:43:48 +05:00
Innokentii Konstantinov
4e8727d1a1
New ical comparision func (#480)
* New ical comparision func

* Add support for field `sequence` for custom on-call shifts

* Fix ical comparison

* New ical comparision func 2

* fix

* Revert "Add support for field `sequence` for custom on-call shifts"

This reverts commit b7b18d5a

Co-authored-by: Julia <ferril.darkdiver@gmail.com>
2022-09-06 19:12:10 +05:00
Julia
5c0d0ace3e Remove user group rotation reordering 2022-09-06 12:59:38 +03:00
Matias Bordese
d74f4cc2be Update next shifts per user to list all (web) schedule users 2022-09-05 17:23:35 -03:00
Matias Bordese
c413c54329 Update web schedule shift preview PK reusing logic 2022-09-05 15:50:58 -03:00
Matias Bordese
8ff2f41550 Add comment about possible missing rrule in get_rotation_date 2022-09-05 09:48:02 -03:00
Julia
a444fe260c Add tests for rotation index 2022-09-05 13:37:52 +03:00
Julia
607330a79c Fix shifts and gaps notifications for web schedules with respect to rotation start and until 2022-09-05 11:10:47 +03:00
Matias Bordese
7fd0e5ecf7 Skip empty events in final schedule 2022-09-02 16:45:35 -03:00
Matias Bordese
37eefe8e08 Allow empty users when previewing a web schedule shift 2022-09-02 16:45:35 -03:00
Matias Bordese
2a058b4acc Fix issue post-refactoring 2022-09-02 16:45:35 -03:00
Matias Bordese
84dd4eebf5 Update shift preview to reuse shift PK when previewing update 2022-09-02 16:45:35 -03:00
Matias Bordese
c84f53c2b7 Handle shift previews for rotation updates 2022-09-02 16:45:35 -03:00
Matias Bordese
11175e27e5 Combine same-shift schedule events early 2022-09-02 16:45:35 -03:00
Matias Bordese
bfe0ab2d1e Fix higher priority overlapping multiple same-start events 2022-09-02 16:45:35 -03:00
Matias Bordese
5d9ce99631 Refactoring schedules _resolve_schedule method 2022-09-02 16:45:35 -03:00
Matias Bordese
d771caa999 Fix for final event calculation when splitting events 2022-09-02 16:45:35 -03:00
Julia
7d869f7ff9 Merge branch 'dev' into on-call-shifts-update-logic 2022-09-02 17:19:53 +03:00
Yulya Artyukhina
4ada990ba4
Merge pull request #432 from grafana/fix-getting-rotation-start-date
Fix events start date calculation
2022-09-02 17:13:38 +03:00
Innokentii Konstantinov
f6f29b061e Add logging 2022-09-01 16:02:53 +05:00
Julia
36ce64b57a Revert changes in events start date calculation, fix bug with getting wrong events start date 2022-08-30 16:43:36 +03:00
Matias Bordese
363e90c861 Fix custom on call shift test 2022-08-29 14:33:19 -03:00
Innokentii Konstantinov
4765c9b07c
Insight logs (#348)
* Entity events insight logs

* Insight logging

* Fix event for updating templates

* Format fixes

* Remove organization_log_type.py

* Simplify signature of chatops_insight_log

* insight logs formatting

* Add possibility to enable all insight logging via DynamicSetting

* Fixes

* Style fixes

* Add migration

* Fix migration
2022-08-24 12:04:44 +05:00
Matias Bordese
619b09bc6e Revisit recurring events start date respect to rotation start 2022-08-23 12:06:14 -03:00