Dependency Injection always injects optional after import

Bug #1295280 reported by Morgan Fainberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Won't Fix
Low
Kent Wang

Bug Description

Dependency Injection is currently always loading optional dependencies because they are registered in a _factories list on import, this list is never cleared. While in practice production wont see this issue, however, for test cases this is a broken mechanic. Tests cannot clear the _Factories list because import only occurs once.

Changed in keystone:
importance: Undecided → Medium
importance: Medium → Low
status: New → Confirmed
status: Confirmed → Triaged
Kent Wang (k.wang)
Changed in keystone:
assignee: nobody → Kent Wang (k.wang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: Triaged → In Progress
Revision history for this message
David Stanek (dstanek) wrote :

Optional dependencies are going away soon: https://review.openstack.org/#/c/162770/

Changed in keystone:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by David Stanek (<email address hidden>) on branch: master
Review: https://review.openstack.org/186571
Reason: Abandoned due to inactivity

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.