Support record type version

Bug #669133 reported by Vincenzo Di Somma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Wishlist
Vincenzo Di Somma
desktopcouch (Ubuntu)
Fix Released
Wishlist
Vincenzo Di Somma

Bug Description

We want to support record type version so the record schema can evolve an the applications know what to expect from a given record.

Related branches

Vincenzo Di Somma (vds)
Changed in desktopcouch:
assignee: nobody → Vincenzo Di Somma (vds)
status: New → In Progress
Revision history for this message
Eric Casteleijn (thisfred) wrote :

looks great. tests pass

Vincenzo Di Somma (vds)
Changed in desktopcouch:
status: In Progress → Fix Committed
Changed in desktopcouch:
milestone: none → 1.0
Revision history for this message
Eric Casteleijn (thisfred) wrote :

The record_type_version is not set to anything that is saved to couch, so both the tests and the code are currently broken.

To fix: add a test that creates a record with a record_type_version, save it to the database, retrieve the record from the database as json, assert that the record_type_version is in there, and holds the expected value.

Also, I am suddenly wondering if the whole version number isn't a yagni, now that we're adding the automatic migration scripts to deal with older data.

Changed in desktopcouch:
status: Fix Committed → In Progress
Changed in desktopcouch:
status: In Progress → Fix Committed
Changed in desktopcouch (Ubuntu):
status: New → In Progress
assignee: nobody → Vincenzo Di Somma (vds)
Changed in desktopcouch:
importance: Undecided → Wishlist
Changed in desktopcouch (Ubuntu):
importance: Undecided → Wishlist
milestone: none → natty-alpha-1
Changed in desktopcouch (Ubuntu):
milestone: natty-alpha-1 → natty-alpha-2
Changed in desktopcouch:
status: Fix Committed → Fix Released
Changed in desktopcouch (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.