Skip to content

Conversation

@nilsding
Copy link
Member

Using the short local folder name has some interesting side effects, such as ending up as being e.g. "C:\MySyncRoot" or "Desktop\MySyncRoot" due to it just removing the path to the current user's home directory.

IMO using the remote path for the sidebar entry seems to be more logical, most of the times I only want to know what my sync destination is.

To improve future maintenance I moved the generation of the sidebar display name to a separate method, and added some quick unit tests.

Before After
Screenshot_20250811_180119-2 Screenshot_20250811_180155

@nilsding nilsding added this to the 3.17.0 milestone Aug 11, 2025
@nilsding nilsding self-assigned this Aug 11, 2025
@nilsding
Copy link
Member Author

/backport to stable-3.17

Using the short local folder name has some interesting side effects,
such as ending up as being e.g. "C:\MySyncRoot" or "Desktop\MySyncRoot"
due to it just removing the path to the current user's home directory.

IMO using the remote path for the sidebar entry is more logical -- I
don't care where I synced it to locally, I just want to know what my
sync destination is.

To improve future maintenance I moved the generation of the sidebar
display name to a separate method, and added some quick unit tests.

Signed-off-by: Jyrki Gadinger <[email protected]>
@mgallien mgallien force-pushed the bugfix/noid/shortcut-names branch from e710604 to 91f8797 Compare August 12, 2025 10:37
@mgallien mgallien enabled auto-merge August 12, 2025 10:37
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8562.zip

SHA256 checksum: 01733697c6bcbe8bf26022f9e1de5ebf3abb24e4265c33d46dadf21eb6b2aa69

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
Image 35 New Code Smells (required ≤ 0)
Image E Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Image Catch issues before they fail your Quality Gate with our IDE extension Image SonarQube for IDE

@mgallien mgallien merged commit 8634fd0 into master Aug 12, 2025
18 of 19 checks passed
@mgallien mgallien deleted the bugfix/noid/shortcut-names branch August 12, 2025 11:23
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.

3 participants