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: Import folders of questions from STACK question library #1357

Open
EJMFarrow opened this issue Jan 13, 2025 · 0 comments
Open

Feature: Import folders of questions from STACK question library #1357

EJMFarrow opened this issue Jan 13, 2025 · 0 comments

Comments

@EJMFarrow
Copy link
Collaborator

EJMFarrow commented Jan 13, 2025

This could be done by updating stack_question_library::get_file_list() to add parent folder info to files and to add a flag to files to indicate if they have files as immediate children. This info could then be used to place buttons in the correct places in the file tree that import all the questions in the folder.

  • Making the import recursive would be harder (and more dangerous). Would we create categories, for instance?
  • All the questions in the folder would be imported even if some have been imported already. (We could prevent this for a given access of the library but is it worth it?)
  • Do we loop over requests or send all the required question identifiers in one go? First option is simpler (particularly for error handling). However, Feature: Import quiz from STACK question library #1358 requires the load of a folder in a single request.
  • How does this look to the user? Should they only be able to import a folder if they're viewing one of the questions? (If so, is in the directory tree the correct place for the button?) Do we need a progress bar (which would only be possible with looped requests)? How is success/failure displayed?
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

No branches or pull requests

1 participant