Skip to content

refactor: Remove parsel dependency and fix other issues#228

Merged
Agrendalath merged 6 commits into
openedx:masterfrom
edly-io:waleed/fix-197
Jan 16, 2026
Merged

refactor: Remove parsel dependency and fix other issues#228
Agrendalath merged 6 commits into
openedx:masterfrom
edly-io:waleed/fix-197

Conversation

@Waleed-Mujahid
Copy link
Copy Markdown
Contributor

@Waleed-Mujahid Waleed-Mujahid commented Nov 24, 2025

Description

  • Replaced the _change_relative_url_to_absolute method with _replace_relative_static_urls to utilize a service for URL replacement.
  • Updated JavaScript to notify runtime on save completion. Otherwise the edit box reopens after saving.
  • Removed parsel from requirements to avoid issues.
  • Render icons inside LmS as well

Fixes: #197

@Waleed-Mujahid Waleed-Mujahid mentioned this pull request Nov 24, 2025
@Agrendalath
Copy link
Copy Markdown
Member

@Waleed-Mujahid, I just updated the deps in this repo. Could you please rebase your PR on the latest version of the master branch?

…plorerBlock

- Replaced the `_change_relative_url_to_absolute` method with `_replace_relative_static_urls` to utilize a service for URL replacement.
- Updated JavaScript to notify runtime on save completion.
- Removed parsel from requirements as it is no longer needed.
- Upgraded various dependencies in requirements files.
These buttons need to be loaded in both lms and studio
explanation:
openedx#83 (comment)
@Waleed-Mujahid
Copy link
Copy Markdown
Contributor Author

@Agrendalath Done

@Waleed-Mujahid
Copy link
Copy Markdown
Contributor Author

@Agrendalath @farhaanbukhsh Any feedback on this PR?

@Agrendalath
Copy link
Copy Markdown
Member

Hi @Waleed-Mujahid, I will test this later this week. In the meantime, could you please update the minor version when you have a moment?

Copy link
Copy Markdown
Member

@Agrendalath Agrendalath left a comment

Choose a reason for hiding this comment

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

@Waleed-Mujahid, sorry for the delay on this review. Please bump the version to 3.1.0.

👍

  • I tested this: checked that the XBlock can be installed in Teak, and replaces the relative links correctly
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation: n/a

Comment thread image_explorer/image_explorer.py Outdated
@Waleed-Mujahid
Copy link
Copy Markdown
Contributor Author

@Agrendalath I have bumped the version and removed unused deps. You can merge this

@Agrendalath Agrendalath merged commit 6026c80 into openedx:master Jan 16, 2026
10 checks passed
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.

Remove Parsel

2 participants