Skip to content

Commit

Permalink
GENERATED - update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
saponifi3d committed Sep 18, 2024
1 parent 156025a commit 3489a07
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 14 deletions.
13 changes: 8 additions & 5 deletions src/sentry/testutils/helpers/backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,15 @@ def create_exhaustive_organization(

self.create_data_source_detector(data_source, detector)
self.create_workflow_action(workflow=workflow)
condition = self.create_data_condition(
condition="test", condition_result="True", threshold=0.5, type="gte"
)

condition_group = self.create_data_condition_group(detector=detector)
condition_group.conditions.add(condition.id)

self.create_data_condition(
condition="test",
condition_result="True",
threshold=0.5,
type="gte",
group=condition_group,
)

return org

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2024-09-12T18:50:41.219403+00:00'
created: '2024-09-18T20:37:09.993146+00:00'
creator: sentry
source: tests/sentry/backup/test_sanitize.py
---
Expand Down Expand Up @@ -229,18 +229,22 @@ source: tests/sentry/backup/test_sanitize.py
- date_added
- date_updated
- name
- model_name: workflow_engine.workflow
ordinal: 2
- model_name: workflow_engine.workflowaction
ordinal: 1
sanitized_fields:
- date_added
- date_updated
- name
- model_name: workflow_engine.workflowaction
- model_name: workflow_engine.datasourcedetector
ordinal: 1
sanitized_fields:
- date_added
- date_updated
- model_name: workflow_engine.datasourcedetector
- model_name: workflow_engine.dataconditiongroup
ordinal: 1
sanitized_fields:
- date_added
- date_updated
- model_name: workflow_engine.datacondition
ordinal: 1
sanitized_fields:
- date_added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2024-09-17T12:19:51.014511+00:00'
created: '2024-09-18T20:38:06.406783+00:00'
creator: sentry
source: tests/sentry/backup/test_comparators.py
---
Expand Down Expand Up @@ -1608,6 +1608,25 @@ source: tests/sentry/backup/test_comparators.py
- class: ForeignKeyComparator
fields: []
model_name: uptime.uptimesubscription
- comparators:
- class: DateUpdatedComparator
fields:
- date_added
- date_updated
- class: ForeignKeyComparator
fields:
- group
model_name: workflow_engine.datacondition
- comparators:
- class: DateUpdatedComparator
fields:
- date_added
- date_updated
- class: ForeignKeyComparator
fields:
- detector
- workflow_action
model_name: workflow_engine.dataconditiongroup
- comparators:
- class: DateUpdatedComparator
fields:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2024-09-12T18:48:46.224648+00:00'
created: '2024-09-18T20:36:10.480111+00:00'
creator: sentry
source: tests/sentry/tasks/test_relocation.py
---
Expand Down Expand Up @@ -96,7 +96,7 @@ steps:
- -U
- postgres
- -c
- TRUNCATE sentry_controloption,sentry_integration,sentry_option,sentry_organization,sentry_organizationintegration,sentry_organizationoptions,sentry_projecttemplate,sentry_projecttemplateoption,sentry_relay,sentry_relayusage,sentry_repository,sentry_team,auth_user,sentry_userip,sentry_userpermission,sentry_userrole,sentry_userrole_users,workflow_engine_datasource,workflow_engine_detector,workflow_engine_workflow,workflow_engine_workflowaction,workflow_engine_datasourcedetector,sentry_savedsearch,sentry_recentsearch,sentry_project,sentry_orgauthtoken,sentry_organizationmember,sentry_organizationaccessrequest,sentry_monitor,sentry_groupsearchview,sentry_environment,sentry_email,sentry_datasecrecywaiver,sentry_dashboardtombstone,sentry_dashboard,sentry_customdynamicsamplingrule,sentry_projectcounter,sentry_authprovider,sentry_authidentity,auth_authenticator,sentry_apikey,sentry_apiapplication,sentry_useroption,sentry_useremail,sentry_snubaquery,sentry_sentryapp,sentry_rule,sentry_querysubscription,sentry_projectteam,sentry_projectredirect,sentry_projectownership,sentry_projectoptions,sentry_projectkey,sentry_projectintegration,sentry_projectbookmark,sentry_organizationmember_teams,sentry_notificationaction,sentry_neglectedrule,sentry_environmentproject,sentry_dashboardwidget,sentry_customdynamicsamplingruleproject,sentry_apitoken,sentry_apigrant,sentry_apiauthorization,sentry_alertrule,sentry_snubaqueryeventtype,sentry_sentryappinstallation,sentry_sentryappcomponent,sentry_rulesnooze,sentry_ruleactivity,sentry_notificationactionproject,sentry_dashboardwidgetquery,sentry_alertruletrigger,sentry_alertruleprojects,sentry_alertruleexcludedprojects,sentry_alertruleactivity,sentry_alertruleactivationcondition,sentry_servicehook,sentry_incident,sentry_dashboardwidgetqueryondemand,sentry_alertruletriggerexclusion,sentry_alertruletriggeraction,sentry_timeseriessnapshot,sentry_pendingincidentsnapshot,sentry_incidenttrigger,sentry_incidentsubscription,sentry_incidentsnapshot,sentry_incidentactivity
- TRUNCATE sentry_controloption,sentry_integration,sentry_option,sentry_organization,sentry_organizationintegration,sentry_organizationoptions,sentry_projecttemplate,sentry_projecttemplateoption,sentry_relay,sentry_relayusage,sentry_repository,sentry_team,auth_user,sentry_userip,sentry_userpermission,sentry_userrole,sentry_userrole_users,workflow_engine_datasource,workflow_engine_detector,workflow_engine_workflow,workflow_engine_workflowaction,workflow_engine_datasourcedetector,workflow_engine_dataconditiongroup,workflow_engine_datacondition,sentry_savedsearch,sentry_recentsearch,sentry_project,sentry_orgauthtoken,sentry_organizationmember,sentry_organizationaccessrequest,sentry_monitor,sentry_groupsearchview,sentry_environment,sentry_email,sentry_datasecrecywaiver,sentry_dashboardtombstone,sentry_dashboard,sentry_customdynamicsamplingrule,sentry_projectcounter,sentry_authprovider,sentry_authidentity,auth_authenticator,sentry_apikey,sentry_apiapplication,sentry_useroption,sentry_useremail,sentry_snubaquery,sentry_sentryapp,sentry_rule,sentry_querysubscription,sentry_projectteam,sentry_projectredirect,sentry_projectownership,sentry_projectoptions,sentry_projectkey,sentry_projectintegration,sentry_projectbookmark,sentry_organizationmember_teams,sentry_notificationaction,sentry_neglectedrule,sentry_environmentproject,sentry_dashboardwidget,sentry_customdynamicsamplingruleproject,sentry_apitoken,sentry_apigrant,sentry_apiauthorization,sentry_alertrule,sentry_snubaqueryeventtype,sentry_sentryappinstallation,sentry_sentryappcomponent,sentry_rulesnooze,sentry_ruleactivity,sentry_notificationactionproject,sentry_dashboardwidgetquery,sentry_alertruletrigger,sentry_alertruleprojects,sentry_alertruleexcludedprojects,sentry_alertruleactivity,sentry_alertruleactivationcondition,sentry_servicehook,sentry_incident,sentry_dashboardwidgetqueryondemand,sentry_alertruletriggerexclusion,sentry_alertruletriggeraction,sentry_timeseriessnapshot,sentry_pendingincidentsnapshot,sentry_incidenttrigger,sentry_incidentsubscription,sentry_incidentsnapshot,sentry_incidentactivity
RESTART IDENTITY CASCADE;
id: clear-database
name: gcr.io/cloud-builders/docker
Expand Down

0 comments on commit 3489a07

Please sign in to comment.