mastodon/spec/fabricators
Eugen Rochko 61ed133fea
Account archive download (#6460)
* Fix #201: 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
2018-02-21 23:21:32 +01:00
..
access_token_fabricator.rb Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
accessible_access_token_fabricator.rb Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
account_domain_block_fabricator.rb Ensure unique identifiers in fabricated objects in tests (#3173) 2017-05-20 17:09:40 +02:00
account_fabricator.rb Ensure unique identifiers in fabricated objects in tests (#3173) 2017-05-20 17:09:40 +02:00
account_moderation_note_fabricator.rb Add moderation note (#5240) 2017-10-07 20:26:43 +02:00
admin_action_log_fabricator.rb Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
application_fabricator.rb
backup_fabricator.rb Account archive download (#6460) 2018-02-21 23:21:32 +01:00
block_fabricator.rb
conversation_fabricator.rb
conversation_mute_fabricator.rb
custom_emoji_fabricator.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
domain_block_fabricator.rb Cover Admin::DomainBlocksController more (#3329) 2017-06-25 21:42:36 +02:00
email_domain_block_fabricator.rb Implement EmailBlackList (#5109) 2017-10-04 15:16:10 +02:00
favourite_fabricator.rb
follow_fabricator.rb
follow_request_fabricator.rb Remove redundant code in AtomSerializer and spec (#3528) 2017-06-03 20:51:08 +02:00
identity_fabricator.rb CAS + SAML authentication feature (#6425) 2018-02-04 05:42:13 +01:00
import_fabricator.rb
invite_fabricator.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
list_account_fabricator.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
list_fabricator.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
media_attachment_fabricator.rb Update fabricator for MediaAttachment to attach a file according to type (#3862) 2017-06-20 20:40:45 +02:00
mention_fabricator.rb
mute_fabricator.rb
notification_fabricator.rb
report_fabricator.rb
session_activation_fabricator.rb Add tests for SessionActivation (#5668) 2017-11-13 09:54:48 +09:00
setting_fabricator.rb Add tests for Setting (#5683) 2017-11-14 11:08:04 +09:00
site_upload_fabricator.rb Uploads for admin site settings (#4913) 2017-09-14 00:04:30 +02:00
status_fabricator.rb Switch to static URIs, new URI format in both protocols for new statuses (#4815) 2017-09-06 19:01:28 +02:00
status_pin_fabricator.rb Pinned statuses (#4675) 2017-08-25 01:41:18 +02:00
stream_entry_fabricator.rb Cover ApplicationController more in spec (#3230) 2017-05-22 17:58:57 +02:00
subscription_fabricator.rb
tag_fabricator.rb Ensure unique identifiers in fabricated objects in tests (#3173) 2017-05-20 17:09:40 +02:00
user_fabricator.rb Ensure unique identifiers in fabricated objects in tests (#3173) 2017-05-20 17:09:40 +02:00
web_push_subscription_fabricator.rb Web Push Notifications (#3243) 2017-07-13 22:15:32 +02:00
web_setting_fabricator.rb