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

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

Open
ragesoss opened this issue Jun 11, 2024 · 17 comments
Open
Labels

Comments

@ragesoss
Copy link
Member

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 ragesoss added the bug label Jun 11, 2024
@ragesoss
Copy link
Member Author

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

@omChauhanDev
Copy link
Contributor

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
Copy link
Contributor

omChauhanDev commented Jun 13, 2024

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

@MDCODE247
Copy link

Hi @ragesoss I'll be working on this

@JiyaGupta-cs
Copy link

@ragesoss

On running locally I see the passage

image

But on the production it doesn't have

image

@ragesoss
Copy link
Member Author

Interesting! I wonder what is going on here.

@JiyaGupta-cs
Copy link

JiyaGupta-cs commented Dec 16, 2024

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

@ragesoss
Copy link
Member Author

ragesoss commented Dec 16, 2024

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.

@JiyaGupta-cs
Copy link

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

@ragesoss
Copy link
Member Author

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.

@JiyaGupta-cs
Copy link

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?

@ragesoss
Copy link
Member Author

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

@ragesoss
Copy link
Member Author

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

@JiyaGupta-cs
Copy link

JiyaGupta-cs commented Dec 16, 2024

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

@ragesoss
Copy link
Member Author

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.

@JiyaGupta-cs
Copy link

JiyaGupta-cs commented Dec 16, 2024

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

@ragesoss
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants