Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to perform fast synchronisation runs in File Provider sync engine #6461

Merged
merged 22 commits into from
Mar 6, 2024

Conversation

claucambra
Copy link
Collaborator

@claucambra claucambra commented Feb 19, 2024

Closes #5692

Screenshot 2024-02-19 at 19 45 49

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/3)

src/gui/macOS/fileproviderstorageuseenumerationobserver.h Outdated Show resolved Hide resolved
src/gui/macOS/fileprovider_mac.mm Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderxpc.h Show resolved Hide resolved
src/gui/macOS/fileproviderstorageuseenumerationobserver.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderstorageuseenumerationobserver.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderutils.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderutils.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderutils.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderutils.h Outdated Show resolved Hide resolved
src/gui/macOS/fileprovideritemmetadata_mac.mm Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (2/3)

src/gui/macOS/fileproviderdomainsyncstatus_mac.mm Outdated Show resolved Hide resolved
explicit FileProviderXPC(QObject *parent = nullptr);

// Returns enabled and set state of fast enumeration for the given extension
[[nodiscard]] std::optional<std::pair<bool, bool>> fastEnumerationStateForExtension(const QString &extensionAccountId) const;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-diagnostic-error ⚠️
no template named optional in namespace std; did you mean Optional?

Suggested change
[[nodiscard]] std::optional<std::pair<bool, bool>> fastEnumerationStateForExtension(const QString &extensionAccountId) const;
[[nodiscard]] Optional<std::pair<bool, bool>> fastEnumerationStateForExtension(const QString &extensionAccountId) const;

src/gui/macOS/progressobserver.h Outdated Show resolved Hide resolved
src/gui/macOS/fileprovidersettingscontroller_mac.mm Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderxpc.h Show resolved Hide resolved
src/gui/macOS/fileproviderxpc.h Show resolved Hide resolved
src/gui/macOS/fileproviderxpc_mac_utils.h Outdated Show resolved Hide resolved
src/gui/macOS/progressobserver.h Outdated Show resolved Hide resolved
src/gui/macOS/progressobserver.h Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (3/3)

src/gui/macOS/fileproviderxpc_mac_utils.h Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderxpc.h Show resolved Hide resolved
src/gui/macOS/fileproviderutils_mac.mm Outdated Show resolved Hide resolved
src/gui/macOS/fileprovidermaterialiseditemsmodel_mac.mm Outdated Show resolved Hide resolved
src/gui/macOS/fileproviderxpc_mac_utils.h Outdated Show resolved Hide resolved
@claucambra claucambra force-pushed the feature/file-provider-fast-init-sync branch from e886efd to 9b0cf5e Compare February 19, 2024 14:54
@roberix
Copy link

roberix commented Feb 19, 2024

Hi.

Is this going to be a mac only feature or will this be also available on the Windows client?

Regards

rob

@claucambra
Copy link
Collaborator Author

Hi.

Is this going to be a mac only feature or will this be also available on the Windows client?

Regards

rob

Hi, this is a macOS-only feature

Copy link
Member

@camilasan camilasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

…xplored folders

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…onfig

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…set in settings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…oviderXPC

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…rXPC

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…r settings controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ngs controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ings controller to be true

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…leProviderSettings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@claucambra claucambra force-pushed the feature/file-provider-fast-init-sync branch from 9b0cf5e to d64d959 Compare March 6, 2024 10:46
@claucambra claucambra merged commit 6845e24 into master Mar 6, 2024
9 of 12 checks passed
@claucambra claucambra deleted the feature/file-provider-fast-init-sync branch March 6, 2024 10:47
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-6461-d64d959b515677c05bdd9d7df69cb67814dc104c-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

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

Copy link

sonarcloud bot commented Mar 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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.

Improve initial sync of macOS File Provider module for VFS
5 participants