Skip to content

Disable mongo debug pannel on django debug toolbar - #545

Merged
melvinsoft merged 2 commits into
appsembler/tahoe/developfrom
maxi/disable-mongo-debug-panel
Mar 19, 2020
Merged

Disable mongo debug pannel on django debug toolbar#545
melvinsoft merged 2 commits into
appsembler/tahoe/developfrom
maxi/disable-mongo-debug-panel

Conversation

@melvinsoft

Copy link
Copy Markdown

This panel is already disabled in the CMS because it breaks every mongo query, but it still enabled in the LMS, since the LMS doesn't need to query mongo.

Working on the course import feature, now we need to the course import function from the LMS, and it started to break.

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on the course import feature, now we need to the course import function from the LMS, and it started to break.

Thanks for the fix @melvinsoft. I don't think this is a good idea to do course import from within the LMS. It should be possible to run CMS Celery tasks from within the LMS. Open edX LMS is not supposed to do any writes to MongoDB. Even if it works it's prune to errors.

Comment thread lms/envs/devstack.py Outdated
Co-Authored-By: Omar Al-Ithawi <i@omardo.com>
@melvinsoft

Copy link
Copy Markdown
Author

@thraxil @OmarIthawi Thanks for your review! @OmarIthawi Let's discuss the course import approach in the other PR, I still believe is the best way to go.

@melvinsoft
melvinsoft merged commit 8c81410 into appsembler/tahoe/develop Mar 19, 2020
@melvinsoft
melvinsoft deleted the maxi/disable-mongo-debug-panel branch March 19, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants