Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Jul 8, 2024

Summary

This adds support for iterable in OC\Core\Command\Base::writeArrayInOutputFormat when output format is not json and takes advantage of it to make group:list output more fluid.
For user:list the impact is less noticable because the user array is prepared first and that takes up most of the time.

Checklist

@come-nc come-nc added 3. to review Waiting for reviews feature: occ labels Jul 8, 2024
@come-nc come-nc added this to the Nextcloud 30 milestone Jul 8, 2024
@come-nc come-nc requested a review from a team July 8, 2024 14:59
@come-nc come-nc self-assigned this Jul 8, 2024
@come-nc come-nc requested review from ArtificialOwl, sorbaugh and yemkareems and removed request for a team July 8, 2024 14:59
@come-nc come-nc changed the title feat(occ): Add support for iterable in Base and use in in group:list and user:list feat(occ): Add support for iterable in Base and use it in group:list and user:list Jul 8, 2024
@come-nc come-nc requested a review from kesselb July 8, 2024 15:03
This was referenced Jul 30, 2024
@Altahrim Altahrim mentioned this pull request Aug 5, 2024
Copy link
Contributor

@yemkareems yemkareems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the changes with user:list and group:list before and after the implementation and both the output's are identical

come-nc added 2 commits August 6, 2024 12:13
iterator_to_array cannot take an array parameter prior to 8.2

Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc force-pushed the enh/use-generator-for-group-list branch from 61763bf to bb94da6 Compare August 6, 2024 10:13
@come-nc come-nc merged commit 2f3dfbb into master Aug 6, 2024
@come-nc come-nc deleted the enh/use-generator-for-group-list branch August 6, 2024 15:34
@Altahrim Altahrim mentioned this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: occ

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants