Skip to content

Fix bug that reset timestamp of record when sharing.#278

Merged
mbrandonw merged 6 commits into
mainfrom
fix-sharing-timestamp
Oct 28, 2025
Merged

Fix bug that reset timestamp of record when sharing.#278
mbrandonw merged 6 commits into
mainfrom
fix-sharing-timestamp

Conversation

@mbrandonw
Copy link
Copy Markdown
Member

Right now we accidentally reset the userModificationTime on a record's metadata when it is shared because the share(record:) method is only dealing with a system fields CKRecord. So let's go ahead and fetch the full record when sharing so that we have the most recent timestamps.

│ ) │
└────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────────────────────┬───
│ CKRecord( │ 0 │
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Previously this test would have snapshot -1 for the timestamp.

@mbrandonw mbrandonw merged commit 6cc1cfb into main Oct 28, 2025
9 of 10 checks passed
@mbrandonw mbrandonw deleted the fix-sharing-timestamp branch October 28, 2025 17:31
bok- pushed a commit to bok-/sqlite-data-with-traits that referenced this pull request Dec 15, 2025
* Fix bug that reset timestamp of record when sharing.

* wip

* Clean up'

* clean up

* wip

* test
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