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

Catch and retry video module YT IFrame API ready errs #1361

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

bryanlandia
Copy link

Change description

Retry setting window.onYouTubeIframeAPIReady.resolve to JQuery Deferred obj .resolve
up to 3 times before finally failing
Log err message to console
Catch and retry only TypeErrors which should result from .resolve TypeError

This is direclty in edx-platform since I couldn't figure out how to
override in the theme due to the webpack bundling that is done directly
into VideoBlockPreview.js via add_webpack_to_fragment in video_module.py

Type of change

  • Bug fix (fixes an issue)
  • New feature (adds functionality)

Related issues

https://appsembler.atlassian.net/browse/ENG-97

Checklists

Development

  • Lint rules pass locally
  • Application changes have been tested thoroughly
  • Automated tests covering modified code pass

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

Code review

  • Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
  • "Ready for review" label attached and reviewers assigned
  • Changes have been reviewed by at least one other contributor
  • Pull request linked to task tracker where applicable

Retry setting window.onYouTubeIframeAPIReady.resolve to JQuery Deferred obj .resolve
up to 3 times before finally failing
Log err message to console
Catch and retry only TypeErrors which should result from .resolve TypeError

This is direclty in edx-platform since I couldn't figure out how to
override in the theme due to the webpack bundling that is done directly
into VideoBlockPreview.js via add_webpack_to_frament in video_module.py

ENG-97
@github-actions

This comment has been minimized.

@bryanlandia bryanlandia marked this pull request as ready for review July 20, 2023 01:28
@bryanlandia bryanlandia force-pushed the bugfix/ENG-97-catch-and-retry-yt-api-errs branch from 2411b51 to b1b3621 Compare July 20, 2023 17:37
@github-actions
Copy link

Checking git merge conflicts against https://github.com/edx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 299
Current conflicts 299
Summary Good work! No added conflicts.
Comparing with master
Benchmark conflicts with main 316
Current conflicts 316
Summary Good work! No added conflicts.
New conflicting files with 'master'
common/lib/xmodule/xmodule/js/src/video/01_initialize.js

2 similar comments
@github-actions
Copy link

Checking git merge conflicts against https://github.com/edx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 299
Current conflicts 299
Summary Good work! No added conflicts.
Comparing with master
Benchmark conflicts with main 316
Current conflicts 316
Summary Good work! No added conflicts.
New conflicting files with 'master'
common/lib/xmodule/xmodule/js/src/video/01_initialize.js

@github-actions
Copy link

Checking git merge conflicts against https://github.com/edx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 299
Current conflicts 299
Summary Good work! No added conflicts.
Comparing with master
Benchmark conflicts with main 316
Current conflicts 316
Summary Good work! No added conflicts.
New conflicting files with 'master'
common/lib/xmodule/xmodule/js/src/video/01_initialize.js

@bryanlandia bryanlandia merged commit ea61433 into main Jul 20, 2023
@bryanlandia bryanlandia deleted the bugfix/ENG-97-catch-and-retry-yt-api-errs branch July 20, 2023 17:59
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.

2 participants