Skip to content

order by viewer level#1410

Merged
ArtificialOwl merged 1 commit intomasterfrom
enh/noid/order-by-viewer-level
Oct 30, 2023
Merged

order by viewer level#1410
ArtificialOwl merged 1 commit intomasterfrom
enh/noid/order-by-viewer-level

Conversation

@ArtificialOwl
Copy link
Member

No description provided.

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
$qb->filterCircles(CoreQueryBuilder::CIRCLE, $probe);
if (!is_null($initiator)) {
$qb->limitToInitiator(CoreQueryBuilder::CIRCLE, $initiator);
$qb->orderBy($qb->generateAlias(CoreQueryBuilder::CIRCLE, CoreQueryBuilder::INITIATOR) . '.level', 'desc');
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you have cache ? can you try (with the right userId) :

./occ circles:manage:list --initiator-type user --initiator

This should returns the same list than the ocs route GET /circles

Copy link
Member

Choose a reason for hiding this comment

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

@AndyScherzinger AndyScherzinger added this to the Nextcloud 28 milestone Oct 30, 2023
@ArtificialOwl ArtificialOwl merged commit 0d5813d into master Oct 30, 2023
@delete-merged-branch delete-merged-branch bot deleted the enh/noid/order-by-viewer-level branch October 30, 2023 16:00
@ArtificialOwl
Copy link
Member Author

/backport to stable27

@ArtificialOwl
Copy link
Member Author

/backport to stable26

@skjnldsv
Copy link
Member

@ArtificialOwl I thought that wasn't the proper fix? Why is this merged?

@ArtificialOwl
Copy link
Member Author

@skjnldsv i could not reproduce your issue, i investigate any eventual rewriting of orderBy and could not find any reason for it to fail on your computer. Every scenario I have tested were good. Do you still have the issue ? can you share me your database; at least the table oc_circles_* ?

@skjnldsv
Copy link
Member

Every scenario I have tested were good

Ok then! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants