Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Oct 9, 2025

No description provided.

Copy link

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 refactors the lock mechanism in NextcloudKit by changing from an object-oriented approach to a flattened property structure. The changes fix the interpretation of lock responses by properly handling numeric lock status values and making lock properties optional where appropriate.

  • Changed lock representation from a single NKLock object to individual lock properties on NKFile
  • Fixed lock status parsing to use integer values instead of boolean interpretation
  • Made ownerEditor optional in NKLock to handle cases where it may not be present

Reviewed Changes

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

File Description
NKLock.swift Updated lock parsing logic to handle integer status values and made ownerEditor optional
NKFile.swift Replaced single lock object with individual lock properties for better data handling
NKDataFileXML.swift Updated XML parsing to populate individual lock properties instead of creating lock objects

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

@i2h3 i2h3 force-pushed the fix/lock-responses branch from c0ee0c3 to 790c208 Compare October 10, 2025 07:15
@i2h3 i2h3 self-assigned this Oct 10, 2025
@i2h3 i2h3 added the bug Something isn't working label Oct 10, 2025
@marinofaggiana marinofaggiana merged commit a68dfcd into main Oct 10, 2025
4 checks passed
@i2h3 i2h3 deleted the fix/lock-responses branch October 15, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants