Repository navigation
Feat lazy user folder creation - #503
Open
mudinthewater wants to merge 3 commits into
Open
mudinthewater wants to merge 3 commits into
mudinthewater wants to merge 3 commits into
Conversation
The current user's folder is now represented in the tree without persisting anything: getContainedNamespaces no longer creates the namespace, MCWSPersistenceProvider.get returns a synthetic folder model (deliberately unpersisted) for the current user's own root, and the namespace plus root file are only created when an object is first created inside the folder. The legacy interceptor no longer recreates user folders on read. Users who only view leave no folder behind, reducing tree clutter on large projects.
mudinthewater
force-pushed
the
feat-lazy-user-folder-creation
branch
from
October 20, 2026 06:51
8940fa9 to
23571f5
Compare
Cover the non-root miss and namespace-read failure branches of the new folder helpers, and emit an lcov report from Karma (target/coverage/lcov.info) wired into sonar-project.properties so Sonar can ingest coverage instead of reporting 0% on new code.
Materializing the user's folder on first write into it now creates only the namespace. The empty root file written by createIfMissing collided with the root create issued when the parent folder is saved with its real composition, which returns 409 on MCWS.
|
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.


Okay when doing #54 I decided it would be much easier to just not create the namespace or root until a user actually puts an object in it. No namespace or root, no folder.