Bug 1041794 - [RFE][glance]: Glance DB refactoring
Summary: [RFE][glance]: Glance DB refactoring
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/glan...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 19:21 UTC by RHOS Integration
Modified: 2015-03-19 17:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:28:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 19:21:09 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/glance/+spec/glance-db-refactoring.

Description:

Before we support more backend db. It's necessary to refactor to avoid replicating current faults to another potential new backends. Below is some items we can improve based on the discussion markwash and me.
1.  Remove Context to avoid stamp coupling.
2.  Expecting the db api to do business logic (like who can see what images)
3.  Using filter = {…} which is hard to use, makes monster functions, and doesn't cover all the cases we need, it should be replaced
4.  The interface is just silly, probably shouldn't be a module full of functions, rather something more OO, similar to the Repo and Models

Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.