-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Segregate the mongo db config from the modulestore config #1240
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need mongo_options? Should they go into the db_store_config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think the mongo_options should be in the doc_store_config.
|
Other than minor comments, 👍 |
as a first step to separating db connection from modeling and to support location mapper and contentstore using same db config as modulestore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpennington here's the replacement of mongo_options with doc_store_config using a nice pattern @singingwolfboy suggested (also in split.py)
|
@e0d waiting for your 👍 👎 note, if your yaml used 'mongo_options', move those fields to DOC_STORE_CONFIG |
|
+1 |
Segregate the mongo db config from the modulestore config
Revert "Merge pull request #1240 from edx/dhm/config_separation"
…on"" This reverts commit a517dc2.
…on"" This reverts commit a517dc2.
Revert "Revert "Merge pull request #1240 from edx/dhm/config_separation"...
* Fix enrollment_date for paid course openedx#1240 * Implements ga-self-paced for Studio openedx#1240 * Implements ga-self-paced courseware openedx#1240 * Fix review
) * Change Studio background color for self-paced openedx#1240 * Fix review
* Logs added to get status_code from forums * Updated comment * reverted to original state * Code intended * pep8 standards followed
…enedx#1254) This reverts commit df95839.
as a first step to separating db connection from modeling
and to support location mapper and contentstore using same db config as modulestore
@e0d please review
@chrisndodge @cpennington please review. Ed wanted to complete my separation of the db config from the modulestore config; so, rather than having the modulestore config as a subset of the db config, I separated them
and pass the db config as a dict instead of kwargs to modulestore inits.