Automattic / Automattic/simplenote-ios
Deleted Property Collision
- Dominant language
- Swift
- Stars
- 2.2k
- Forks
- 297
- Avg merge
- 13h 25m
- Merged PRs (30d)
- 6
Description
Xcode 6.3 is printing out a collision between the `Note` entity's `deleted` attribute, and `NSManagedObject`'s `deleted` property.
Simplenote overrides `NSManagedObject`'s `deleted` getter, which is used internally by CoreData to mark entities for deletion, next time _save_ is executed.
Let's investigate + implement a safe workaround.

The cleanest workaround to fix this issue, is to preserve the remote attribute name (deleted), and map it into a different local attribute.
Let's first implement the appropiate Simperium Mechanism first.
Contributor guide
Research direction
Start by tracing the Simperium mechanism for the Note entity and inspect how its deleted attribute is mapped. Confirm how NSManagedObject uses deleted during save, then implement the mapping that preserves the remote name while using a different local attribute. Done means the collision is resolved without breaking Core Data deletion behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100