Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-84433

Question bank: need better control of which version of each question is shown

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.1
    • Questions
    • None

      This came out of MDL-79265.

      When you are looking at the main question bank view (e.g. https://qa.moodledemo.net/question/edit.php?cmid=1227) then at the moment it shows the latest version of any qusetion bank entry.

      However, that may not be what you want, you may want to see the latest ready version of each question, or the latest draft version. In particular, if the latest extant version of the question is won that was created, used somewhere, and then deleted, then you probably don't want to see that (except on rare occasions when you do want to see that).

      So, the user needs some control over this (and the current 'Show hidden questions yes/no' filter does not work, becuase this is not about filtering question bank entries, it is about which version of each question bank entry to show.

      So, what we need to do is:

      1. In the control row, after "Show question text: yes/no", we need a new setting Version of each question to show: Ready, draft. (that is the default setting)
      2. When that is clicked, to change the setting, a little menu will open with three checkboxes, for the three States, Ready, Draft and Hidden, so you can toggle which ones are shown. It should not be possible to disable all of them. THere must always be at least one selected.
      3. The build_query code in question/classes/local/bank/view.php $latestversion subquery, needs to be updated to respect this setting.
      4. This setting needs to be updated to remembered as a user preferency.

      Hmm. Not sure it makes sense to let you de-select 'ready'. I think it may be the case we always want ready versions shown.

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.