Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Increase server deletion rollout thresholds

Neeraj Gupta6b1a5b12399f
diff --git a/server/pkg/controller/email/storage_warning.go b/server/pkg/controller/email/storage_warning.go
index dec13acd7a..24a23a0882 100644
--- a/server/pkg/controller/email/storage_warning.go
+++ b/server/pkg/controller/email/storage_warning.go
@@ -29,7 +29,7 @@ const (
storageWarningPreviousStageFreshnessWindow = 35 * 24 * time.MicroSecondsInOneHour
storageWarningOneDayInMicroseconds = 24 * time.MicroSecondsInOneHour
storageWarningBufferedCadenceExtraGrace = 2 * storageWarningOneDayInMicroseconds
- storageWarningRolloutPercentage = 70
+ storageWarningRolloutPercentage = 80
storageWarningRolloutNonce = "storage-warning-v1"
storageWarningActiveOverageNotificationGroup = "storage_warning_active_overage"
diff --git a/server/pkg/controller/email/storage_warning_test.go b/server/pkg/controller/email/storage_warning_test.go
index 5133937c6c..5aff857968 100644
--- a/server/pkg/controller/email/storage_warning_test.go
+++ b/server/pkg/controller/email/storage_warning_test.go
@@ -1061,7 +1061,7 @@ func TestBuildStorageWarningRunSummary(t *testing.T) {
stats.SkippedRolloutPct = 39
got := buildStorageWarningRunSummary(stats, 0)
- want := "Storage warning run summary (1970-01-01T00:00:00Z): processed=42 | sent=3 | success={expired_0d=1, active_overage_0d=2} | failures={active_overage_60d=1} | skipped_rollout={expired_30d=39} | pre_stage_failures=4 | skipped_rollout_percentage=39 | rollout_percentage=70"
+ want := "Storage warning run summary (1970-01-01T00:00:00Z): processed=42 | sent=3 | success={expired_0d=1, active_overage_0d=2} | failures={active_overage_60d=1} | skipped_rollout={expired_30d=39} | pre_stage_failures=4 | skipped_rollout_percentage=39 | rollout_percentage=80"
if got != want {
t.Fatalf("unexpected summary:\n got: %s\nwant: %s", got, want)
}
diff --git a/server/pkg/controller/user/inactive_user_orchestrator.go b/server/pkg/controller/user/inactive_user_orchestrator.go
index cedcdbcf3b..10b39562a7 100644
--- a/server/pkg/controller/user/inactive_user_orchestrator.go
+++ b/server/pkg/controller/user/inactive_user_orchestrator.go
@@ -63,7 +63,7 @@ const (
inactiveUserGap7dTo1d = 6 * inactiveUserOneDayInMicroSeconds
inactiveUserGap1dToFinal = inactiveUserOneDayInMicroSeconds
- inactiveUserRolloutPercentage = 90
+ inactiveUserRolloutPercentage = 100
inactiveUserRolloutNonce = "inactive-user-deletion-v1"
)