BackupMeta and TableMeta are not serializable

Bug #1416388 reported by Andrii Ostapenko
6
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-ed73-4905-bbdd-7e4ad770619a') is not JSON serializable

Changed in magnetodb:
milestone: none → kilo-2
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnetodb (master)

Reviewed: https://review.openstack.org/151618
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=70cd3ded4fa549cd169933ec8f25ecf2986df916
Submitter: Jenkins
Branch: master

commit 70cd3ded4fa549cd169933ec8f25ecf2986df916
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
    Change-Id: Iabd17eced19d5e9b4ee61350671731d19d1e89dd

Changed in magnetodb:
status: New → Fix Committed
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.
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.