Skip to content

Conversation

@ormsbee
Copy link
Contributor

@ormsbee ormsbee commented Jan 15, 2026

Ulmo backport of #37866

This commit updates the logic in the build_block_structure function to
ensure that block locations are consistently normalized by removing
branch and version information. This change addresses issues when
creating a BlockStructure from modulestore using the published_only
branch. Without this change, we end up comparing versioned keys to
unversioned ones later on, which always yields False.
Copy link
Contributor

@pdpinch pdpinch left a comment

Choose a reason for hiding this comment

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

👍 once tests pass

@ormsbee ormsbee changed the title fix: remove the branch/version while building BS fix: remove the branch/version while building BlockStructures Jan 15, 2026
@ormsbee
Copy link
Contributor Author

ormsbee commented Jan 15, 2026

FYI @marslanabdulrauf

@ormsbee ormsbee merged commit ea91c4c into openedx:release/ulmo Jan 15, 2026
49 checks passed
@ormsbee ormsbee deleted the backport-bs-versioned-fix branch January 15, 2026 02:43
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