Skip to content

fix: Archival of suspended sites (backport #6139)#6153

Closed
mergify[bot] wants to merge 7 commits intomasterfrom
mergify/bp/master/pr-6139
Closed

fix: Archival of suspended sites (backport #6139)#6153
mergify[bot] wants to merge 7 commits intomasterfrom
mergify/bp/master/pr-6139

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Apr 16, 2026

  • Add suspended_at field to Site doctype to track site suspension time
  • Add Patch to populate suspended_at field in Site doctype based on 'Suspend Site' activity record's creation
  • Set and unset suspended_at field on site suspension and activation respectively
  • Update archive_suspended_sites job
    • Filter based on the newly added suspended_at field value
    • Move out logic for notifying the user before archival into a separate job
  • Add test
    This is an automatic backport of pull request fix: Archival of suspended sites #6139 done by Mergify.

- Patch to populate `suspended_at` field in Site doctype based on 'Suspend Site' activity record's creation

(cherry picked from commit f434146)
- Filter based on newly added suspended_at field value
- Move out logic for notifying user before archival

(cherry picked from commit c8ef82f)
- Add it as a separate job
- Filter sites based on suspended_at field

(cherry picked from commit 0d351d7)
- Remove press/press/doctype/site/archive.py file which had logic for:
  - Archiving suspended trial sites
  - Deleting offsite backups of archived sites, this is already handled

(cherry picked from commit 9de3027)
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 91.17647% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.66%. Comparing base (4f778ca) to head (268a3cf).
⚠️ Report is 280 commits behind head on master.

Files with missing lines Patch % Lines
press/press/doctype/site/site.py 84.21% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6153   +/-   ##
=======================================
  Coverage   51.66%   51.66%           
=======================================
  Files         905      904    -1     
  Lines       75195    75156   -39     
  Branches      272      272           
=======================================
- Hits        38847    38828   -19     
+ Misses      36325    36305   -20     
  Partials       23       23           
Flag Coverage Δ
dashboard 73.06% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@AyshaHakeem AyshaHakeem marked this pull request as draft April 16, 2026 14:56
@AyshaHakeem
Copy link
Copy Markdown
Collaborator

already included via weekly release

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.

1 participant