Adresses TNL-3096 - #9464
Conversation
|
Thanks for the pull request, @mirjamsk! I've created OSPR-773 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here. We can't start reviewing your pull request until you've submitted a signed contributor agreement or indicated your institutional affiliation and added yourself to the AUTHORS file. Please see the CONTRIBUTING file for more information. |
|
Hi @mirjamsk and welcome! We'll need to know your institutional affiliation or have a contributor's agreement on file for you, as the bot mentions. @Colin-Fredericks filed this bug; perhaps youd like to be the first reviewer, Colin? |
|
hi @sarina, i've just sent the signed contributor's agreement to legal@edx.org |
There was a problem hiding this comment.
Please add some comments here to explain what you're doing and why.
|
It seems like the change in the code doesn't address the issue - whatever was stripping out the HTML, it's still there somewhere else. |
|
Mirjam: You should write a test case that fails on the current version of On Tue, Aug 25, 2015 at 2:24 PM, Colin-Fredericks notifications@github.com
|
|
@sarina, @Colin-Fredericks i committed and pushed the changes which address the stated issues |
|
jenkins run all |
|
@Colin-Fredericks could you take a pass at reviewing this? I'm out of the office for most of today. |
|
I'll see what I can do. |
There was a problem hiding this comment.
I think you want to name this "test_get_inner...."
|
Ok - have tried this out on my local devstack. Good news: It mostly works! I've only checked MC questions so far, but it's encouraging. Only slightly bad news: If your hint starts with a tag, it doesn't work. For instance, if your hint is entirely an image, that doesn't work, but it definitely should. Adding a single space doesn't make it work, but adding some text beforehand does. Adding text after the tag doesn't work. Strangely, that's only true for the check hints (the inline, answer-specific ones) - not for the demand hints (the ones you get from clicking the "Hint" button). Demand hints can be just an image tag and it works just fine. Actually bad news: Your changes are causing a test failure in test_hint_functionality.py, which you definitely want to resolve. |
|
@Colin-Fredericks thank you for the feedback. |
I disagree with this; this would not be accessible. |
|
To understand the output of your builds, see https://openedx.atlassian.net/wiki/display/TE/Jenkins+Guide Particularly you have a quality issue which is why your quality build is failing. |
|
All images should have alt text, which a screen reader should be able to get at just fine. I will happily bow to the accessibility team on this one, though. The issue also comes up for other tags, such as a span, so it's still worth addressing. |
|
Sure, I just don't want to recommend that course teams do this because we On Wed, Aug 26, 2015 at 11:12 AM, Colin-Fredericks <notifications@github.com
|
|
@Colin-Fredericks changes have been made so it works as expected when adding a tag immediately after the open hint tags |
There was a problem hiding this comment.
Can you make this clearer as to what this test case is testing?
|
@mirjamsk I'm 👍 on this once you've responded to my last few comments and squashed your commits. @Colin-Fredericks could you do a review pass as well (at least making sure this has fully addressed your needs, perhaps also looking at the code a little if you're able?) |
Add acceptance test for TNL-3096 Adress comments on pull request Fix test failing and img issue Modify tests
|
comments addressed and commits squashed |
|
@mirjamsk great! Once Colin has given his approval I will merge this. I appreciate your hard work and fast turn around! |
|
@mhoeber FYI. I don't think this has doc impact because it fixes an existing bug that so far only Colin has reported. |
|
@sarina thanks. doc is ok (never said you couldn't use other tags). noted in release notes list to include when merged |
|
I took another look through the code, then double-checked on my devstack to make sure it would work in certain unexpected cases because I know (from personal experience) that parsing HTML with regex is often counter-indicated. Luckily everything works fine. Thanks for fixing this so quickly! 👍 |
|
@mirjamsk Since this PR was merged, we have been seeing a flaky acceptance test failure. Would you be able to investigate this? |
|
@cahrens this issue has been addressed here https://github.com/edx/edx-platform/pull/9571 |
|
Christina I would be grateful if you want to review that pr :)
|


JIRA ticket: https://openedx.atlassian.net/browse/TNL-3096