Skip to content

ref(workflow_engine): Finish Removing the legacy fields from Action #86573

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

saponifi3d
Copy link
Contributor

@saponifi3d saponifi3d commented Mar 7, 2025

Description

Complete the removal of the fields from the action table

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 7, 2025
Copy link
Contributor

github-actions bot commented Mar 7, 2025

This PR has a migration; here is the generated SQL for src/sentry/workflow_engine/migrations/0035_action_model_drop_legacy_fields.py src/sentry/workflow_engine/migrations/0036_action_remove_legacy_fields.py ()

--
-- Remove field target_display from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_display" CASCADE;
--
-- Remove field target_identifier from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_identifier" CASCADE;
--
-- Remove field target_type from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_type" CASCADE;

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #86573      +/-   ##
==========================================
- Coverage   87.79%   87.79%   -0.01%     
==========================================
  Files        9782     9783       +1     
  Lines      554168   554175       +7     
  Branches    21730    21730              
==========================================
+ Hits       486543   486549       +6     
- Misses      67233    67234       +1     
  Partials      392      392              

@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-3 branch from f3fa5b0 to 355f5e2 Compare March 7, 2025 05:38
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-4 branch 2 times, most recently from 1b8e9a0 to 547fc81 Compare March 7, 2025 06:20
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-3 branch from 355f5e2 to 727d8ae Compare March 7, 2025 06:20
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-3 branch from 727d8ae to 42e6126 Compare March 7, 2025 07:00
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-4 branch from 547fc81 to 48dae12 Compare March 7, 2025 07:00
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-3 branch from 42e6126 to 50e9a34 Compare March 7, 2025 18:24
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-4 branch from 48dae12 to 4bffa6b Compare March 7, 2025 18:24
Base automatically changed from jcallender/aci/ref-action-model-3 to master March 10, 2025 15:50
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-4 branch from f45797c to 3f2fa6c Compare March 10, 2025 23:12
@saponifi3d saponifi3d marked this pull request as ready for review March 10, 2025 23:15
@saponifi3d saponifi3d requested a review from a team as a code owner March 10, 2025 23:15
@saponifi3d saponifi3d requested a review from a team March 10, 2025 23:15
@saponifi3d saponifi3d force-pushed the jcallender/aci/ref-action-model-4 branch from 3f2fa6c to b28bf5e Compare March 10, 2025 23:16
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/workflow_engine/migrations/0036_action_remove_legacy_fields.py ()

--
-- Remove field target_display from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_display" CASCADE;
--
-- Remove field target_identifier from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_identifier" CASCADE;
--
-- Remove field target_type from action
--
ALTER TABLE "workflow_engine_action" DROP COLUMN "target_type" CASCADE;

Copy link
Member

@ceorourke ceorourke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, double checked against the previous one. won't be offended if you want a migration reviewer's final stamp though

@saponifi3d saponifi3d merged commit 82f1278 into master Mar 12, 2025
50 checks passed
@saponifi3d saponifi3d deleted the jcallender/aci/ref-action-model-4 branch March 12, 2025 17:11
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants