DBLayer proxy should be able to return original hash of Model instance

Bug #1560369 reported by Dima Shulyak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solar
Fix Released
Medium
Dima Shulyak

Bug Description

In refactoring of db usage in graph module we need to use hash of original Task instance to be able to use this instance as a node
in networkx.Graph data structure.

Dima Shulyak (dshulyak)
Changed in solar:
milestone: none → 0.3.0
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to solar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/295675

Changed in solar:
assignee: nobody → Dima Shulyak (dshulyak)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solar (master)

Reviewed: https://review.openstack.org/295675
Committed: https://git.openstack.org/cgit/openstack/solar/commit/?id=8f1ca9708ae63597db779477a2b76da28b671932
Submitter: Jenkins
Branch: master

commit 8f1ca9708ae63597db779477a2b76da28b671932
Author: Dmitry Shulyak <email address hidden>
Date: Tue Mar 22 10:44:49 2016 +0200

    Use WeakValueDictionary instead of WeakSet in DBModelProxy

    Current implementation of DBModelProxy doesnt allow to use
    origin hash function of Model class.

    In order to avoid this problem we will store references to
    Model instances in WeakValueDictionary instead of WeakSet.

    Change-Id: If92af140c9aaad3a46b24872dae16969b1090df8
    Closes-Bug: 1560369

Changed in solar:
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.