Skip to content

PM-33527 adding background job to clean up#7517

Open
prograhamming wants to merge 17 commits into
mainfrom
dirt/pm-33527/remove-orphaned-event-logs
Open

PM-33527 adding background job to clean up#7517
prograhamming wants to merge 17 commits into
mainfrom
dirt/pm-33527/remove-orphaned-event-logs

Conversation

@prograhamming

@prograhamming prograhamming commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

PM-33527

📔 Objective

In all instances when we delete a cipher/user/org and sends and event logs are deleted from the DB, make sure that artifacts are also deleted from storage. We need to delete event log files from Azure Table Storage Event data storage otherwise we have data retention issues that conflict with GDPR.

Database PR is here. DB tests will fail until it is merged in.

📸 Screenshots

@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details0a847289-6342-453f-bdb8-13b0e3234372

Great job! No new security vulnerabilities introduced in this pull request

@codecov

codecov Bot commented Apr 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.13230% with 159 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.78%. Comparing base (9295303) to head (b3ffc5b).

Files with missing lines Patch % Lines
...Repositories/OrganizationEventCleanupRepository.cs 0.00% 56 Missing ⚠️
...Repositories/OrganizationEventCleanupRepository.cs 16.66% 50 Missing ⚠️
.../Dirt/Repositories/TableStorage/EventRepository.cs 0.00% 28 Missing ⚠️
...ucture.Dapper/Dirt/Repositories/EventRepository.cs 0.00% 8 Missing ⚠️
...tityFramework/Dirt/Repositories/EventRepository.cs 0.00% 7 Missing ⚠️
src/Core/Dirt/Entities/OrganizationEventCleanup.cs 60.00% 6 Missing ⚠️
src/Admin/Jobs/JobsHostedService.cs 0.00% 2 Missing ⚠️
src/Admin/Jobs/CleanUpOrganizationEventsJob.cs 98.07% 0 Missing and 1 partial ⚠️
...ucture.Dapper/DapperServiceCollectionExtensions.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7517      +/-   ##
==========================================
- Coverage   59.84%   59.78%   -0.06%     
==========================================
  Files        2120     2126       +6     
  Lines       93168    93424     +256     
  Branches     8264     8277      +13     
==========================================
+ Hits        55752    55853     +101     
- Misses      35441    35595     +154     
- Partials     1975     1976       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@prograhamming prograhamming marked this pull request as ready for review May 21, 2026 02:50
@prograhamming prograhamming requested review from a team as code owners May 21, 2026 02:50
@prograhamming prograhamming marked this pull request as draft May 21, 2026 02:52
@prograhamming prograhamming marked this pull request as ready for review May 21, 2026 02:53
@sven-bitwarden

sven-bitwarden commented May 21, 2026

Copy link
Copy Markdown
Contributor

Code looks good, waiting to approve 'till red becomes more green and it forces me to re-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants