Skip to content

🔧 chore(data-secrecy v2): SafeDelete DataSecrecyWaiver #95464

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 4 commits into from
Jul 15, 2025

Conversation

iamrajjoshi
Copy link
Member

Followup to #95393

contributes to ECO-824

@iamrajjoshi iamrajjoshi self-assigned this Jul 14, 2025
@iamrajjoshi iamrajjoshi requested review from a team as code owners July 14, 2025 18:41
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 14, 2025
Comment on lines -668 to -677
DataSecrecyWaiver.objects.create(
organization=org,
access_start=timezone.now(),
access_end=timezone.now() + timedelta(days=1),
)
Copy link
Member

Choose a reason for hiding this comment

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

Any idea what this was previously used for?

Copy link
Member

Choose a reason for hiding this comment

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

It's just boilerplate stuff that you sometimes need to add when adding a new model

Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0949_safe_del_dswaiver.py

for 0949_safe_del_dswaiver in sentry

--
-- Moved model DataSecrecyWaiver to pending deletion state
--
-- (no-op)

Copy link

codecov bot commented Jul 14, 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   #95464       +/-   ##
===========================================
+ Coverage   32.95%   76.30%   +43.35%     
===========================================
  Files        8999    10548     +1549     
  Lines      503908   607954   +104046     
  Branches    23825    23825               
===========================================
+ Hits       166038   463892   +297854     
+ Misses     337574   142167   -195407     
- Partials      296     1895     +1599     

Comment on lines -668 to -677
DataSecrecyWaiver.objects.create(
organization=org,
access_start=timezone.now(),
access_end=timezone.now() + timedelta(days=1),
)
Copy link
Member

Choose a reason for hiding this comment

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

It's just boilerplate stuff that you sometimes need to add when adding a new model

Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0950_safe_del_dswaiver.py

for 0950_safe_del_dswaiver in sentry

--
-- Moved model DataSecrecyWaiver to pending deletion state
--
-- (no-op)

@iamrajjoshi iamrajjoshi merged commit a777378 into master Jul 15, 2025
64 of 65 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/ds-v2/deprecate-v1/delete-model-2 branch July 15, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants