Skip to content

Conversation

@Waleed-Mujahid
Copy link

@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
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
Author

@Agrendalath Done

@Waleed-Mujahid
Copy link
Author

@Agrendalath @farhaanbukhsh Any feedback on this PR?

@Agrendalath
Copy link
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
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

import logging
import textwrap
from io import StringIO
from urllib.parse import urljoin
Copy link
Member

@Agrendalath Agrendalath Jan 9, 2026

Choose a reason for hiding this comment

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

Suggested change

Nit: urljoin is not needed anymore.

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