Repository navigation
[stable2] fix(contexts): remove the navigation settings of a deleted receiver - #3340
Merged
Merged
Conversation
Deleting a user, group or team removed the shares made to them but left the application navigation settings of those shares in tables_contexts_navigation, and deleting a user also left the settings they made for themselves on shares to others. Both are now removed with the shares. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…stant Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
Filter on node_type 'context', since only application shares have navigation rows, and read the ids with fetchAll() so the query also works on Nextcloud 30 to 32. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…avigation Read the application share ids first, delete the shares as before and remove the navigation rows afterwards in their own guard, so a failing navigation delete no longer keeps the shares. Read the uid once. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…ope it to the fixture Assert that the receiver's shares are deleted and others kept, expect no warning on the normal path, cover a deleted team and a failing navigation delete, and read and clean up only the rows the test created. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
blizzz
force-pushed
the
backport/3204/stable2
branch
from
November 24, 2026 11:15
62c4960 to
afe1bc0
Compare
blizzz
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of PR #3204