Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
SP-9 Upgrade ChartJS from version 2.9 to 4.3.1

Rewrite chart generating code to match new API

  1. … 8 more files in changeset.
Merge remote-tracking branch 'origin/v4.6' into v4.7

  1. … 14 more files in changeset.
LDEV-5400 Add tooltip with learners to activity completion chart

Also add group information in the tooltip

  1. … 8 more files in changeset.
LDEV-5400 Add list of Assessment started/not started/completed students on chart hover

  1. … 9 more files in changeset.
LDEV-5200 Fix encoding in Assessment chart

  1. … 1 more file in changeset.
LDEV-5260 Rewrite polling to producer-subscriber model

Till now we had "are-learners-answers-updated" polling on controller

level.

It was rewritten to following scenario:

- method which stores learner answers is aware whether answers have

changed, i.e. it knows if charts need to be updated

- it flushes latest data to DB and puts tool content ID to Sink

- Sink notifies all interested Fluxes (currently only charts updating

one, but in the future other ones like updating table with answer % too)

- FluxMap holds a map of tool content ID -> interested hot publisher

Flux

- the Flux checks if it is interested in the tool content ID from the

Sink

- if so, it fetches data from DB and emits it to all subscribers, i.e.

opened monitoring windows with charts displayed

- data is cached so it is immediately available on for the next

subscriber

- data is throttled so calls to DB are not made too often

- if all subscribers are gone, the hot publisher Flux is still active; a

timeout is added which removes it from FluxMap when there were not emits

for the given time

  1. … 6 more files in changeset.
LDEV-5260 Initial implementation of EventSource-powered chart

  1. … 2 more files in changeset.
LDEV-5251 Add proper tooltip for leader-based Assessments

  1. … 1 more file in changeset.
LDEV-5251 Add tooltip with list of students in answered questions chart

  1. … 6 more files in changeset.
LDEV-5111 Change chart title if it displays groups and not students

  1. … 3 more files in changeset.
LDEV-5111 Display groups instead of students in chart when needed

If Assessment activity uses a leader, then only he gets his answers auto

saved. He counts as one student. But when he finishes the activity, his

answers get copied to other group members. Suddenly instead of 1 student

we get, say, 5 with same answers. This makes the answered questions

chart go crazy.

Now when leader selection is in use, group count is displayed instead of

student count in the chart.

  1. … 9 more files in changeset.
LDEV-5095 Move chart code to separate JS file for reuse in another spot

  1. … 2 more files in changeset.