Kinto / Kinto/kinto

Is it at all possible to use `collection_timestamp` in readonly mode?

Open
#1,498 2 comments 0 reactions 1 assignee Claimed by @leplatrem View on GitHub
enhancement question stale
Dominant language
Python
Stars
4.4k
Forks
438
Avg merge
1d 2h
Merged PRs (30d)
15

Description

Currently, the `collection_timestamp` method fails if the timestamp for a collection is requested on a readonly node and the timestamp doesn't exist. Are there other options besides failure here? Could we maybe fill in a default `TIMESTAMP_UNAVAILABLE` last_modified (maybe `INT_MIN`) and in this way allow calling code to continue to function with a fake but innocuous timestamp that will not cause data loss later?

/cc @bqbn

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.