Skip to content

Conversation

@mgallien
Copy link
Collaborator

No description provided.

@mgallien mgallien added this to the 3.18.0 milestone Aug 12, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Aug 12, 2025
@mgallien mgallien moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 💻 Desktop Clients team Aug 12, 2025
@mgallien
Copy link
Collaborator Author

version 1 of the optimized creation of Windows placeholder items (version 2 is #8547 which needs more love and may bring even faster sync)
next step is to benchmark to measure against v3.16.6 and v3.17.0

@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch from e11d48c to 9894592 Compare August 13, 2025 11:29
@Rello Rello changed the title Feature/bulk create windows placeholders per folders Feature/bulk create windows placeholders per folders (V1) Aug 21, 2025
@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch from 9894592 to 1f5a3ad Compare August 22, 2025 08:27
@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch 2 times, most recently from d731c08 to e7bff8e Compare August 26, 2025 08:37
@mgallien mgallien requested a review from nilsding August 26, 2025 08:37
@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch 2 times, most recently from 5b50206 to 787df85 Compare August 29, 2025 09:18
@mgallien mgallien requested a review from nilsding August 29, 2025 11:14
@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch from 6aa8b0b to 3bc8a0c Compare August 29, 2025 11:51
@mgallien mgallien enabled auto-merge August 29, 2025 11:52
try to use const and auto as much as possible

remove useless constructor argument that is always using the default value

makes code cleaner

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
this code does not make sense

I tested manually and this code is never called

I doubt this code is needed or useful

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
use the c++ standard way of requiring caller to care about the returned
value

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
should allow to speed API calls to Windows CfApi by reducing their
numbers by asking for a list of new placeholders via a single call
instead of one for each new item

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
use the proper VFS plug-in API to request all files to be cerated as a
single batch

will now need a proper implementation using the batch Windows CfApi
function

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
filter new placeholder items by invalid modtime and only proceed with
creating only the valid ones

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we should return false from
BulkPropagatorDownloadJob::scheduleSelfOrChild() because we have no
child jobs that are not done and waiting to be started

ensure we update the job status only once (even in case of errors)

ensure we update the state of the items once and only once

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien mgallien force-pushed the feature/bulkCreateWindowsPlaceholdersPerFolders branch from 3bc8a0c to 1f0f5b0 Compare August 29, 2025 12:07
@github-actions
Copy link

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

Digest: sha256:f3b64f98e961ca7fcb722d2088be45bd4913a76f37d5fe941970ad897f579e95

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.

@mgallien mgallien merged commit a1d263c into master Aug 29, 2025
17 checks passed
@mgallien mgallien deleted the feature/bulkCreateWindowsPlaceholdersPerFolders branch August 29, 2025 12:41
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💻 Desktop Clients team Aug 29, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4.1% Coverage on New Code (required ≥ 80%)
C Maintainability Rating on New Code (required ≥ A)
79 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

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

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