diaspora/app
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
..
assets Merge branch 'next-minor' into develop 2019-02-19 01:30:08 +01:00
controllers Merge branch 'next-minor' into develop 2019-01-06 22:18:48 +01:00
helpers Fix XSS via OpenGraph on mobile 2018-11-08 20:41:50 +01:00
mailers Create birthday notification and mailer 2017-12-18 04:34:35 +01:00
models Implement archive import backend 2019-04-26 18:41:27 +03:00
presenters Add camo to NodeInfo 2017-09-28 03:20:31 +02:00
serializers Remove flag for contacts visible to each other 2018-04-12 01:39:11 +02:00
services Implement archive import backend 2019-04-26 18:41:27 +03:00
uploaders Sharpen small and medium thumbnails 2018-11-04 03:07:42 +01:00
views Merge branch 'next-minor' into develop 2019-03-30 15:05:47 +01:00
workers Don't retry for PublicKeyNotFound 2018-02-25 04:34:04 +01:00