edx-platform icon indicating copy to clipboard operation
edx-platform copied to clipboard

fix: save scroll position on exit from video xblock fullscreen mode

Open ihor-romaniuk opened this issue 2 years ago • 1 comments

This merge request contains a fix for toggling video xblock full-screen mode and saving the previous window top offset position on exit from the full-screen state.

A related bug was found here https://bugs.chromium.org/p/chromium/issues/detail?id=142427 but it still reproduces.

Realised solution: Save the scroll position before the turn on the fullscreen mode and scroll to the previous position on turn off the fullscreen mode.

Dependent PR to MFE Learning: This MR https://github.com/openedx/frontend-app-learning/pull/982 must be merged with this MR.

ihor-romaniuk avatar Sep 28 '22 15:09 ihor-romaniuk

Thanks for the pull request, @ihor-romaniuk! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

openedx-webhooks avatar Sep 28 '22 15:09 openedx-webhooks

Hi @ihor-romaniuk! Just checking in on this to see if you are planning to pursue, and re-run the failing tests?

mphilbrick211 avatar Dec 16 '22 17:12 mphilbrick211

Hi @mphilbrick211. I'm not sure that my changes have affected some python code and their checkers. We have errors with unsuccess installing python packages.

ihor-romaniuk avatar Dec 27 '22 18:12 ihor-romaniuk

Hi @ProductRyan! Have you had a chance to review this?

mphilbrick211 avatar Feb 07 '23 19:02 mphilbrick211

@jmakowski1123 @ProductRyan looks like the roadmap ticket is closed - is product review done?

mphilbrick211 avatar Feb 24 '23 02:02 mphilbrick211

@jmakowski1123 @ProductRyan looks like the roadmap ticket is closed - is product review done?

Nevermind - I see it's listed under https://github.com/openedx/platform-roadmap/issues/229

mphilbrick211 avatar Feb 24 '23 02:02 mphilbrick211

Hi @ihor-romaniuk - would you mind taking a look at the failing tests? Thanks!


General Note: 4/5/23 - Product review complete.

@openedx/content-aurora @mattcarter - is this something you can take a look at for review / merge? This PR is related to the other "scroll position" PRs listed here: #31053.

mphilbrick211 avatar Apr 05 '23 14:04 mphilbrick211

Hi @mphilbrick211. I'm not sure that I need to fix this failed tests in my PR because it doesn't connect to my changes.

ihor-romaniuk avatar May 05 '23 08:05 ihor-romaniuk

Hi @ihor-romaniuk - I think all checks need to be green regardless in order to merge.

@openedx/content-aurora @mattcarter - Hi there! Just seeing if you are able to review/merge this for us? Thanks!

mphilbrick211 avatar May 05 '23 19:05 mphilbrick211

Hi @ihor-romaniuk! Just checking to see if you will be re-running the failing tests?

mphilbrick211 avatar May 10 '23 18:05 mphilbrick211

Hi @ihor-romaniuk! Just checking to see if you will be re-running the failing tests?

Hi @ihor-romaniuk - checking back in on this.

mphilbrick211 avatar Jun 01 '23 18:06 mphilbrick211

Hi @mphilbrick211 I have no idea why python checkers fall because I do nothing with this code. I have tried to rerun them, but the result was the same. Maybe someone can help us with it?

ihor-romaniuk avatar Jul 06 '23 09:07 ihor-romaniuk

Hi @mphilbrick211 I have no idea why python checkers fall because I do nothing with this code. I have tried to rerun them, but the result was the same. Maybe someone can help us with it?

@e0d - would you be able to shed some light on this?

mphilbrick211 avatar Jul 11 '23 14:07 mphilbrick211

@ihor-romaniuk If the target branch (openedx:open-release/maple.master) has changed since you last pushed your changes, perhaps you could try rebasing and pushing them again?

CC @mphilbrick211 -- I came here from https://github.com/openedx/frontend-app-learning/pull/982 which @leangseu-edx pointed out should be merged together with this PR.

Also CC @e0d, in case you have additional comments about why tests might be failing here.

itsjeyd avatar Jul 26 '23 08:07 itsjeyd

I tried to update it again, but the error is still there.

ihor-romaniuk avatar Jul 28 '23 15:07 ihor-romaniuk

I tried to update it again, but the error is still there.

@itsjeyd @e0d flagging this.

mphilbrick211 avatar Aug 02 '23 13:08 mphilbrick211

@mphilbrick211 @ihor-romaniuk I'm not sure what's going on with the first check (CI / check migrations) -- there's no command line output to check for specific errors under Details.

However, all the other failing checks seem to be caused by the same issue:

Obtaining file:///runner/_work/edx-platform/edx-platform/common/lib/capa (from -r requirements/edx/testing.txt (line 7))
Obtaining codejail==3.1.3 from git+https://github.com/edx/[email protected]#egg=codejail==3.1.3 (from -r requirements/edx/testing.txt (line 11))
  WARNING: git clone in /edx/app/edxapp/venvs/edxapp/src/codejail exists with URL https://github.com/openedx/codejail.git
  WARNING: The plan is to install the git repository https://github.com/edx/codejail.git
ERROR: Exception:
Traceback (most recent call last):
 ...
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 247, in ask
    response = input(message)
EOFError: EOF when reading a line

Something's going wrong when trying to install codejail from https://github.com/edx/codejail.

Based on a brief look, the codejail repo doesn't exist at this URL anymore; https://github.com/edx/codejail redirects to https://github.com/openedx/codejail. Maybe that's why the installation step fails?

@ihor-romaniuk You could try updating requirements to point to the new URL for codejail and see if that helps.

CC @e0d in case you have any additional pointers here.

itsjeyd avatar Aug 08 '23 08:08 itsjeyd

Closed due to outdated edx version and no need for these changes. Related MR also closed https://github.com/openedx/frontend-app-learning/pull/982.

ihor-romaniuk avatar Aug 29 '23 14:08 ihor-romaniuk

@ihor-romaniuk Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

openedx-webhooks avatar Aug 29 '23 14:08 openedx-webhooks