-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix files_external:export so the output can be successfully imported #37513
Conversation
Codecov Report
@@ Coverage Diff @@
## master #37513 +/- ##
============================================
- Coverage 64.68% 64.68% -0.01%
Complexity 19336 19336
============================================
Files 1277 1277
Lines 75535 75556 +21
Branches 1331 1331
============================================
+ Hits 48860 48872 +12
- Misses 26283 26292 +9
Partials 392 392
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #37513 +/- ##
============================================
- Coverage 64.68% 64.68% -0.01%
Complexity 19336 19336
============================================
Files 1277 1277
Lines 75535 75556 +21
Branches 1331 1331
============================================
+ Hits 48860 48872 +12
- Misses 26283 26292 +9
Partials 392 392
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #37513 +/- ##
============================================
- Coverage 64.68% 64.68% -0.01%
Complexity 19336 19336
============================================
Files 1277 1278 +1
Lines 75535 75562 +27
Branches 1331 1331
============================================
+ Hits 48860 48876 +16
- Misses 26283 26294 +11
Partials 392 392
Continue to review full report at Codecov.
|
Please file a doc issue, because this is a change in the occ command set. |
Doc issue owncloud/docs#2674 |
I think it's more consistent to rely only on the "importable-format" flag. I mean, I don't mind whether the information is shown in a table or in json, but it could be weird if things change just because a different format is used. |
"importable + text table" does show the storage class and technical The "text table" format does not lend itself to displaying an array! So for that, I do not display the special case "All" text when there are no applicable users/groups. But when there are applicable users/groups I display them as text in the same way that they are currently displayed (comma-separated string) |
Description
The output of
php occ files_external:export
was containing problems like:\OC\Files\Storage\Local
class namenull::null
orpassword::password
A new option to
files_external:list
has been added --i
or--importable-format
- when this is specified and a JSON output is requested, the items above are corrected in the JSON to be in a format that can be used for import.files_external:export
callslist
with this new option set. (It already calledlist
to do its work anyway).Extra unit and acceptance tests have been added to cover the new
list
option, and the export and import of various combinations of mounts.Related Issue
How Has This Been Tested?
CI
Types of changes
Checklist: