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

Move inline JS to regular file + other small fixes #174

Merged
merged 11 commits into from
Jul 14, 2023
Merged

Conversation

benoit74
Copy link
Collaborator

@benoit74 benoit74 commented Jul 10, 2023

Rationale

  • Fix Remove inline javascript to comply with some CSP #168 + other small issues
  • Enhance logging around HTTP errors
  • Stop retrying HTTP errors since in most cases, the error is not transient + might lead to user ban
  • Replace the example course in README.md with another one in CC-BY-SA-NC (in order to avoid issues like what happened to youtube-dl)

Changes

  • add a Creative Commons sample EDX course
  • move all inline Javascript to standalone files to comply with some CSP
  • no more retry for login + HTTP errors
  • display HTTP error responses or save them in a temporary file for analysis
  • pin markupsafe until we upgrade Jinja2
  • fix issue with video that do not need to be re-encoded and were marked as missing

@benoit74 benoit74 requested a review from rgaudin July 10, 2023 13:10
@benoit74
Copy link
Collaborator Author

Same question as kolibri, should we release it as 1.1.0 as soon as this is merged ?

@benoit74 benoit74 force-pushed the small_fixes branch 3 times, most recently from 1c82b39 to 53af7ac Compare July 11, 2023 08:18
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

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

Thanks!!

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
openedx2zim/instance_connection.py Outdated Show resolved Hide resolved
openedx2zim/instance_connection.py Show resolved Hide resolved
openedx2zim/scraper.py Show resolved Hide resolved
requirements.txt Show resolved Hide resolved
openedx2zim/templates/assets/freetextresponse.js Outdated Show resolved Hide resolved
@benoit74 benoit74 requested a review from rgaudin July 13, 2023 06:37
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

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

LGTM ; thanks for #179

@benoit74 benoit74 merged commit 9a0d70b into main Jul 14, 2023
@benoit74 benoit74 deleted the small_fixes branch July 14, 2023 13:16
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 inline javascript to comply with some CSP
2 participants