Skip to content

Organise item-related extension files more sensibly#72

Merged
claucambra merged 4 commits into
mainfrom
bugfix/organisation
May 9, 2025
Merged

Organise item-related extension files more sensibly#72
claucambra merged 4 commits into
mainfrom
bugfix/organisation

Conversation

@claucambra
Copy link
Copy Markdown
Contributor

No description provided.

@claucambra claucambra added this to the 2.1 milestone May 9, 2025
@claucambra claucambra requested a review from Copilot May 9, 2025 04:05
@claucambra claucambra self-assigned this May 9, 2025
Copy link
Copy Markdown
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 reorganizes item‑related extensions in NextcloudFileProviderKit to improve code structure and maintainability. Key changes include:

  • Renaming and updating the unuploaded item extension (Item+Unuploaded.swift) to better reflect its purpose.
  • Adding a new trash management extension (Item+Trash.swift) and consolidating lock file operations into a single file (Item+LockFile.swift).
  • Removing deprecated or redundant files (Item+ModifyLockFile.swift, Item+DeleteLockFile.swift, Item+CreateUnuploaded.swift, Item+CreateLockFile.swift) to streamline the codebase.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

File Description
Sources/NextcloudFileProviderKit/Item/Item+Unuploaded.swift Updated header comment and added createUnuploaded() implementation adjustments.
Sources/NextcloudFileProviderKit/Item/Item+Trash.swift New file adding trash() and restoreFromTrash() functions for managing trashed items.
Sources/NextcloudFileProviderKit/Item/Item+LockFile.swift New file consolidating lock file creation, modification, and deletion functionalities.
Removed files (Item+ModifyLockFile.swift, Item+DeleteLockFile.swift, etc.) Removed outdated implementations now replaced by reorganized extensions.
Comments suppressed due to low confidence (1)

Sources/NextcloudFileProviderKit/Item/Item+LockFile.swift:2

  • [nitpick] The header comment still references 'Item+CreateLockFile.swift' while the file is now named 'Item+LockFile.swift'; please update the comment to match the current file naming.
//  Item+CreateLockFile.swift

claucambra added 4 commits May 9, 2025 12:10
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
@claucambra claucambra force-pushed the bugfix/organisation branch from 2565331 to 4f77c99 Compare May 9, 2025 04:12
@codecov
Copy link
Copy Markdown

codecov Bot commented May 9, 2025

Codecov Report

Attention: Patch coverage is 58.99160% with 244 lines in your changes missing coverage. Please review.

Project coverage is 81.11%. Comparing base (52e92f5) to head (4f77c99).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ces/NextcloudFileProviderKit/Item/Item+Trash.swift 47.24% 153 Missing ⚠️
.../NextcloudFileProviderKit/Item/Item+LockFile.swift 73.58% 70 Missing ⚠️
...extcloudFileProviderKit/Item/Item+Unuploaded.swift 47.50% 21 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #72   +/-   ##
=======================================
  Coverage   81.11%   81.11%           
=======================================
  Files          62       60    -2     
  Lines       13039    13040    +1     
=======================================
+ Hits        10576    10577    +1     
  Misses       2463     2463           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@claucambra claucambra merged commit 6e4db49 into main May 9, 2025
2 of 3 checks passed
@Rello Rello deleted the bugfix/organisation branch August 15, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants