Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes bug 681112 - Reorganize middleware #136

Merged
merged 13 commits into from Nov 24, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 37 additions & 9 deletions scripts/config/webapiconfig.py.dist
Expand Up @@ -30,13 +30,6 @@ wsgiInstallation = cm.Option()
wsgiInstallation.doc = 'True or False, this app is installed under WSGI'
wsgiInstallation.default = True

# Implementation class for the Search API
# Can be socorro.search.elasticsearch.ElasticSearchAPI or socorro.search.postgresql.PostgresAPI
searchImplClass = cm.Option()
searchImplClass.doc = 'String, the name of the class that implement the Search API.'
searchImplClass.default = 'socorro.search.postgresql.PostgresAPI'
searchImplClass.fromStringConverter = cm.classConverter

# Elastic Search configuration
elasticSearchHostname = cm.Option()
elasticSearchHostname.doc = 'String containing the URI of the Elastic Search instance.'
Expand All @@ -46,6 +39,23 @@ elasticSearchPort = cm.Option()
elasticSearchPort.doc = 'String containing the port on which calling the Elastic Search instance.'
elasticSearchPort.default = '9200'

#---------------------------------------------------------------------------
# Configuration for middleware services

# Default implementation class for the Middleware services implementations
# If a module doesn't define it's own value, use that one.
# Can be socorro.external.elasticsearch or socorro.external.postgresql
serviceImplementationModule = cm.Option()
serviceImplementationModule.doc = ("String, name of the default module that "
"services use.")
serviceImplementationModule.default = "socorro.external.postgresql"

# Search service config
searchImplementationModule = cm.Option()
searchImplementationModule.doc = ("String, name of the module the search "
"service uses.")
searchImplementationModule.default = 'socorro.external.postgresql'

searchMaxNumberOfDistinctSignatures = cm.Option()
searchMaxNumberOfDistinctSignatures.doc = (
"Integer containing the maximum allowed number of distinct signatures "
Expand All @@ -65,15 +75,33 @@ import socorro.services.emailCampaignVolume as emailvolume
import socorro.services.emailSubscription as emailsub
import socorro.services.emailSender as emailsend
import socorro.services.schedulePriorityJob as schedule
import socorro.services.search as search
import socorro.services.bugzilla as bugzilla
import socorro.services.currentVersions as cv
import socorro.services.versions_info as vi
import socorro.services.hangReport as hr
import socorro.middleware.search_service as search

servicesList = cm.Option()
servicesList.doc = 'a python list of classes to offer as services'
servicesList.default = [search.Search, tcbst.TopCrashBySignatureTrends, sighist.SignatureHistory, adubd.AduByDay, adudetails.AduByDayDetails, crash.GetCrash, emailcampaign.EmailCampaign, emailcreate.EmailCampaignCreate, emaillist.EmailCampaigns, emailvolume.EmailCampaignVolume, emailsub.EmailSubscription, emailsend.EmailSender, schedule.SchedulePriorityJob, bugzilla.Bugzilla, cv.CurrentVersions, vi.VersionsInfo, hr.HangReport]
servicesList.default = [
tcbst.TopCrashBySignatureTrends,
sighist.SignatureHistory,
adubd.AduByDay,
adudetails.AduByDayDetails,
crash.GetCrash,
emailcampaign.EmailCampaign,
emailcreate.EmailCampaignCreate,
emaillist.EmailCampaigns,
emailvolume.EmailCampaignVolume,
emailsub.EmailSubscription,
emailsend.EmailSender,
schedule.SchedulePriorityJob,
bugzilla.Bugzilla,
cv.CurrentVersions,
vi.VersionsInfo,
hr.HangReport,
search.Search,
]

crashBaseUrl = cm.Option()
crashBaseUrl.doc = 'The base url for linking to crash-stats. This will be used in email templates'
Expand Down
File renamed without changes.
Empty file.