Skip to content

Revert "fix: Stop rendering Visibility and Move buttons on libraries #26885)" - #27113

Merged
jansenk merged 1 commit into
masterfrom
jkantor/revert-777bb
Mar 23, 2021
Merged

jansenk merged 1 commit into
masterfrom
jkantor/revert-777bb

Conversation

@jansenk

@jansenk jansenk commented Mar 23, 2021 •

Copy link
Copy Markdown
Contributor

@mattcarter mattcarter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved

@jnlapierre jnlapierre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. There were no failures.

@jansenk
jansenk merged commit 23443c4 into master Mar 23, 2021
@jansenk
jansenk deleted the jkantor/revert-777bb branch March 23, 2021 15:35
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@jansenk @ormsbee Ah, sorry about that.

There's no problem with this change but we will need to make some changes to ORA.

I'm curious what the issue was? We'd be happy to help with the fix if you'd like.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

@jansenk

jansenk commented Mar 23, 2021 •

Copy link
Copy Markdown
Contributor Author

@jansenk @ormsbee Ah, sorry about that.

There's no problem with this change but we will need to make some changes to ORA.

I'm curious what the issue was? We'd be happy to help with the fix if you'd like.

I'm not super familiar with the generic xblock api, but the xblock.course_id was expected to return a CourseKey object.
openassessmentblock.py overrides the course_id property to return a string.
to be honest, i'm surprised this has never caused an issue before.
I checked, and every other problem/block type returns a key object, ORA seems to be the only "incorrect" one I could find

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@jansenk That makes sense. I realized after we merged the PR that block.course_id is a bit non-standard and according to the generic XBlock API we should really be using block.scope_ids.usage_id.context_key - though since that's long and ugly it doesn't get used as often. I think swapping that in will fix this and avoid this issue with ORA.

@jansenk

jansenk commented Mar 23, 2021

Copy link
Copy Markdown
Contributor Author

@bradenmacdonald that sounds good! i'm on it

jansenk added a commit that referenced this pull request Mar 23, 2021
jansenk added a commit that referenced this pull request Mar 24, 2021
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (#26885)" (#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id
samuelallan72 pushed a commit to open-craft/openedx-platform that referenced this pull request Mar 26, 2021
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id

(cherry picked from commit 2379f1c)
shimulch pushed a commit to open-craft/openedx-platform that referenced this pull request Mar 26, 2021
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id

(cherry picked from commit 2379f1c)
shimulch pushed a commit to open-craft/openedx-platform that referenced this pull request Mar 26, 2021
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id

(cherry picked from commit 2379f1c)
0x29a pushed a commit to open-craft/openedx-platform that referenced this pull request Apr 20, 2021
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id

(cherry picked from commit 2379f1c)
Waleed-Mujahid pushed a commit to edly-io/edx-platform that referenced this pull request Oct 6, 2025
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id
Waleed-Mujahid added a commit to edly-io/edx-platform that referenced this pull request Oct 13, 2025
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (openedx#26885)" (openedx#27113)"

This reverts commit 23443c4.

* fix: change method of accessing course id

Co-authored-by: Jansen Kantor <[email protected]>
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.

6 participants