WikiEduDashboard icon indicating copy to clipboard operation
WikiEduDashboard copied to clipboard

On-wiki training slide with quiz doesn't include complete question prompt

Open ragesoss opened this issue 1 year ago • 17 comments

Here's a quiz slide: https://outreachdashboard.wmflabs.org/training/editing-wikipedia/plagiarism/close-paraphrasing-quiz

The wiki source page includes a quoted passage which does not show up on the Dashboard: https://meta.wikimedia.org/wiki/Training_modules/dashboard/slides/11511-close-paraphrasing-quiz

This may be a bug in WikiSlideParser, or somewhere else along the path to loading training content from a wiki page.

ragesoss avatar Jun 11 '24 17:06 ragesoss

@omChauhanDev would you like to take a look at this?

ragesoss avatar Jun 11 '24 17:06 ragesoss

yes, I will surely dive into this. Just few things left in a commit i am currently working on after that i will try to fix this.

omChauhanDev avatar Jun 12 '24 18:06 omChauhanDev

Sir, using 'rails console' i tried parsing that "wiki_page of quiz slide" with the help of our wiki_slide_parser :

image

Then after seeing the parsed content i figured out that "passage" is not parsed by our wiki_slide_parser, as clearly visible in the image below :

image

omChauhanDev avatar Jun 13 '24 13:06 omChauhanDev

Hi @ragesoss I'll be working on this

MDCODE247 avatar Oct 04 '24 04:10 MDCODE247

@ragesoss

On running locally I see the passage

image

But on the production it doesn't have

image

JiyaGupta-cs avatar Dec 16 '24 20:12 JiyaGupta-cs

Interesting! I wonder what is going on here.

ragesoss avatar Dec 16 '24 20:12 ragesoss

Interesting! I wonder what is going on here.

  • What should be my next approach to dive deep into that and figure out what's the exact issue?
  • Moreover is there any other beginner friendly issue which I can look into to get familiar with the project

JiyaGupta-cs avatar Dec 16 '24 20:12 JiyaGupta-cs

I'm not sure. My next step would probably be to trace through all the code that interacts with this and see if there are any behavior differences I can notice.

This same slide also exists in .yml form, so you should confirm that you loaded it from wiki (that is, loaded it while in Wiki Education false mode, using the 'reload from source' button on the module index page), but if that's the case, I can't see an obvious reason why it would behave differently for you locally.

ragesoss avatar Dec 16 '24 20:12 ragesoss

reload from source' button on the module index page

Where can I find the 'reload from source' button and the module index page, I am not sure about this

JiyaGupta-cs avatar Dec 16 '24 20:12 JiyaGupta-cs

Click the module name in the training navbar to go to the index page, then look for the link at the end of the slide list.

ragesoss avatar Dec 16 '24 20:12 ragesoss

Click the module name in the training navbar to go to the index page, then look for the link at the end of the slide list.

image

where sir?

JiyaGupta-cs avatar Dec 16 '24 20:12 JiyaGupta-cs

When you're in wiki_education: false mode, it should appear below the last slide.

ragesoss avatar Dec 16 '24 20:12 ragesoss

Sorry, I left out the false bit in my earlier post.

ragesoss avatar Dec 16 '24 20:12 ragesoss

I am confused a bit I am running on wiki_education: 'false' as the link is given of outreachdashboard and I dont see the Reload from source button there as in the screenshot

JiyaGupta-cs avatar Dec 16 '24 20:12 JiyaGupta-cs

Ah, the link only appears if the module has a 'wiki_page' prop, so if you loaded it initially from yml, it doesn't appear. you can manually initiate a reload of that module as well. Check out the user_roles.md doc at the end.

ragesoss avatar Dec 16 '24 20:12 ragesoss

I am getting Duplicate TrainingModule slug detected: editing-basics this on /reload_trainings?module=wikipedia-essentials I am trying to manually initiate the reload so that I can reproduce the error

JiyaGupta-cs avatar Dec 16 '24 21:12 JiyaGupta-cs

You can delete all the training content via a rails console to get around the duplicate module problem.

ragesoss avatar Dec 16 '24 21:12 ragesoss