Commit Graph

11 Commits (c99bc5d51bb588a56c7c8cfcee3a3a5ab3841a95)

Author SHA1 Message Date
Eugen Rochko 3ed94dcc1a
Add account migration UI ()
Fix 

- Change data export to be available for non-functional accounts
- Change non-functional accounts to include redirecting accounts
ThibG 5506b9406d Avoid race conditions when creating backups ()
Under load, multiple backups for a single user could be planned, which
is very expensive.
ysksn b048926e67 Create Settings::BaseController ()
Define `Settings::BaseController#set_body_classes` so that sub classes
inherit `Settings::BaseController` don't need to define
`#set_body_classes` agein.
Yamagishi Kazutoshi e8ffecbd36 Set @body_classes to admin layout ()
Eugen Rochko 61ed133fea
Account archive download ()
* Fix : Account archive download

* Export actor and private key in the archive

* Optimize BackupService

- Add conversation to cached associations of status, because
  somehow it was forgotten and is source of N+1 queries
- Explicitly call GC between batches of records being fetched
  (Model class allocations are the worst offender)
- Stream media files into the tar in 1MB chunks
  (Do not allocate media file (up to 8MB) as string into memory)
- Use #bytesize instead of #size to calculate file size for JSON
  (Fix FileOverflow error)
- Segment media into subfolders by status ID because apparently
  GIF-to-MP4 media are all named "media.mp4" for some reason

* Keep uniquely generated filename in Paperclip::GifTranscoder

* Ensure dumped files do not overwrite each other by maintaing directory partitions

* Give tar archives a good name

* Add scheduler to remove week-old backups

* Fix code style issue
Matt Jankowski 0e39cc6a35 Settings export refactor ()
* Refactor Export to take an account and know about the export types

* Use Export instance in settings/exports#show
Matt Jankowski 7f0a865b05 Allow import/export of mutes list ()
* Allow export of mutes list

* Allow importing of mutes list

* Refactor to use Settings::Exports::BaseController and DRY up exports code
Matt Jankowski 3ddd936b03 Refactor exports controller ()
* Add basic coverage for settings/exports controller

* Remove unused @account variable from settings/exports controller

* Add coverage for download export actions

* Remove deprecated `render :text` in favor of `send_data` for csv downloads

* Add model to handle exports

* Use Export class in settings/exports controller

* Simplify settings/exports controller methods

* Move settings/export to more restful routes
Matt Jankowski 0687ab8ae3 Clean up generation of account webfinger string ()
* Consolidate webfinger string creation under Account#to_webfinger_s

* Introduce Account#local_username_and_domain for consolidation
Eugen Rochko 56d998cbdb Export follow/block lists as CSV
Eugen Rochko 175a9b9caa Fix - Style OAuth authorized applications page
Add ability to search accounts by display name