-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
allow filtering occ files_external:list to storages applicable for a user #34655
Conversation
@icewind1991 what does this fix or improve? |
@@ -117,7 +124,7 @@ | |||
* @param InputInterface $input | |||
* @param OutputInterface $output | |||
*/ | |||
public function listMounts($userId, array $mounts, InputInterface $input, OutputInterface $output) { | |||
public function listMounts(string $userId, array $mounts, InputInterface $input, OutputInterface $output) { |
Check notice
Code scanning / Psalm
MissingReturnType
@@ -262,7 +269,7 @@ | |||
} | |||
} | |||
|
|||
protected function getStorageService($userId) { | |||
protected function getStorageService(string $userId) { |
Check notice
Code scanning / Psalm
MissingReturnType
can be useful in support. |
return 1; | ||
} | ||
$mounts = $this->userGlobalService->getAllStoragesForUser($forUser); | ||
$userId = self::ALL; |
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.
a bit quirky but does the job
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.
👍 see minor comments
7d84602
to
8497e4e
Compare
…user Signed-off-by: Robin Appelman <[email protected]>
8497e4e
to
c0c5a19
Compare
You have successfully added a new Psalm configuration |
You have successfully added a new Psalm configuration |
} | ||
$mounts = $this->userGlobalService->getAllStoragesForUser($forUser); | ||
$userId = self::ALL; | ||
} else if ($input->getOption('all')) { |
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.
} else if ($input->getOption('all')) { | |
} elseif ($input->getOption('all')) { |
@@ -77,13 +86,26 @@ protected function configure(): void { | |||
'a', | |||
InputOption::VALUE_NONE, | |||
'show both system wide mounts and all personal mounts' | |||
)->addOption( | |||
'for', |
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.
It is not clear reading the description what is the difference between occ files_external:list user
and occ files_external:list --for user
.
Also occ files_external:list user1 --for user2
is allowed but will ignore user1?
No description provided.