Matias Bordese
2a3fc397db
Clear users cache before schedule tests logic/asserts
2022-10-03 15:00:23 -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
Rares Mardare
ea54d21b76
Merge branch 'dev' into 472-wrong-team
2022-09-26 13:34:46 +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
c92faf23c6
Add tests for wrong team for user
2022-09-16 11:53:47 +03:00
Julia
7d5636291a
Wrong team error for integrations and escalation chains pages
2022-09-12 17:30:45 +03:00
Julia
e4ae10c678
Wrong team error for schedules and custom buttons, add flag to get object from the whole organization
2022-09-12 17:26:23 +03:00
Innokentii Konstantinov
3e8c7a24c8
Add hiding personal phone numbers ( #411 )
...
* Add hiding personal phone numbers
* Fix tests
* phone number toggler
* fixed issue where id was not set
* some improvement changes
* show toggle just for validated phone numbers
* ux changes + refactored PhoneVerification
* minor changes
* linter
* hide banner
* ux changes for phone verification
* make it full width
* linter
* show action only if phone is verified
* linter
* revert isCodeSent once phone is forgotten
* fix UserHiddenFieldsSerializer
* await for loadUser
* missing WithPermissions wrapper
Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
Co-authored-by: Rares Mardare <40542072+teodosii@users.noreply.github.com>
2022-09-09 12:42:40 +05: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
2d13f9116b
Update shift preview to return events for (all) affected shifts
2022-09-08 09:33:51 -03:00
Matias Bordese
a4c036d5aa
Update preview rotation start logic to match update logic
2022-09-07 15:37:03 -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
02326d81fa
Merge pull request #485 from grafana/matiasb/schedules-related-escalation-chains
...
Add related escalation chains details to schedule API
2022-09-07 11:17:05 -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
b48aadc01c
Merge pull request #473 from grafana/matiasb/fix-update-channel-filter-api-multiple-backends
...
Fix channel filter updates when there are multiple backends
2022-09-06 17:14:07 -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
b41fec5439
Add related escalation chains details to schedule API
2022-09-05 15:00:14 -03:00
Matias Bordese
b5a892a9c2
Merge pull request #381 from grafana/matiasb/fix-final-schedule-event-splitting
...
Fixes for final event calculation when splitting/combining events
2022-09-05 10:10:11 -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
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
c9ea6e4728
Add web_schedules feature flag
2022-09-02 15:37:33 -03:00
Matias Bordese
ecbc3ea778
Fix channel filter updates when there are multiple backends
2022-09-02 14:26:47 -03:00
Matias Bordese
a8124b6afe
Add unlink slack account option to profile
2022-08-29 14:41:26 -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
771ad617ff
Fix schedule test, sort users before compare
2022-08-23 17:11:04 -03:00
Julia
32daaf74ce
Fix tests
2022-08-18 18:27:34 +03:00
Vadim Stepanov
ed98178b53
Wrong team error for alert groups page ( #337 )
...
* WIP
* WIP added stub for getAlert endpoint
* add TeamFilteringMixin
* handle 403 wrong_team for alert group page
* use TeamFilteringMixin only for alert groups
* return original_get_object for schedules and webhooks
* lint
* fix texts
* add support for None in 403 response, add comments
* handle NotFound in retreive
* remove comments
* use HTTP_403_FORBIDDEN
Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2022-08-17 10:46:53 +03:00
Matias Bordese
4477c56b25
Add shift preview endpoint for web schedule
2022-08-16 10:50:16 -03:00
Matias Bordese
96e2fd6926
Merge pull request #320 from grafana/matiasb-combine-same-shift-events
...
Update schedule filter_events to combine overlapping same-shift events
2022-08-16 10:44:57 -03:00
Matias Bordese
1a1c8efa96
Update schedule filter_events to combine overlapping same-shift events
2022-08-09 11:01:07 -03:00
Julia
3b2d20edcd
Add tests for on-call shift, fix schedules tests
2022-08-03 14:38:48 +03:00
Matias Bordese
8fa547ee11
Merge pull request #295 from grafana/matiasb-schedule-next-shifts-per-user
...
Add schedule next shifts per user endpoint to internal API
2022-07-29 16:29:23 -03:00
Yulya Artyukhina
fdd369c16b
Merge pull request #288 from grafana/julia-web-schedule-backend-3
...
Create new oncall shift on update for started shifts
2022-07-28 17:30:35 +03:00
Vadim Stepanov
a1b1b83fd1
Optimize alert group list view ( #299 )
...
* Revert "Revert "Alert list view & caching rework (#216 )""
This reverts commit 730dccc3
* Revert "fix AlertGroupClassicMarkdownRenderer"
This reverts commit 82e53d8e0c513feb8aaef332fc1d3800e90538fc.
* optimize alert group list view
* optimize alert group list view
2022-07-27 14:14:59 +03:00
Julia
26d3ac6a48
fix serializer, add tests for shifts internal api endpoint
2022-07-27 13:40:07 +03:00
Matias Bordese
e6274dc992
Add schedule next shifts per user endpoint to internal API
2022-07-26 15:28:52 -03:00
Matias Bordese
cf6a43c71e
Override shifts use rolling_users
2022-07-22 11:54:53 -03:00
Matias Bordese
4649f1faaa
Update schedule tests for missing shift rotation_start
2022-07-22 09:29:34 -03:00
Matias Bordese
fdba32a15f
Update schedule filter_events to resolve final schedule shifts
2022-07-22 09:13:52 -03:00
Yulya Artyukhina
6b456f9820
Merge pull request #220 from grafana/julia-web-schedule-backend-2
...
Internal api endpoint for oncall shifts
2022-07-22 11:52:22 +03:00
Vadim Stepanov
0985cb4cb5
Rollback alert group list rework ( #269 )
...
* Revert "Alert list view & caching rework (#216 )"
This reverts commit 16bbfbbe
* fix AlertGroupClassicMarkdownRenderer
2022-07-21 15:23:02 +01:00
Julia
24cfd3686a
fix tests
2022-07-18 13:29:01 +03:00
Julia
a4c481a1ff
Add rotation_start field to shifts public api endpoint, fix tests
2022-07-18 12:59:50 +03:00
Vadim Stepanov
16bbfbbe73
Alert list view & caching rework ( #216 )
...
* remove cache usage in AlertGroupView
* remove CustomSearchFilter
* remove caching for alerts
* remove readonly db setup
* render templates on alert creation
* serialize only necessary fields on alert groups list
* optimize AlertGroupListSerializer
* return on-demand templating for alerts
* return on-demand templating for alert groups
* use CursorPaginator
* remove templating on alert create
* pass alert to AlertGroupWebRenderer
* alert_count -> alerts_count
* make sql joins after pagination
* add migration
* bring alert.save() back
* fix tests
* fix tests
* fix tests
* add perpage query param
* add cursor pagination to incidents page
* remove cached_render_for_web usage
* post merge fix
* keep cursor
* lint
* remove get_alert_groups_and_days_for_previous_same_period
* fix pagination on navigate
* refine search_fields on AlertGroupView
Co-authored-by: Maxim <hello.makson@gmail.com>
Co-authored-by: Maxim <maxim.mordasov@grafana.com>
2022-07-14 15:19:25 +01:00
Michael Derynck
9ce53b8215
Fix tests
2022-07-12 11:47:37 -06:00