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

Feature request: add parts to basket to create new question #829

Open
wrushworth opened this issue May 16, 2024 · 1 comment
Open

Feature request: add parts to basket to create new question #829

wrushworth opened this issue May 16, 2024 · 1 comment

Comments

@wrushworth
Copy link

I often find myself wishing that I could copy individual question parts from distinct questions, and combine them to create a new question. E.g. copy parts b), c) from Question X and part d) from Question Y, and combine them into the new Question Z.

This could be done in a similar fashion to how exams are created by adding questions to the user's basket. An important difference would be the need to copy the question parts into a new question (in contrast to the exam functionality that attachs questions to exams, so that editing a question alters every exam it is attached to).

@christianp
Copy link
Member

This has been asked for before, but I'm surprised I can't find an issue for it. I think that the right mechanism is the clipboard, rather than the basket. But the clipboard API hasn't been properly implemented yet, so I've put off doing this.

A big problem is that you'd need to copy over all the variables that a part uses, and any extensions or custom functions used by the question. I suppose that a copied part could come with a list of the definitions of all those things, and add them in to the question if they're not present.

@christianp christianp transferred this issue from numbas/Numbas Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants