BackupMeta and TableMeta are not serializable
Bug #1416388 reported by
Andrii Ostapenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
Fix Released
|
Medium
|
Andrii Ostapenko |
Bug Description
BackupMeta and TableMeta contain fields with uuid.UUID and datetime.datetime objects, however BaseModel.to_json method does not know how to serialize this fields. So while debugging and trying to check this object we get an error:
*** TypeError: UUID('ccaeb4ed-
Changed in magnetodb: | |
milestone: | none → kilo-2 |
importance: | Undecided → Medium |
Changed in magnetodb: | |
assignee: | nobody → Andrei V. Ostapenko (aostapenko) |
Changed in magnetodb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/151618 /git.openstack. org/cgit/ stackforge/ magnetodb/ commit/ ?id=70cd3ded4fa 549cd169933ec8f 25ecf2986df916
Committed: https:/
Submitter: Jenkins
Branch: master
commit 70cd3ded4fa549c d169933ec8f25ec f2986df916
Author: Andrei V. Ostapenko <email address hidden>
Date: Fri Jan 30 14:25:24 2015 +0200
Fixes bug with model serialization
Also fixes model deserialization
Closes-bug: #1416388 9b4ee6135067173 1d19d1e89dd
Change-Id: Iabd17eced19d5e