Closed
Bug 982584
Opened 12 years ago
Closed 10 years ago
Update middleware list of services to allow a default implementation
Categories
(Socorro Graveyard :: Middleware, defect)
Socorro Graveyard
Middleware
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: adrian, Unassigned)
Details
We currently use the ``service_overrides`` option to set default implementations for our services. That feels wrong, and as Peter suggested, we should instead add a third element to our list of services to accept a default implementation value.
The ``service_overrides`` option would be empty by default, and used only to override a service's implementation when needed (for example using elasticsearch for the Search service instead of the default postgres).
Comment 1•12 years ago
|
||
Yay!
It would basically be this:
# in middleware_app.py
for info in SERVICES_LIST:
if len(info) == 3:
path, class_, module = info
else:
path, class_ = info
module = 'socorro.external.postgresql'
right?
Comment 2•10 years ago
|
||
This is not a need any more. We've moved almost all services out of the middleware to direct implementation calls in the webapp.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
| Assignee | ||
Updated•10 years ago
|
Product: Socorro → Socorro Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•