Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collection_timestamp on an empty collection get updated at each request with postgresql backend. #433

Closed
Natim opened this issue Feb 10, 2016 · 2 comments
Assignees
Milestone

Comments

@Natim
Copy link
Member

Natim commented Feb 10, 2016

Reproduce:

  http GET https://kinto-server.scalingo.io/v1/buckets/default/collections/certificates/records --auth token:my-secret
  Etag: "1455109382839"

  http GET https://kinto-server.scalingo.io/v1/buckets/default/collections/certificates/records --auth token:my-secret
  Etag: "1455109385100"
@Natim Natim added the bug label Feb 10, 2016
@almet
Copy link
Member

almet commented Feb 10, 2016

The problem seems to come from this line in the psql backend, which takes the greatest value between records timestamp and the current datetime.

We should take the last_modified value of the collection?

@almet
Copy link
Member

almet commented Feb 10, 2016

Actually, we would need to set the timestamp during the creation of the collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants