Commit graph

1850 commits

Author SHA1 Message Date
cmrd Senya
f85f167f50 Implement archive import backend
This implements archive import feature.

The feature is divided in two main subfeatures: archive validation and archive import.

Archive validation performs different validation on input user archive. This can be
used without actually running import, e.g. when user wants to check the archive
before import from the frontend. Validators may add messages and modify the archive.

Validators are separated in two types: critical validators and non-critical validators.

If validations by critical validators fail it means we can't import archive.

If non-critical validations fail, we can import archive, but some warning messages
are rendered.

Also validators may change archive contents, e.g. when some entity can't be
imported it may be removed from the archive.

Validators' job is to take away complexity from the importer and perform the validations
which are not implemented in other parts of the system, e.g. DB validations or
diaspora_federation entity validations.

Archive importer then takes the modified archive from the validator and imports it.

In order to incapsulate high-level migration logic a MigrationService is
introduced. MigrationService links ArchiveValidator, ArchiveImporter and
AccountMigration.

Also here is introduced a rake task which may be used by podmins to run archive
import.
2019-04-26 18:41:27 +03:00
Benjamin Neff
e0a6189ec4
Merge branch 'next-minor' into develop 2019-03-30 15:05:47 +01:00
Benjamin Neff
093cca9a76
Bump rails-controller-testing 2019-03-30 15:03:12 +01:00
Benjamin Neff
ccbc65993d
Bump rspec-rails 2019-03-30 15:03:12 +01:00
Benjamin Neff
d9d0eb1512
Bump webmock 2019-03-30 15:03:12 +01:00
Benjamin Neff
f8419b14ba
Bump shoulda-matchers 2019-03-30 15:03:12 +01:00
Benjamin Neff
290ddbf271
Bump capybara 2019-03-30 15:03:11 +01:00
Benjamin Neff
18d7b38037
Bump rubocop 2019-03-30 15:03:11 +01:00
Benjamin Neff
01468c34dd
Bump rb-inotify 2019-03-30 15:03:11 +01:00
Benjamin Neff
7ae2dc6249
Bump asset_sync 2019-03-30 15:03:11 +01:00
Benjamin Neff
6f53f1bc0a
Bump will_paginate 2019-03-30 15:03:11 +01:00
Benjamin Neff
5195f7daac
Bump rails-timeago 2019-03-30 15:03:11 +01:00
Benjamin Neff
2585fb9b49
Bump hamlit 2019-03-30 15:03:11 +01:00
Benjamin Neff
02617a3562
Bump faraday 2019-03-30 15:03:10 +01:00
Benjamin Neff
0372924b90
Bump omniauth 2019-03-30 15:03:10 +01:00
Benjamin Neff
05472cc4f9
Bump secure_headers 2019-03-30 15:03:10 +01:00
Benjamin Neff
da39750244
Bump nokogiri 2019-03-30 15:03:10 +01:00
Benjamin Neff
3b0f435f69
Bump rails-i18n 2019-03-30 15:03:10 +01:00
Benjamin Neff
adaca8d0a3
Bump handlebars_assets 2019-03-30 15:03:10 +01:00
Benjamin Neff
8a10655f7f
Bump mini_magick 2019-03-30 15:01:01 +01:00
Benjamin Neff
c8bef1077d
Bump fog-aws 2019-03-30 15:01:01 +01:00
Benjamin Neff
da83456660
Bump carrierwave 2019-03-30 15:01:01 +01:00
Benjamin Neff
b7183d7cee
Bump activerecord-import 2019-03-30 15:01:01 +01:00
Benjamin Neff
cd7af6df50
Bump pg 2019-03-30 15:01:01 +01:00
Benjamin Neff
54e44d6d7e
Bump uglifier 2019-03-30 15:01:01 +01:00
Benjamin Neff
a63f11bbf4
Bump sidekiq-cron 2019-03-30 15:01:01 +01:00
Benjamin Neff
7b201f4bb9
Bump sidekiq 2019-03-30 15:01:00 +01:00
Benjamin Neff
f4fa7e10bd
Bump json 2019-03-30 15:01:00 +01:00
Benjamin Neff
23d637b9a1
Bump unicorn 2019-03-30 15:01:00 +01:00
Benjamin Neff
360780c17f
Bump responders 2019-03-30 15:01:00 +01:00
Benjamin Neff
c253272d83
Bump bootstrap-sass 2019-03-30 15:01:00 +01:00
Benjamin Neff
c063f6fa1b
Bump devise 2019-03-30 15:01:00 +01:00
Benjamin Neff
94a32b2833
Bump rails 2019-03-30 15:00:54 +01:00
Benjamin Neff
2b2852267a
Merge branch 'next-minor' into develop 2019-01-06 22:18:48 +01:00
Benjamin Neff
efcaa860ac
Revert "Bump bootstrap-switch-rails"
It looks like 3.3.4 is broken :(

Fixes #7940

This reverts commit 5205e3c526.

closes #7955
2019-01-06 22:16:02 +01:00
Benjamin Neff
5b0066a426
Merge branch 'next-minor' into develop 2018-11-18 19:36:51 +01:00
Benjamin Neff
7a958bce69
Bump cucumber 2018-11-18 19:32:16 +01:00
Benjamin Neff
a09f7d73d8
Remove guard-cucumber
Looks dead, last commit over two years ago, and block upgrade of cucumber

See guard/guard-cucumber#36
2018-11-18 19:27:43 +01:00
Benjamin Neff
8fc75e8955
Bump twitter-text 2018-11-17 21:20:51 +01:00
Benjamin Neff
81c833c4e3
Bump rails-assets-pica 2018-11-17 21:20:05 +01:00
Benjamin Neff
5bc32d0aad
Bump rails-assets-cropperjs 2018-11-17 21:15:59 +01:00
Benjamin Neff
b30c4e4e97
Merge branch 'next-minor' into develop 2018-11-17 21:08:23 +01:00
Benjamin Neff
ce10791526
Bump guard 2018-11-17 21:05:42 +01:00
Benjamin Neff
19556e7d7d
Bump hamlit 2018-11-17 21:05:40 +01:00
Benjamin Neff
63b23056a5
Bump gon 2018-11-17 21:05:40 +01:00
Benjamin Neff
80f57673ab
Bump typhoeus 2018-11-17 21:05:40 +01:00
Benjamin Neff
de5e22a543
Bump faraday 2018-11-17 21:04:37 +01:00
Benjamin Neff
98d165c0c5
Bump acts-as-taggable-on 2018-11-17 21:04:37 +01:00
Benjamin Neff
d8016d39cf
Bump secure_headers 2018-11-17 21:04:37 +01:00
Benjamin Neff
f0eead3659
Bump rails-i18n 2018-11-17 21:04:37 +01:00