Repository navigation
feat(contexts): carry the menu through export and import - #3138
Draft
rubenvdlinde wants to merge 2 commits into
Draft
rubenvdlinde wants to merge 2 commits into
rubenvdlinde wants to merge 2 commits into
Conversation
3 of 5 tasks
rubenvdlinde
added this pull request to stack #3139
October 22, 2026 11:42
rubenvdlinde
force-pushed
the
feat/noid/app-menu-export-import
branch
from
October 22, 2026 13:25
dca4eb5 to
bc762f6
Compare
This was referenced Oct 22, 2026
rubenvdlinde
force-pushed
the
feat/noid/app-menu-export-import
branch
from
October 23, 2026 08:05
bc762f6 to
04aafd2
Compare
Menus travel with the application's scheme and with a user's data, with targets referenced by UUID or technical name. TableMapper and ViewMapper findByUuid now return null when nothing matches, as their signatures already said. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
rubenvdlinde
force-pushed
the
feat/noid/app-menu-export-import
branch
from
October 24, 2026 08:09
04aafd2 to
455a391
Compare
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.
Part of #3099, on top of #3137 (menu nesting). A menu now travels with its application when the application's scheme is exported and imported, and when a user's data is moved to another instance.
Size: 871 lines: 428 code, 418 tests and 25 generated OpenAPI.
What changes
item_7included, so nesting survives the round trip.TablesMigrator) carries the menu's links and the items for the moved table and pages. View items are skipped for now, because that import has no mapping from old view ids to new ones.ViewMapper::findByUuidandTableMapper::findByUuidwere already declared to return nothing when the UUID is unknown, but threw an exception instead. They now return null, which the import relies on.How it was tested
On Nextcloud 34 with PostgreSQL:
FindByUuidTest: both mappers return null for an unknown UUIDimportContext()and through a scheme, including a child under an automatically named parentcomposer cs:check, psalm and rector, all clean🖼️ Screenshots
Backend only, no UI changes.
🏁 Checklist
/backport to stableX.X🤖 AI (if applicable)