Trash record id is not correctly generated
Bug #697636 reported by
Manuel de la Peña
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
desktopcouch |
Fix Released
|
Medium
|
Manuel de la Peña |
Bug Description
When a record is delete it is moved to a trash database. As with the put_record method, the id that is given to the record is provided by desktopcouch database. Unfortunatly the code at the moment uses the wrong id generation. The delete methods generates the trash record id the by executing 'str(uuid.uuid4())' when it should be using the base_n function provided in the same module.
Related branches
lp:~mandel/desktopcouch/mock_db_for_records
- Eric Casteleijn (community): Approve
- Vincenzo Di Somma (community): Approve
-
Diff: 726 lines (+561/-28)4 files modifieddesktopcouch/application/server.py (+2/-2)
desktopcouch/records/database.py (+39/-25)
desktopcouch/records/tests/test_mocked_server.py (+519/-0)
desktopcouch/records/tests/test_server.py (+1/-1)
Changed in desktopcouch: | |
assignee: | nobody → Manuel de la Pena (mandel) |
description: | updated |
Changed in desktopcouch: | |
status: | In Progress → Fix Committed |
Changed in desktopcouch: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.