Commit Graph

22 Commits

Author SHA1 Message Date
Christopher Ng
4e51f5224c feat(UserMigration)!: 32-bit support
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-05-05 17:59:57 -07:00
Côme Chilliet
f5c361cf44
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-20 11:45:08 +01:00
Côme Chilliet
441ac433b1
Add a nodeFilter parameter for IExportDestination::copyFolder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-09-13 12:10:28 +02:00
Côme Chilliet
fa041dabf4 Add the ISizeEstimationMigrator interface for method getExportEstimatedSize
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 17:49:05 +00:00
Côme Chilliet
09917b8583 Implement getExportEstimatedSize in migrators
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Côme Chilliet
f20b7e5764 Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Vincent Petry
78c8e57896
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-13 16:52:40 +02:00
Côme Chilliet
a77ffe8593
Adapt user_migration APIs to have information about failures
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-13 16:52:39 +02:00
Côme Chilliet
dda51d49d7 Use Migrators id instead of class names
This will help with UI and means migrators can move in namespaces
 without changing export format.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-11 13:59:27 +00:00
Christopher Ng
2273ddc873 Extend migrator interface
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-04-08 19:31:22 +00:00
Côme Chilliet
1973b2fb75
Fix autoloader and phpdoc for new class
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-14 14:34:15 +01:00
Côme Chilliet
b63d22b6ea
Improve wording of pathExists description
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-14 14:34:15 +01:00
Côme Chilliet
b4b9e8adf7
Add getOriginalUid in IImportSource to simplify code when importing under another uid
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-14 14:34:14 +01:00
Côme Chilliet
5534f70c5d
Add pathExists method to IImportSource to test if a path exists in the archive
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-14 14:34:14 +01:00
Côme Chilliet
d8b2d32a5e
Move UserMigrationException to OCP and add @throws documentation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-14 14:33:57 +01:00
Christopher Ng
321e1cdce3 Extend ImportSource interface to list files of a folder
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-02-24 16:53:50 +00:00
Côme Chilliet
07940f9d05
Please drone checkers
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-21 18:20:27 +01:00
Côme Chilliet
885b7904a2
Avoid passing both $importSource and $version while version comes from source
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-17 18:09:14 +01:00
Côme Chilliet
67fb1b92d6
Improve version handling for user_migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-17 11:31:03 +01:00
Côme Chilliet
b06a622a60
Add version handling to IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-17 11:30:55 +01:00
Christopher Ng
21f9e85e1a Extend export destination interface
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-02-11 23:34:25 +00:00
Christopher Ng
e3244361ba Allow registration of migrators
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-02-11 23:34:25 +00:00