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

olive-testing TC_AUTHOR_53: all text block types #208

Closed
5 of 6 tasks
ARMBouhali opened this issue Oct 24, 2022 · 14 comments
Closed
5 of 6 tasks

olive-testing TC_AUTHOR_53: all text block types #208

ARMBouhali opened this issue Oct 24, 2022 · 14 comments
Assignees
Labels
bug Report of or fix for something that isn't working as intended release testing Affects the upcoming release (attention needed)
Milestone

Comments

@ARMBouhali
Copy link

ARMBouhali commented Oct 24, 2022

Passing tests:

  • Text
  • Announcement
  • Anonymous User ID
  • IFrame Tool
  • Raw HTML
  • Zooming Image Tool 🔴 cross-tested by @DeanJayMathew
@ARMBouhali
Copy link
Author

ARMBouhali commented Oct 24, 2022

  • IFrame Tool : sometimles not loading content. instead a few characters appear at the top-left of the iframe:

Screenshot from 2022-10-24 17-36-58

@ARMBouhali
Copy link
Author

ARMBouhali commented Oct 24, 2022

  • Zooming Image Tool: Magnifier not showing in LMS.
  1. Mouse cursor is pointer (like for links).
  2. Clicking on the image opens it in a new tab.

Update 1: The component works in Studio perfectly. The issue happens only in LMS.
I've tested the block alone in a single unit and I'm getting the following browser console error:

Uncaught ReferenceError: JavascriptLoader is not defined
at block-v1:edX+DemoX+Demo_Course+type@vertical+block@50d100ba01dc4b47a17d0986f36bd106?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view:329:1

@ARMBouhali ARMBouhali changed the title olive-testing TC_AUTHOR_50: all text block types olive-testing TC_AUTHOR_53: all text block types Oct 24, 2022
@DeanJayMathew
Copy link

@ARMBouhali for me the zooming image tool is also not working in the LMS view.

@ARMBouhali
Copy link
Author

ARMBouhali commented Nov 30, 2022

@ARMBouhali for me the Iframe is working

@dean The iframe is probably working as you have seen but the default xBlock iframe content is probably what's not loading consistently (sometimes loaded, most of the time not loading).
Can anyone please confirm that?

@arbrandes arbrandes added this to the Olive.1 milestone Dec 6, 2022
@arbrandes arbrandes added bug Report of or fix for something that isn't working as intended release testing Affects the upcoming release (attention needed) labels Dec 6, 2022
@arbrandes arbrandes moved this from In progress to Blocked in Build-Test-Release Working Group Dec 6, 2022
@DeanJayMathew
Copy link

@ARMBouhali the iFrame issue is displaying correctly for me (please see Studio and LMS view:

screencapture-apps-olive-demo-overhang-io-learning-course-course-v1-edX-DemoX-Demo-Course-block-v1-edX-DemoX-Demo-Course-type-sequential-block-eac257a9346f451fbc5ea3acbb6d8c28-block-v1-edX-DemoX-Demo-Course-type-vertical-block-e5b120d78b7e4
screencapture-studio-olive-demo-overhang-io-container-block-v1-edX-DemoX-Demo-Course-type-vertical-block-e5b120d78b7e467d85a45a70af5435d3-2022-12-07-10_25_12

@ARMBouhali
Copy link
Author

ARMBouhali commented Dec 7, 2022

@DeanJayMathew When I do duplicates of the same block, the iframe content randomly loads or not.
What I think:

  • Either there is a throttle rate on the iframe source from edx.org, which makes it appear inconsistently.
  • Or this error with HTTP iframe options is the source of the problem.
    image

The iframe is an old reliable HTTP concept we cannot blame, so there are 3 possibilities I see ahead:

  • We agree that the block works regardless of the issue with the iframe source.
  • We ask edx.org people if they can fix iframe options for eulerLineDemo.html then retry after that.
  • We test the same eulerLineDemo.html as part of edx-platform or as a course upload, or wherever CORS and iframe options are less restrictive. Then if it works, we do an edx-platform PR for it.

@DeanJayMathew
Copy link

DeanJayMathew commented Dec 7, 2022 via email

@ARMBouhali
Copy link
Author

ARMBouhali commented Dec 7, 2022

I updated the comment for zooming image tool above

Update 1: The component works in Studio perfectly. The issue happens only in LMS. I've tested the block alone in a single unit and I'm getting the following browser console error:

Uncaught ReferenceError: JavascriptLoader is not defined
at block-v1:edX+DemoX+Demo_Course+type@vertical+block@50d100ba01dc4b47a17d0986f36bd106?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view:329:1

This one is definitely not working. I don't think we can close the issue until it is solved.
We probably need to debug this in dev. But I don't have the time to do so for now.

@arbrandes
Copy link
Contributor

The zoom tool is not working in a devstack either. It is also unsupported upstream (note the warning at the top), and is not even listed in the HTML block documentation.

I couldn't get it to work after tweaking the HTML a bit, either. I suspect the recent conversion from XModule to XBlock that affected the HTML block (among others) also changed the way they're rendered in the LMS, which would explain this. But it also means fixing it would be... complicated.

We can open an issue upstream, but I very much doubt it'll ever get fixed except maybe by the removal of the template altogether. We have 3 options:

  1. Open an issue upstream, and make a known issue note in the Release Notes.
  2. Open a PR to remove the template upstream, and hope it gets merged/backported before release. (Unlikely.)
  3. Have Tutor remove the file during its build process. (Ugly.)

I vote for 1. Objections?

@arbrandes arbrandes moved this from Blocked to In progress in Build-Test-Release Working Group Dec 7, 2022
@ARMBouhali
Copy link
Author

@arbrandes Good to know the zooming image tool is not supported.

  • Open an issue upstream, and make a known issue note in the Release Notes.

I'm in favor of applying this to both the zooming image tool and the iframe tool as it means fewer immediate changes and more time to either work on a fix or decide to drop off the list.

Waiting for others to express what they think, before I update the checklist and close the issue (someone has to notify me of the consensus, of course)

@DeanJayMathew
Copy link

@arbrandes @ARMBouhali no objections from me.

Back in 2014/15 when I first started using the Open edX® platform I thought the zooming image tool was fantastic. However, we've never used it in all these years. A use case has never come up for us. I still like the tool though.

@arbrandes
Copy link
Contributor

@pdpinch, we'll need to add a Known Issue in the Release Notes for the broken Zoom Tool. (The iframe tool seems to be fine for regular usage.)

@arbrandes
Copy link
Contributor

Created the upstream issue with an accompanying PR. The release notes author was informed above. We can close this.

Repository owner moved this from In progress to Done in Build-Test-Release Working Group Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended release testing Affects the upcoming release (attention needed)
Projects
Development

No branches or pull requests

3 participants