Skip to content

Fix ldap:show-remnant sharer column when remnants are disabled#61677

Open
come-nc wants to merge 3 commits into
masterfrom
fix/fix-show-remnant-shares
Open

Fix ldap:show-remnant sharer column when remnants are disabled#61677
come-nc wants to merge 3 commits into
masterfrom
fix/fix-show-remnant-shares

Conversation

@come-nc

@come-nc come-nc commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

When Remnants are considered disabled (see markRemnantsAsDisabled) and shares by disabled users are hidden (see hide_disabled_user_shares) ldap:show-remnants would show all remnants as having no shares. It was also quite slow if users have a lot of shares as it was iterating over all shares from all remnants.
Now, validity of shares is not checked anymore by show-remnants. It’s a bit less accurate (a remnant may appear as a sharer even if all its shares are expired) but it’s faster.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
@come-nc come-nc self-assigned this Jun 30, 2026
@come-nc come-nc added the 3. to review Waiting for reviews label Jun 30, 2026
@come-nc come-nc marked this pull request as ready for review June 30, 2026 14:32
@come-nc come-nc requested a review from a team as a code owner June 30, 2026 14:32
@come-nc come-nc requested review from Altahrim, icewind1991, leftybournes and nfebe and removed request for a team June 30, 2026 14:32
@come-nc come-nc added this to the Nextcloud 35 milestone Jun 30, 2026
Comment thread apps/user_ldap/lib/User/OfflineUser.php Outdated
come-nc and others added 3 commits June 30, 2026 17:32
…dden

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
When Remnants are considered disabled (see markRemnantsAsDisabled) and
 shares by disabled users are hidden (see hide_disabled_user_shares)
 ldap:show-remnants would show all remnants as having no shares. It was
 also quite slow if users have a lot of shares as it was iterating over
 all shares from all remnants.
Now, validity of shares is not checked anymore by show-remnants. It’s a
 bit less accurate (a remnant may appear as a sharer even if all its
 shares are expired) but it’s faster.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
@come-nc come-nc force-pushed the fix/fix-show-remnant-shares branch from dfb0b0c to a874d75 Compare June 30, 2026 15:32
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

2 participants