Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(Escalation policies): A Hackweek project #76386

Draft
wants to merge 39 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c50c1f9
CRUDL APIs for escalation policies and rotation schedules
mikejihbe Aug 14, 2024
3aed160
CRUDL for rotation schedules and escalation policies
mikejihbe Aug 14, 2024
b1e24ba
Add schedule layer coalescing logic and tests
mikejihbe Aug 19, 2024
a4f3c51
Fix up tests
mikejihbe Aug 19, 2024
569ab55
Fix up tests
mikejihbe Aug 19, 2024
382d490
Add coalesced schedules to schedule serializers. use UTC everywhere e…
mikejihbe Aug 19, 2024
b6cf20d
Add endpoints and tests for querying escalation policy states
mikejihbe Aug 19, 2024
118458e
update datastore
mikejihbe Aug 19, 2024
a14dd5c
Seed WIP
corps Aug 20, 2024
dae20f6
Let migration be unsafe for now
corps Aug 20, 2024
cac957c
Typo fix
corps Aug 20, 2024
8d911e0
Add rotation periods to each layer serialization
mikejihbe Aug 20, 2024
69ecc4c
feat(escalation_policies): Add FE hooks for Rotation Schedule and Esc…
MichaelSun48 Aug 20, 2024
54772f2
Add page routes for schedule and escalation policies (#76408)
MichaelSun48 Aug 20, 2024
8e1b516
Add occurrence list page
mikejihbe Aug 20, 2024
f6c41af
Camelcase serialized responses
mikejihbe Aug 20, 2024
7dfc1cc
Fix data formatting issue
corps Aug 20, 2024
d3fa496
Fix team serialization in APIs
mikejihbe Aug 20, 2024
27e3bce
Add a REALLY FUGLY occurrences list that allows for updating state of…
mikejihbe Aug 20, 2024
f1b06f4
feat(escalation_policies): Add preliminary design for escalation poli…
MichaelSun48 Aug 20, 2024
6375c1a
Wire up escalation policies
mikejihbe Aug 20, 2024
5b7d709
feat(escalation_policies): Add basic, unfinished designs for schedule…
MichaelSun48 Aug 20, 2024
c55a66c
Feat(Escalation policies): Escalation event action
RyanSkonnord Aug 21, 2024
abcc3d6
hook up rotation schedule list
mikejihbe Aug 21, 2024
48b6281
Unify schedule timelines and make timeWindowConfig work properly
mikejihbe Aug 21, 2024
45a339e
Get basic schedule timeline view working
mikejihbe Aug 21, 2024
2fe434e
remove schedule name to clean up the rotation timeline
mikejihbe Aug 21, 2024
c0d7570
Add description to rotation schedules
mikejihbe Aug 21, 2024
5399bfc
Adding escalation job
corps Aug 21, 2024
a366d41
Merge branch 'hackweek/escalation_policies_alert_rule_action' into ha…
RyanSkonnord Aug 21, 2024
4bd515a
feat(escalation_policies): Various improvements to the occurrences ta…
MichaelSun48 Aug 21, 2024
4ffed7f
Fix serializer
mikejihbe Aug 21, 2024
8fd4d5b
add tooltip for schedule periods (#76477)
MichaelSun48 Aug 22, 2024
8ee4222
WIP
corps Aug 22, 2024
4c0f542
WIP
corps Aug 22, 2024
0623757
WIP
corps Aug 22, 2024
a889ecd
Add requisite copy-paste to NotifyEscalationAction
RyanSkonnord Aug 22, 2024
9e0a3a1
Works!
corps Aug 22, 2024
1743ed6
chore(escalation_policies): Minor UI Improvements across the board (#…
MichaelSun48 Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Let migration be unsafe for now
  • Loading branch information
corps committed Aug 20, 2024
commit dae20f63b85a04b6718e98d3c7ae2dffa79a63bf
2 changes: 1 addition & 1 deletion migrations_lockfile.txt
Original file line number Diff line number Diff line change
@@ -10,6 +10,6 @@ hybridcloud: 0016_add_control_cacheversion
nodestore: 0002_nodestore_no_dictfield
remote_subscriptions: 0003_drop_remote_subscription
replays: 0004_index_together
sentry: 0749_escalation_policies2
sentry: 0750_add_schedule_name_constraints
social_auth: 0002_default_auto_field
uptime: 0006_projectuptimesubscription_name_owner
1 change: 1 addition & 0 deletions src/sentry/migrations/0749_escalation_policies2.py
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ class Migration(CheckedMigration):
# Once deployed, run these manually via: https://develop.sentry.dev/database-migrations/#migration-deployment

is_post_deployment = False
checked = False

dependencies = [
("sentry", "0748_escalation_policies"),
41 changes: 41 additions & 0 deletions src/sentry/migrations/0750_add_schedule_name_constraints.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 5.0.7 on 2024-08-20 04:17

from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):
# This flag is used to mark that a migration shouldn't be automatically run in production.
# This should only be used for operations where it's safe to run the migration after your
# code has deployed. So this should not be used for most operations that alter the schema
# of a table.
# Here are some things that make sense to mark as post deployment:
# - Large data migrations. Typically we want these to be run manually so that they can be
# monitored and not block the deploy for a long period of time while they run.
# - Adding indexes to large tables. Since this can take a long time, we'd generally prefer to
# run this outside deployments so that we don't block them. Note that while adding an index
# is a schema change, it's completely safe to run the operation after the code has deployed.
# Once deployed, run these manually via: https://develop.sentry.dev/database-migrations/#migration-deployment

is_post_deployment = False

dependencies = [
("sentry", "0749_escalation_policies2"),
]

operations = [
migrations.AlterField(
model_name="rotationschedule",
name="name",
field=models.CharField(max_length=256),
),
migrations.AlterUniqueTogether(
name="escalationpolicy",
unique_together={("organization", "name")},
),
migrations.AlterUniqueTogether(
name="rotationschedule",
unique_together={("organization", "name")},
),
]
Loading