diff --git a/Changelog.md b/Changelog.md index f886d08b2..5787dc9ca 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,12 @@ # 0.7.1.0 +## Ensure account deletions are run + +There were some issues causing accounts deletions to not properly perform in some cases, see +[#7631](https://github.com/diaspora/diaspora/issues/7631) and [#7639](https://github.com/diaspora/diaspora/pull/7639). +To ensure these are reexecuted properly, please run `RAILS_ENV=production bin/rake migrations:run_account_deletions` +after you've upgraded. + ## Refactor * Remove title from profile photo upload button [#7551](https://github.com/diaspora/diaspora/pull/7551) * Remove Internet Explorer workarounds [#7557](https://github.com/diaspora/diaspora/pull/7557) @@ -14,6 +21,7 @@ * Remove `rails_admin_histories` table [#7597](https://github.com/diaspora/diaspora/pull/7597) * Optimize memory usage on profile export [#7627](https://github.com/diaspora/diaspora/pull/7627) * Limit the number of parallel exports [#7629](https://github.com/diaspora/diaspora/pull/7629) +* Reduce memory usage for account deletion [#7639](https://github.com/diaspora/diaspora/pull/7639) ## Bug fixes * Fix displaying polls with long answers [#7579](https://github.com/diaspora/diaspora/pull/7579) @@ -29,6 +37,7 @@ * Delete invalid diaspora IDs from friendica [#7630](https://github.com/diaspora/diaspora/pull/7630) * Cleanup relayables where the signature is missing [#7637](https://github.com/diaspora/diaspora/pull/7637) * Avoid page to jump to top after a post deletion [#7638](https://github.com/diaspora/diaspora/pull/7638) +* Handle duplicate account deletions [#7639](https://github.com/diaspora/diaspora/pull/7639) ## Features * Ask for confirmation when leaving a submittable comment field [#7530](https://github.com/diaspora/diaspora/pull/7530) diff --git a/lib/tasks/migrations.rake b/lib/tasks/migrations.rake index 6951b3ffc..a93e55ed4 100644 --- a/lib/tasks/migrations.rake +++ b/lib/tasks/migrations.rake @@ -59,4 +59,15 @@ namespace :migrations do queue.clear end end + + desc "Run uncompleted account deletions" + task run_account_deletions: :environment do + if AccountDeletion.uncompleted.count > 0 + puts "Running account deletions.." + AccountDeletion.uncompleted.find_each(&:perform!) + puts "OK." + else + puts "No acccount deletions to run." + end + end end