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

Modification to parserPopUp and PGbasic macros for Moodle opaque #647

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JonathanDesaulniers
Copy link

Modification to PGbasicmacros so that radio button and checkbox can be use in Moodle with opaque server. Note that the checkbox still has issues (only the last checked box is saved).

Modification to parserPopUp so that the PopUp command can be use in Moodle with opaque server.

Modification to PGbasicmacros so that radio button and checkbox can be use in Moodle with opaque server. Note that the checkbox still has issues (only the last checked box is saved).

Modification to parserPopUp so that the PopUp command can be use in Moodle with opaque server.
Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that I can approve of this pull request. Adding this prefix to the pg code does not seem right.

There is already a QUIZ_PREFIX that you could use for this purpose. Admittedly that is not always necessarily a true prefix (e.g., MultiAnswers can add a prefix in front of that), but this will work for most answers.

Furthermore, you have not provided any real explanation of the changes made. How exactly does it work? How can this be tested?

@JonathanDesaulniers
Copy link
Author

JonathanDesaulniers commented Feb 10, 2022 via email

@drgrice1
Copy link
Member

I see that @mgage added the opaque prefix in some cases already.

This needs to be thought out better. Adding prefixes in PG is not the correct way to do this. You would not need to edit problems to use the QUIZ_PREFIX. You would need to set it up so that the prefix is set by the rendering mechanism.

@JonathanDesaulniers
Copy link
Author

JonathanDesaulniers commented Feb 10, 2022 via email

@drgrice1
Copy link
Member

There is no need to withdraw the pull request. But more consideration is needed. There is surely a better way to implement this than adding this prefix all over in the PG code.

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

Successfully merging this pull request may close these issues.

3 participants