couchgrid selected_records property is buggy and should be removed for karmic if possible
Bug #448357 reported by
Rick Spencer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
desktopcouch |
Fix Released
|
Undecided
|
Rick Spencer | ||
desktopcouch (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The property is merely constructing a Record from the id, and not populating the record fully from the database:
rec = self.database.
This is completely wrong and stupid. There is an easy workaround, as the selected_record_ids property works as expected and those ids can be used to retrieve records from the database.
Note that records can be added to the grid with an id "", and not saved to the database, which can happen if rows are appended with auto_save = False.
Proposed solution is to remove this property until it can be properly thought out and coded.
Related branches
lp:~rick-rickspencer3/desktopcouch/remove_buggy_prop_from_couchgrid
Merged
into
lp:desktopcouch
- Mark G. Saye (community): Approve
- Stuart Langridge (community): Approve
-
Diff: 75 lines2 files modifieddesktopcouch/records/couchgrid.py (+1/-18)
desktopcouch/records/tests/test_couchgrid.py (+21/-0)
Changed in desktopcouch: | |
assignee: | nobody → Rick Spencer (rick-rickspencer3) |
Changed in desktopcouch: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This fix was a simple deletion, which is available in the attached branch