Skip to content

Commit

Permalink
Update automated snapshots etc
Browse files Browse the repository at this point in the history
  • Loading branch information
saponifi3d committed Sep 16, 2024
1 parent ae1f0a1 commit 448c9aa
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
23 changes: 23 additions & 0 deletions fixtures/backup/model_dependencies/detailed.json
Original file line number Diff line number Diff line change
Expand Up @@ -6200,6 +6200,29 @@
]
]
},
"workflow_engine.datacondition": {
"dangling": false,
"foreign_keys": {
"detector": {
"kind": "DefaultForeignKey",
"model": "workflow_engine.detector",
"nullable": false
},
"workflow_action": {
"kind": "DefaultForeignKey",
"model": "workflow_engine.workflowaction",
"nullable": false
}
},
"model": "workflow_engine.datacondition",
"relocation_dependencies": [],
"relocation_scope": "Organization",
"silos": [
"Region"
],
"table_name": "workflow_engine_datacondition",
"uniques": []
},
"workflow_engine.datasource": {
"dangling": false,
"foreign_keys": {
Expand Down
4 changes: 4 additions & 0 deletions fixtures/backup/model_dependencies/flat.json
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,10 @@
"uptime.uptimesubscription"
],
"uptime.uptimesubscription": [],
"workflow_engine.datacondition": [
"workflow_engine.detector",
"workflow_engine.workflowaction"
],
"workflow_engine.datasource": [
"sentry.organization"
],
Expand Down
1 change: 1 addition & 0 deletions fixtures/backup/model_dependencies/sorted.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"workflow_engine.detector",
"workflow_engine.workflow",
"workflow_engine.workflowaction",
"workflow_engine.datacondition",
"sentry.savedsearch",
"sentry.relocation",
"sentry.recentsearch",
Expand Down
1 change: 1 addition & 0 deletions fixtures/backup/model_dependencies/truncate.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"workflow_engine_detector",
"workflow_engine_workflow",
"workflow_engine_workflowaction",
"workflow_engine_datacondition",
"sentry_savedsearch",
"sentry_relocation",
"sentry_recentsearch",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2024-09-12T02:12:45.018973+00:00'
created: '2024-09-13T23:34:31.162837+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,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_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 448c9aa

Please sign in to comment.