-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(workflow_engine): Add DELETE Workflow Endpoint #86246
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
Conversation
…ed and test permissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not totally related to this PR, but should we update the permissions for this endpoint? i think currently the base OrganizationEndpoint
permissions apply
sentry/src/sentry/api/bases/organization.py
Lines 46 to 52 in 882a128
class OrganizationPermission(DemoSafePermission): | |
scope_map = { | |
"GET": ["org:read", "org:write", "org:admin"], | |
"POST": ["org:write", "org:admin"], | |
"PUT": ["org:write", "org:admin"], | |
"DELETE": ["org:admin"], | |
} |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #86246 +/- ##
========================================
Coverage 87.88% 87.88%
========================================
Files 9712 9714 +2
Lines 550704 550948 +244
Branches 21446 21446
========================================
+ Hits 483983 484222 +239
- Misses 66341 66346 +5
Partials 380 380 |
@@ -589,23 +589,23 @@ | |||
default_manager.add( | |||
AuditLogEvent( | |||
event_id=213, | |||
name="WORFKLOW_ADD", | |||
name="WORKFLOW_ADD", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol did I do this??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahah - yeah -- i was shocked!
@cathteng agree about your callout and thanks for the shout, i'm kinda punting on permissions for a hot sec to get the API out for UI development. once i'm done with the basic APIs, i'm going to go back and add filtering / permissions and make sure everything is creating an audit entry too. |
* master: (50 commits) fix(laravel-insights): fix seconds vs milliseconds in jobs widget (#86273) feat(assemble): Implement new query for finding missing chunk (#85614) fix(issue-views): Fix buggy dragging (#86264) feat(workflow_engine): Add DELETE Workflow Endpoint (#86246) feat(crons): Improve wording for project field in validator (#86158) ref(ui): Remove unused images (#86249) feat(compare queries): tightened padding, added tooltips, and fixed panel heights (#86227) fix(billing): update billing details tab (#86152) fix(nav): Show same nav items when user is in org or user settings. (#86161) feat(ourlogs): Add alpha js sdk for adding logging (#86239) chore(dashboards): Remove chart from Releases drawer (#86237) ref(flags): fix audit log table badge style (#86224) fix(replay): Remove extra border & padding from replay snippets (#86223) ref(insights): remove performance-landing-page-stats-period flag (#86200) fix(insights): Filter span samples by environment (#86198) ref(insights): Replace usage of `<ReleaseSeries>` in `<InsightsTimeSeriesWidget>` (#86129) feat(explore): Hide Confidence footer with 100% sample rate (#86206) ref(dashboards): Move unit scaling into `Plottable` (#86116) tests(derived_code_mappings): Do not create object in parametrization section (#86188) chore: update gsApp CODEOWNERS (#86222) ...
Description
PR to add support for
DELETE
method on workflows. This will schedule the deletion and use the safe workflow delete to ensure all subsequent models are also cleaned up.