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

fix: do not use the runtime.replace_urls when the runtime is not ready #349

Merged
merged 1 commit into from
May 30, 2023

Conversation

Agrendalath
Copy link
Member

@Agrendalath Agrendalath commented May 26, 2023

This happens while generating the Block Structures.

Please see the description of openedx/xblock-drag-and-drop-v2#318 for a detailed explanation of this scenario. Unlike that change, this one is backward-compatible with Maple. I didn't switch this XBlock to the replace_urls runtime service because it will require more changes - therefore, it makes more sense to schedule a separate task to remove all deprecated runtime attributes from here in one pass and perform detailed regression tests. This one is only a simple fix.

This happens while generating the Block Structures.
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Patch coverage: 33.33% and no project coverage change.

Comparison is base (ee42f36) 45.08% compared to head (8f1a13d) 45.08%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #349   +/-   ##
=======================================
  Coverage   45.08%   45.08%           
=======================================
  Files          40       40           
  Lines        3309     3309           
  Branches      463      463           
=======================================
  Hits         1492     1492           
  Misses       1769     1769           
  Partials       48       48           
Flag Coverage Δ
unittests 45.08% <33.33%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
problem_builder/mixins.py 70.00% <0.00%> (ø)
problem_builder/__init__.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

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

Thanks!

@Agrendalath Agrendalath merged commit 530248d into master May 30, 2023
@Agrendalath Agrendalath deleted the agrendalath/fix_block_structures branch May 30, 2023 09:28
@bradenmacdonald
Copy link
Member

@Agrendalath Can you please tag a release so this gets onto PyPI?

@Agrendalath
Copy link
Member Author

@bradenmacdonald, done. Thanks for the reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants