-
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
Improve code occ files_external:list --short #34033
Conversation
Codecov Report
@@ Coverage Diff @@
## master #34033 +/- ##
============================================
+ Coverage 64.77% 66.05% +1.28%
- Complexity 18340 18503 +163
============================================
Files 1198 1152 -46
Lines 69418 66556 -2862
Branches 1276 1276
============================================
- Hits 44964 43966 -998
+ Misses 24085 22221 -1864
Partials 369 369
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34033 +/- ##
============================================
- Coverage 65.15% 65.14% -0.02%
Complexity 18352 18352
============================================
Files 1200 1200
Lines 69698 69672 -26
Branches 1283 1283
============================================
- Hits 45413 45388 -25
+ Misses 23911 23910 -1
Partials 374 374
Continue to review full report at Codecov.
|
@sharidas can you help fixing the tests ? |
I have made a change to my oC instance for example: And in the user2 personal storage I added sftp: And after making this setting in the UI, I try to run the command as shown below: From the user perspective who executes this command, I would expect the no mounts configured for |
I agree with you - it is not clean, but it is a matter of the definition of
From that what I read above and from the other code elements where So if we want to combine |
5babef9
to
d4089d7
Compare
Improved helptext
|
Tested and the behavior is like commented in #34033 (comment) IMHO, behavior should be like commented in #34033 (comment) . From the user perspective who executes this command, I would expect the no mounts configured for user1 when using -a option. Anyway, now it is documented in the help with |
Seems this implementation aligns with how |
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
d4089d7
to
f21d25f
Compare
Automated rebase with GitMate.io was successful! 🎉 |
@mmattel please run |
@PVince81 Question:
Any ideas ? |
What to say? I just did
and it works hard for a while loading loads of dependencies for
in the
that is the magic thing that makes the |
f21d25f
to
233a19d
Compare
aa02acb
to
bccc328
Compare
I have updated the PR, run php-style-fix, added tests, squashed the commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@mmattel please backport |
Improve code occ files_external:list --short
Description
This PR improves the code for the
--short
option in occ commandfiles_external:list
standard output and json output
--all
and if auser
is givenRelated Issue
Motivation and Context
Better code, easier to handle and enhance. Better output
How Has This Been Tested?
Screenshots (if appropriate):
Commands
Auth
This new field shows if a mount is based on User/Pwd (User) or Session (Session).
This info is important when using files:scan as session based mounts cant be scanned by occ.
The output of json is tested and correct to the plain one
Types of changes
Checklist:
Open tasks: