Closed zacharis278 closed 1 year ago
Base: 97.80% // Head: 97.80% // Decreases project coverage by -0.00%
:warning:
Coverage data is based on head (
492d978
) compared to base (78cabcf
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
I'm running into two problems with this check when this code is run in edx-exams. Location isn't required on this model so location.course_key may fail but more importantly
database_config_enabled
can only run in the LMS. Checking if location exists first would technically fix this since a location implies this is running in the LMS (for now) but I'm coming to the conclusion that this check should probably not exist here.All other instances of
database_config_enabled
occur within the lti_xblock.py which is totally fine to call into the LMS compatibility layer but baking this function into the data model feels like something that will catch us again later. The waffle flag already gates the UI behavior, do we really need this check on the model also?Let know if I'm missing some good arguments for keeping this in, otherwise I propose we remove it.