Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Fix PG behaviour when specifying timestamps in the past #665

Merged
merged 7 commits into from
Feb 26, 2016

Conversation

leplatrem
Copy link
Contributor

I rewrote cleanly 4 four tests for storage backends:

  • create with timestamp specified in future and past
  • update with timestamp specified in future and past

I fixed the migrations of PR #604

And I updated the migration of PR #649 to fix the behaviour of PG for collection timestamps when specified record timestamp were in the past.

In PR #604, we updated the schema, but didn't bump its version. As a consequence, the migrations
were never executed.

In PR #649, we replaced the orphan migration with a new one about collection timestamps.

This commit restores the migration of #604 and puts the one of #649 into a new one.
It had a different behaviour than other backends.
@leplatrem leplatrem force-pushed the fix-behaviour-specified-timestamps branch from 54195d5 to 01157f8 Compare February 23, 2016 11:36
@Natim
Copy link
Contributor

Natim commented Feb 23, 2016

I don't understand why you had to modify the 008_to_009 migration file. However it looks good to me.

@leplatrem
Copy link
Contributor Author

I don't understand why you had to modify the 008_to_009 migration file

In PR #604, we updated the SQL schema, but didn't bump its version. As a consequence, the migration 008-009 was never executed.

In PR #649, I replaced the orphan migration file 008-009 with a new one about collection timestamps (my fault).

This PR restores the migration of #604 on 008-009 and puts the one of #649 into a new one 009-010.

@Natim
Copy link
Contributor

Natim commented Feb 23, 2016

Ok makes sense 👍

``last_modified`` attribute.

The specified value will be ignored if it is less than the current collection
timestamp.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incorrect statement.

@Natim
Copy link
Contributor

Natim commented Feb 26, 2016

r+

Natim added a commit that referenced this pull request Feb 26, 2016
…-timestamps

Fix PG behaviour when specifying timestamps in the past
@Natim Natim merged commit 9ce99d9 into master Feb 26, 2016
@Natim Natim deleted the fix-behaviour-specified-timestamps branch February 26, 2016 10:51
@Natim Natim removed the in progress label Feb 26, 2016
@leplatrem leplatrem modified the milestone: 3.0.0 Feb 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants