Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Sep 24, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the Unified Logging System (OSLog) with a custom logging solution from NextcloudFileProviderKit. It removes debug archive functionality and updates the NextcloudKit dependency, while improving data cleanup for file provider domains.

  • Replaces OSLog-based logging with custom FileProviderLogger throughout the codebase
  • Removes debug archive creation functionality that was specific to the old logging system
  • Adds improved file provider domain data cleanup when domains are removed

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 2 comments.

File Description
src/libsync/configfile.h/cpp Adds method to remove file provider domain mapping by domain identifier
src/gui/macOS/*.mm/h Removes debug archive functionality and adds utilities for accessing file provider extension directories
src/gui/generalsettings.cpp Updates debug archive creation to collect logs from file system instead of programmatic extraction
shell_integration/MacOSX/NextcloudIntegration/ Mass replacement of OSLog Logger with NextcloudFileProviderKit's FileProviderLogger across all Swift/Objective-C files
Comments suppressed due to low confidence (1)

shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareTableViewDataSource.swift:53

  • The userId parameter is incorrectly set to account.username instead of account.id. This could cause authentication issues as the user ID and username are different values.
            kit.appendSession(
                account: account.ncKitAccount,
                urlBase: account.serverUrl,
                user: account.username,
                userId: account.username,
                password: account.password,
                userAgent: userAgent,
                groupIdentifier: ""
            )

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Rello Rello moved this to 🏗️ In progress in 💻 Desktop Clients team Sep 24, 2025
@i2h3 i2h3 force-pushed the feature/8546-rich-logs branch from 767ce1e to 86ae112 Compare September 24, 2025 07:26
- Removed explicit reference to NextcloudKit dependency which implicitly is pulled in already by NextcloudFileProviderKit.
- Consolidated some source code files into their respective view controllers in the file provider UI extension.

Signed-off-by: Iva Horn <iva.horn@icloud.com>
@i2h3 i2h3 force-pushed the feature/8546-rich-logs branch from 86ae112 to 6c5ee7c Compare September 24, 2025 11:23
@i2h3 i2h3 marked this pull request as ready for review September 24, 2025 11:24
@github-actions
Copy link

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

Digest: sha256:59cfe1bafa11c1c3384b24a9997cf4767a019b18cfb64f6e3d6ee6bec9efda6f

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
0.0% Coverage on New Code (required ≥ 80%)
68 New Code Smells (required ≤ 0)
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

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

@camilasan camilasan merged commit 1595798 into master Sep 24, 2025
20 of 21 checks passed
@camilasan camilasan deleted the feature/8546-rich-logs branch September 24, 2025 12:05
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💻 Desktop Clients team Sep 24, 2025
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.

[Bug]: Account Removal Leaves File Provider Domain

3 participants