@instructure/outcomes-ui 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/components/OutcomesPerStudent/index.js +6 -0
- package/es/constants.js +1 -0
- package/es/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/store/report/__tests__/actions.test.js +22 -1
- package/es/store/report/__tests__/reducers.test.js +74 -5
- package/es/store/report/actions.js +12 -6
- package/es/store/report/reducers.js +38 -17
- package/es/translated/ar/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/ar/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/ar/constants.js +1 -0
- package/es/translated/ar/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/ar/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/ar/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/ar/store/report/actions.js +12 -6
- package/es/translated/ar/store/report/reducers.js +38 -17
- package/es/translated/ca/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/ca/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/ca/constants.js +1 -0
- package/es/translated/ca/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/ca/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/ca/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/ca/store/report/actions.js +12 -6
- package/es/translated/ca/store/report/reducers.js +38 -17
- package/es/translated/cy/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/cy/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/cy/constants.js +1 -0
- package/es/translated/cy/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/cy/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/cy/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/cy/store/report/actions.js +12 -6
- package/es/translated/cy/store/report/reducers.js +38 -17
- package/es/translated/da/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/da/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/da/constants.js +1 -0
- package/es/translated/da/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/da/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/da/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/da/store/report/actions.js +12 -6
- package/es/translated/da/store/report/reducers.js +38 -17
- package/es/translated/da-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/da-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/da-x-k12/constants.js +1 -0
- package/es/translated/da-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/da-x-k12/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/da-x-k12/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/da-x-k12/store/report/actions.js +12 -6
- package/es/translated/da-x-k12/store/report/reducers.js +38 -17
- package/es/translated/de/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/de/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/de/constants.js +1 -0
- package/es/translated/de/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/de/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/de/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/de/store/report/actions.js +12 -6
- package/es/translated/de/store/report/reducers.js +38 -17
- package/es/translated/en/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en/constants.js +1 -0
- package/es/translated/en/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en/store/report/actions.js +12 -6
- package/es/translated/en/store/report/reducers.js +38 -17
- package/es/translated/en-AU/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-AU/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-AU/constants.js +1 -0
- package/es/translated/en-AU/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-AU/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-AU/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-AU/store/report/actions.js +12 -6
- package/es/translated/en-AU/store/report/reducers.js +38 -17
- package/es/translated/en-AU-x-unimelb/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-AU-x-unimelb/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-AU-x-unimelb/constants.js +1 -0
- package/es/translated/en-AU-x-unimelb/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-AU-x-unimelb/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-AU-x-unimelb/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-AU-x-unimelb/store/report/actions.js +12 -6
- package/es/translated/en-AU-x-unimelb/store/report/reducers.js +38 -17
- package/es/translated/en-CA/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-CA/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-CA/constants.js +1 -0
- package/es/translated/en-CA/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-CA/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-CA/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-CA/store/report/actions.js +12 -6
- package/es/translated/en-CA/store/report/reducers.js +38 -17
- package/es/translated/en-CY/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-CY/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-CY/constants.js +1 -0
- package/es/translated/en-CY/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-CY/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-CY/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-CY/store/report/actions.js +12 -6
- package/es/translated/en-CY/store/report/reducers.js +38 -17
- package/es/translated/en-GB/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-GB/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-GB/constants.js +1 -0
- package/es/translated/en-GB/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-GB/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-GB/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-GB/store/report/actions.js +12 -6
- package/es/translated/en-GB/store/report/reducers.js +38 -17
- package/es/translated/en-GB-x-ukhe/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-GB-x-ukhe/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-GB-x-ukhe/constants.js +1 -0
- package/es/translated/en-GB-x-ukhe/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-GB-x-ukhe/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-GB-x-ukhe/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-GB-x-ukhe/store/report/actions.js +12 -6
- package/es/translated/en-GB-x-ukhe/store/report/reducers.js +38 -17
- package/es/translated/en-IE/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/en-IE/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/en-IE/constants.js +1 -0
- package/es/translated/en-IE/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/en-IE/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/en-IE/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/en-IE/store/report/actions.js +12 -6
- package/es/translated/en-IE/store/report/reducers.js +38 -17
- package/es/translated/es/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/es/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/es/constants.js +1 -0
- package/es/translated/es/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/es/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/es/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/es/store/report/actions.js +12 -6
- package/es/translated/es/store/report/reducers.js +38 -17
- package/es/translated/es-ES/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/es-ES/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/es-ES/constants.js +1 -0
- package/es/translated/es-ES/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/es-ES/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/es-ES/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/es-ES/store/report/actions.js +12 -6
- package/es/translated/es-ES/store/report/reducers.js +38 -17
- package/es/translated/es_ES/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/es_ES/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/es_ES/constants.js +1 -0
- package/es/translated/es_ES/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/es_ES/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/es_ES/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/es_ES/store/report/actions.js +12 -6
- package/es/translated/es_ES/store/report/reducers.js +38 -17
- package/es/translated/fi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/fi/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/fi/constants.js +1 -0
- package/es/translated/fi/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/fi/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/fi/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/fi/store/report/actions.js +12 -6
- package/es/translated/fi/store/report/reducers.js +38 -17
- package/es/translated/fr/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/fr/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/fr/constants.js +1 -0
- package/es/translated/fr/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/fr/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/fr/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/fr/store/report/actions.js +12 -6
- package/es/translated/fr/store/report/reducers.js +38 -17
- package/es/translated/fr-CA/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/fr-CA/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/fr-CA/constants.js +1 -0
- package/es/translated/fr-CA/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/fr-CA/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/fr-CA/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/fr-CA/store/report/actions.js +12 -6
- package/es/translated/fr-CA/store/report/reducers.js +38 -17
- package/es/translated/ht/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/ht/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/ht/constants.js +1 -0
- package/es/translated/ht/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/ht/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/ht/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/ht/store/report/actions.js +12 -6
- package/es/translated/ht/store/report/reducers.js +38 -17
- package/es/translated/is/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/is/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/is/constants.js +1 -0
- package/es/translated/is/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/is/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/is/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/is/store/report/actions.js +12 -6
- package/es/translated/is/store/report/reducers.js +38 -17
- package/es/translated/it/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/it/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/it/constants.js +1 -0
- package/es/translated/it/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/it/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/it/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/it/store/report/actions.js +12 -6
- package/es/translated/it/store/report/reducers.js +38 -17
- package/es/translated/ja/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/ja/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/ja/constants.js +1 -0
- package/es/translated/ja/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/ja/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/ja/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/ja/store/report/actions.js +12 -6
- package/es/translated/ja/store/report/reducers.js +38 -17
- package/es/translated/mi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/mi/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/mi/constants.js +1 -0
- package/es/translated/mi/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/mi/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/mi/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/mi/store/report/actions.js +12 -6
- package/es/translated/mi/store/report/reducers.js +38 -17
- package/es/translated/nb/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/nb/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/nb/constants.js +1 -0
- package/es/translated/nb/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/nb/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/nb/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/nb/store/report/actions.js +12 -6
- package/es/translated/nb/store/report/reducers.js +38 -17
- package/es/translated/nb-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/nb-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/nb-x-k12/constants.js +1 -0
- package/es/translated/nb-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/nb-x-k12/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/nb-x-k12/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/nb-x-k12/store/report/actions.js +12 -6
- package/es/translated/nb-x-k12/store/report/reducers.js +38 -17
- package/es/translated/nl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/nl/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/nl/constants.js +1 -0
- package/es/translated/nl/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/nl/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/nl/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/nl/store/report/actions.js +12 -6
- package/es/translated/nl/store/report/reducers.js +38 -17
- package/es/translated/pl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/pl/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/pl/constants.js +1 -0
- package/es/translated/pl/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/pl/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/pl/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/pl/store/report/actions.js +12 -6
- package/es/translated/pl/store/report/reducers.js +38 -17
- package/es/translated/pt/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/pt/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/pt/constants.js +1 -0
- package/es/translated/pt/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/pt/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/pt/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/pt/store/report/actions.js +12 -6
- package/es/translated/pt/store/report/reducers.js +38 -17
- package/es/translated/pt-BR/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/pt-BR/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/pt-BR/constants.js +1 -0
- package/es/translated/pt-BR/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/pt-BR/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/pt-BR/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/pt-BR/store/report/actions.js +12 -6
- package/es/translated/pt-BR/store/report/reducers.js +38 -17
- package/es/translated/ru/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/ru/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/ru/constants.js +1 -0
- package/es/translated/ru/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/ru/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/ru/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/ru/store/report/actions.js +12 -6
- package/es/translated/ru/store/report/reducers.js +38 -17
- package/es/translated/sl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/sl/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/sl/constants.js +1 -0
- package/es/translated/sl/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/sl/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/sl/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/sl/store/report/actions.js +12 -6
- package/es/translated/sl/store/report/reducers.js +38 -17
- package/es/translated/sv/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/sv/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/sv/constants.js +1 -0
- package/es/translated/sv/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/sv/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/sv/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/sv/store/report/actions.js +12 -6
- package/es/translated/sv/store/report/reducers.js +38 -17
- package/es/translated/sv-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/sv-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/sv-x-k12/constants.js +1 -0
- package/es/translated/sv-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/sv-x-k12/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/sv-x-k12/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/sv-x-k12/store/report/actions.js +12 -6
- package/es/translated/sv-x-k12/store/report/reducers.js +38 -17
- package/es/translated/th/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/th/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/th/constants.js +1 -0
- package/es/translated/th/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/th/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/th/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/th/store/report/actions.js +12 -6
- package/es/translated/th/store/report/reducers.js +38 -17
- package/es/translated/vi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/vi/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/vi/constants.js +1 -0
- package/es/translated/vi/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/vi/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/vi/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/vi/store/report/actions.js +12 -6
- package/es/translated/vi/store/report/reducers.js +38 -17
- package/es/translated/zh-Hans/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/zh-Hans/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/zh-Hans/constants.js +1 -0
- package/es/translated/zh-Hans/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/zh-Hans/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/zh-Hans/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/zh-Hans/store/report/actions.js +12 -6
- package/es/translated/zh-Hans/store/report/reducers.js +38 -17
- package/es/translated/zh-Hant/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
- package/es/translated/zh-Hant/components/OutcomesPerStudent/index.js +6 -0
- package/es/translated/zh-Hant/constants.js +1 -0
- package/es/translated/zh-Hant/containers/ConnectedOutcomesPerStudent.js +3 -2
- package/es/translated/zh-Hant/store/report/__tests__/actions.test.js +22 -1
- package/es/translated/zh-Hant/store/report/__tests__/reducers.test.js +74 -5
- package/es/translated/zh-Hant/store/report/actions.js +12 -6
- package/es/translated/zh-Hant/store/report/reducers.js +38 -17
- package/lib/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/components/OutcomesPerStudent/index.js +6 -0
- package/lib/constants.js +3 -1
- package/lib/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/store/report/__tests__/actions.test.js +21 -0
- package/lib/store/report/__tests__/reducers.test.js +74 -4
- package/lib/store/report/actions.js +20 -10
- package/lib/store/report/reducers.js +36 -16
- package/lib/translated/ar/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/ar/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/ar/constants.js +3 -1
- package/lib/translated/ar/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/ar/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/ar/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/ar/store/report/actions.js +20 -10
- package/lib/translated/ar/store/report/reducers.js +36 -16
- package/lib/translated/ca/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/ca/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/ca/constants.js +3 -1
- package/lib/translated/ca/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/ca/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/ca/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/ca/store/report/actions.js +20 -10
- package/lib/translated/ca/store/report/reducers.js +36 -16
- package/lib/translated/cy/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/cy/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/cy/constants.js +3 -1
- package/lib/translated/cy/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/cy/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/cy/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/cy/store/report/actions.js +20 -10
- package/lib/translated/cy/store/report/reducers.js +36 -16
- package/lib/translated/da/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/da/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/da/constants.js +3 -1
- package/lib/translated/da/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/da/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/da/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/da/store/report/actions.js +20 -10
- package/lib/translated/da/store/report/reducers.js +36 -16
- package/lib/translated/da-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/da-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/da-x-k12/constants.js +3 -1
- package/lib/translated/da-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/da-x-k12/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/da-x-k12/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/da-x-k12/store/report/actions.js +20 -10
- package/lib/translated/da-x-k12/store/report/reducers.js +36 -16
- package/lib/translated/de/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/de/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/de/constants.js +3 -1
- package/lib/translated/de/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/de/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/de/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/de/store/report/actions.js +20 -10
- package/lib/translated/de/store/report/reducers.js +36 -16
- package/lib/translated/en/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en/constants.js +3 -1
- package/lib/translated/en/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en/store/report/actions.js +20 -10
- package/lib/translated/en/store/report/reducers.js +36 -16
- package/lib/translated/en-AU/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-AU/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-AU/constants.js +3 -1
- package/lib/translated/en-AU/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-AU/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-AU/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-AU/store/report/actions.js +20 -10
- package/lib/translated/en-AU/store/report/reducers.js +36 -16
- package/lib/translated/en-AU-x-unimelb/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-AU-x-unimelb/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-AU-x-unimelb/constants.js +3 -1
- package/lib/translated/en-AU-x-unimelb/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-AU-x-unimelb/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-AU-x-unimelb/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-AU-x-unimelb/store/report/actions.js +20 -10
- package/lib/translated/en-AU-x-unimelb/store/report/reducers.js +36 -16
- package/lib/translated/en-CA/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-CA/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-CA/constants.js +3 -1
- package/lib/translated/en-CA/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-CA/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-CA/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-CA/store/report/actions.js +20 -10
- package/lib/translated/en-CA/store/report/reducers.js +36 -16
- package/lib/translated/en-CY/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-CY/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-CY/constants.js +3 -1
- package/lib/translated/en-CY/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-CY/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-CY/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-CY/store/report/actions.js +20 -10
- package/lib/translated/en-CY/store/report/reducers.js +36 -16
- package/lib/translated/en-GB/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-GB/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-GB/constants.js +3 -1
- package/lib/translated/en-GB/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-GB/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-GB/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-GB/store/report/actions.js +20 -10
- package/lib/translated/en-GB/store/report/reducers.js +36 -16
- package/lib/translated/en-GB-x-ukhe/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-GB-x-ukhe/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-GB-x-ukhe/constants.js +3 -1
- package/lib/translated/en-GB-x-ukhe/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-GB-x-ukhe/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-GB-x-ukhe/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-GB-x-ukhe/store/report/actions.js +20 -10
- package/lib/translated/en-GB-x-ukhe/store/report/reducers.js +36 -16
- package/lib/translated/en-IE/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/en-IE/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/en-IE/constants.js +3 -1
- package/lib/translated/en-IE/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/en-IE/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/en-IE/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/en-IE/store/report/actions.js +20 -10
- package/lib/translated/en-IE/store/report/reducers.js +36 -16
- package/lib/translated/es/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/es/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/es/constants.js +3 -1
- package/lib/translated/es/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/es/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/es/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/es/store/report/actions.js +20 -10
- package/lib/translated/es/store/report/reducers.js +36 -16
- package/lib/translated/es-ES/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/es-ES/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/es-ES/constants.js +3 -1
- package/lib/translated/es-ES/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/es-ES/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/es-ES/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/es-ES/store/report/actions.js +20 -10
- package/lib/translated/es-ES/store/report/reducers.js +36 -16
- package/lib/translated/es_ES/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/es_ES/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/es_ES/constants.js +3 -1
- package/lib/translated/es_ES/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/es_ES/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/es_ES/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/es_ES/store/report/actions.js +20 -10
- package/lib/translated/es_ES/store/report/reducers.js +36 -16
- package/lib/translated/fi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/fi/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/fi/constants.js +3 -1
- package/lib/translated/fi/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/fi/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/fi/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/fi/store/report/actions.js +20 -10
- package/lib/translated/fi/store/report/reducers.js +36 -16
- package/lib/translated/fr/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/fr/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/fr/constants.js +3 -1
- package/lib/translated/fr/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/fr/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/fr/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/fr/store/report/actions.js +20 -10
- package/lib/translated/fr/store/report/reducers.js +36 -16
- package/lib/translated/fr-CA/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/fr-CA/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/fr-CA/constants.js +3 -1
- package/lib/translated/fr-CA/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/fr-CA/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/fr-CA/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/fr-CA/store/report/actions.js +20 -10
- package/lib/translated/fr-CA/store/report/reducers.js +36 -16
- package/lib/translated/ht/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/ht/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/ht/constants.js +3 -1
- package/lib/translated/ht/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/ht/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/ht/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/ht/store/report/actions.js +20 -10
- package/lib/translated/ht/store/report/reducers.js +36 -16
- package/lib/translated/is/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/is/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/is/constants.js +3 -1
- package/lib/translated/is/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/is/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/is/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/is/store/report/actions.js +20 -10
- package/lib/translated/is/store/report/reducers.js +36 -16
- package/lib/translated/it/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/it/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/it/constants.js +3 -1
- package/lib/translated/it/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/it/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/it/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/it/store/report/actions.js +20 -10
- package/lib/translated/it/store/report/reducers.js +36 -16
- package/lib/translated/ja/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/ja/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/ja/constants.js +3 -1
- package/lib/translated/ja/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/ja/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/ja/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/ja/store/report/actions.js +20 -10
- package/lib/translated/ja/store/report/reducers.js +36 -16
- package/lib/translated/mi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/mi/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/mi/constants.js +3 -1
- package/lib/translated/mi/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/mi/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/mi/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/mi/store/report/actions.js +20 -10
- package/lib/translated/mi/store/report/reducers.js +36 -16
- package/lib/translated/nb/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/nb/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/nb/constants.js +3 -1
- package/lib/translated/nb/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/nb/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/nb/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/nb/store/report/actions.js +20 -10
- package/lib/translated/nb/store/report/reducers.js +36 -16
- package/lib/translated/nb-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/nb-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/nb-x-k12/constants.js +3 -1
- package/lib/translated/nb-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/nb-x-k12/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/nb-x-k12/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/nb-x-k12/store/report/actions.js +20 -10
- package/lib/translated/nb-x-k12/store/report/reducers.js +36 -16
- package/lib/translated/nl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/nl/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/nl/constants.js +3 -1
- package/lib/translated/nl/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/nl/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/nl/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/nl/store/report/actions.js +20 -10
- package/lib/translated/nl/store/report/reducers.js +36 -16
- package/lib/translated/pl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/pl/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/pl/constants.js +3 -1
- package/lib/translated/pl/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/pl/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/pl/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/pl/store/report/actions.js +20 -10
- package/lib/translated/pl/store/report/reducers.js +36 -16
- package/lib/translated/pt/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/pt/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/pt/constants.js +3 -1
- package/lib/translated/pt/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/pt/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/pt/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/pt/store/report/actions.js +20 -10
- package/lib/translated/pt/store/report/reducers.js +36 -16
- package/lib/translated/pt-BR/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/pt-BR/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/pt-BR/constants.js +3 -1
- package/lib/translated/pt-BR/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/pt-BR/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/pt-BR/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/pt-BR/store/report/actions.js +20 -10
- package/lib/translated/pt-BR/store/report/reducers.js +36 -16
- package/lib/translated/ru/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/ru/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/ru/constants.js +3 -1
- package/lib/translated/ru/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/ru/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/ru/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/ru/store/report/actions.js +20 -10
- package/lib/translated/ru/store/report/reducers.js +36 -16
- package/lib/translated/sl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/sl/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/sl/constants.js +3 -1
- package/lib/translated/sl/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/sl/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/sl/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/sl/store/report/actions.js +20 -10
- package/lib/translated/sl/store/report/reducers.js +36 -16
- package/lib/translated/sv/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/sv/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/sv/constants.js +3 -1
- package/lib/translated/sv/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/sv/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/sv/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/sv/store/report/actions.js +20 -10
- package/lib/translated/sv/store/report/reducers.js +36 -16
- package/lib/translated/sv-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/sv-x-k12/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/sv-x-k12/constants.js +3 -1
- package/lib/translated/sv-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/sv-x-k12/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/sv-x-k12/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/sv-x-k12/store/report/actions.js +20 -10
- package/lib/translated/sv-x-k12/store/report/reducers.js +36 -16
- package/lib/translated/th/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/th/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/th/constants.js +3 -1
- package/lib/translated/th/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/th/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/th/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/th/store/report/actions.js +20 -10
- package/lib/translated/th/store/report/reducers.js +36 -16
- package/lib/translated/vi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/vi/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/vi/constants.js +3 -1
- package/lib/translated/vi/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/vi/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/vi/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/vi/store/report/actions.js +20 -10
- package/lib/translated/vi/store/report/reducers.js +36 -16
- package/lib/translated/zh-Hans/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/zh-Hans/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/zh-Hans/constants.js +3 -1
- package/lib/translated/zh-Hans/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/zh-Hans/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/zh-Hans/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/zh-Hans/store/report/actions.js +20 -10
- package/lib/translated/zh-Hans/store/report/reducers.js +36 -16
- package/lib/translated/zh-Hant/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
- package/lib/translated/zh-Hant/components/OutcomesPerStudent/index.js +6 -0
- package/lib/translated/zh-Hant/constants.js +3 -1
- package/lib/translated/zh-Hant/containers/ConnectedOutcomesPerStudent.js +2 -1
- package/lib/translated/zh-Hant/store/report/__tests__/actions.test.js +21 -0
- package/lib/translated/zh-Hant/store/report/__tests__/reducers.test.js +74 -4
- package/lib/translated/zh-Hant/store/report/actions.js +20 -10
- package/lib/translated/zh-Hant/store/report/reducers.js +36 -16
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import chai, { expect } from 'chai';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import sinon from 'sinon';
|
|
4
|
-
import { shallow } from 'enzyme';
|
|
4
|
+
import { shallow, mount } from 'enzyme';
|
|
5
5
|
import OutcomesPerStudent from "../index.js";
|
|
6
6
|
import checkA11y from "../../../test/checkA11y.js";
|
|
7
7
|
var styles = {
|
|
@@ -29,6 +29,7 @@ describe('OutcomesPerStudent/index', function () {
|
|
|
29
29
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30
30
|
return Object.assign({
|
|
31
31
|
loadPage: sinon.stub().returns(Promise.resolve()),
|
|
32
|
+
clearReportStore: sinon.spy(),
|
|
32
33
|
getReportOutcome: sinon.stub().returns({
|
|
33
34
|
id: 1,
|
|
34
35
|
label: 'Foo.PRQ.2',
|
|
@@ -167,6 +168,13 @@ describe('OutcomesPerStudent/index', function () {
|
|
|
167
168
|
});
|
|
168
169
|
});
|
|
169
170
|
});
|
|
171
|
+
it('calls clearReportStore when about to unmount', function () {
|
|
172
|
+
var props = makeProps();
|
|
173
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(OutcomesPerStudent, props));
|
|
174
|
+
expect(props.clearReportStore).to.not.have.been.called;
|
|
175
|
+
wrapper.unmount();
|
|
176
|
+
expect(props.clearReportStore).to.have.been.calledOnce;
|
|
177
|
+
});
|
|
170
178
|
it('meets a11y standards', function () {
|
|
171
179
|
return checkA11y( /*#__PURE__*/React.createElement(OutcomesPerStudent, makeProps()));
|
|
172
180
|
});
|
|
@@ -339,6 +339,11 @@ var OutcomesPerStudentReport = (_dec = themeable(theme, styles), _dec(_class = (
|
|
|
339
339
|
return setError(e);
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
+
}, {
|
|
343
|
+
key: "componentWillUnmount",
|
|
344
|
+
value: function componentWillUnmount() {
|
|
345
|
+
this.props.clearReportStore();
|
|
346
|
+
}
|
|
342
347
|
}, {
|
|
343
348
|
key: "renderReportTable",
|
|
344
349
|
value: function renderReportTable() {
|
|
@@ -477,6 +482,7 @@ var OutcomesPerStudentReport = (_dec = themeable(theme, styles), _dec(_class = (
|
|
|
477
482
|
isOpen: PropTypes.func.isRequired,
|
|
478
483
|
closeReportAlignment: PropTypes.func.isRequired,
|
|
479
484
|
features: PropTypes.array.isRequired,
|
|
485
|
+
clearReportStore: PropTypes.func.isRequired,
|
|
480
486
|
scope: PropTypes.string.isRequired
|
|
481
487
|
}, _class2.defaultProps = {
|
|
482
488
|
loadUsersOverride: void 0,
|
package/es/constants.js
CHANGED
|
@@ -44,6 +44,7 @@ export var SET_REPORT_RESULTS = 'SET_REPORT_RESULTS';
|
|
|
44
44
|
export var SET_REPORT_USERS = 'SET_REPORT_USERS';
|
|
45
45
|
export var SET_REPORT_LOADING = 'SET_REPORT_LOADING';
|
|
46
46
|
export var SET_REMAINING_PAGES_LOADING = 'SET_REMAINING_PAGES_LOADING';
|
|
47
|
+
export var CLEAR_REPORT_DATA = 'CLEAR_REPORT_DATA';
|
|
47
48
|
export var VIEW_REPORT_ALIGNMENT = 'VIEW_REPORT_ALIGNMENT';
|
|
48
49
|
export var CLOSE_REPORT_ALIGNMENT = 'CLOSE_REPORT_ALIGNMENT';
|
|
49
50
|
export var ALL_USERS = 'ALL_USERS';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { connect } from 'react-redux';
|
|
2
2
|
import { bindActionCreators as bindScopedActionCreators } from 'multireducer';
|
|
3
3
|
import OutcomesPerStudent from "../components/OutcomesPerStudent/index.js";
|
|
4
|
-
import { loadPage, loadRemainingPages, viewReportAlignment, closeReportAlignment } from "../store/report/actions.js";
|
|
4
|
+
import { loadPage, loadRemainingPages, viewReportAlignment, closeReportAlignment, clearReportStore } from "../store/report/actions.js";
|
|
5
5
|
import { setError } from "../store/context/actions.js";
|
|
6
6
|
import { formatCSVData, getLoading, getPageCount, getPageNumber, getUsers, getReportOutcome, getRollups, getScore, getLoadingRemainingPages, isOpen, hasAnyOutcomes } from "../store/report/selectors.js";
|
|
7
7
|
import { getFeatures } from "../store/features/selectors.js";
|
|
@@ -33,7 +33,8 @@ function mapDispatchToProps(dispatch, ownProps) {
|
|
|
33
33
|
loadRemainingPages: loadRemainingPages,
|
|
34
34
|
viewReportAlignment: viewReportAlignment,
|
|
35
35
|
closeReportAlignment: closeReportAlignment,
|
|
36
|
-
setError: setError
|
|
36
|
+
setError: setError,
|
|
37
|
+
clearReportStore: clearReportStore
|
|
37
38
|
}, dispatch, scope);
|
|
38
39
|
}
|
|
39
40
|
/* eslint-enable react-redux/mapDispatchToProps-returns-object */
|
|
@@ -5,7 +5,7 @@ import { fromJS, Map } from 'immutable';
|
|
|
5
5
|
import { wrapAction } from 'multireducer';
|
|
6
6
|
import sinon from 'sinon';
|
|
7
7
|
import * as actions from "../actions.js";
|
|
8
|
-
import { SET_ERROR, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, NOT_FETCHING, IN_PROGRESS, COMPLETED, ERROR } from "../../../constants.js";
|
|
8
|
+
import { SET_ERROR, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, CLEAR_REPORT_DATA, NOT_FETCHING, IN_PROGRESS, COMPLETED, ERROR } from "../../../constants.js";
|
|
9
9
|
import { setError } from "../../context/actions.js";
|
|
10
10
|
import createMockStore, { scopeActions } from "../../../test/createMockStore.js";
|
|
11
11
|
var scopedActions = scopeActions(_objectSpread(_objectSpread({}, actions), {}, {
|
|
@@ -600,6 +600,27 @@ describe('report/actions', function () {
|
|
|
600
600
|
});
|
|
601
601
|
});
|
|
602
602
|
});
|
|
603
|
+
describe('clearReportStore', function () {
|
|
604
|
+
it('clears the report store', function () {
|
|
605
|
+
var state = {
|
|
606
|
+
scopeForTest: {
|
|
607
|
+
report: {
|
|
608
|
+
page: {
|
|
609
|
+
number: 0
|
|
610
|
+
},
|
|
611
|
+
users: {
|
|
612
|
+
1: users,
|
|
613
|
+
2: getUsersResponse.users
|
|
614
|
+
},
|
|
615
|
+
rollups: rollups
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
var store = createMockStore(Map(fromJS(state)), service);
|
|
620
|
+
store.dispatch(actions.clearReportStore(state, 'scopeForTest'));
|
|
621
|
+
expect(store.getActions().slice(-1)[0].type).to.eq(CLEAR_REPORT_DATA);
|
|
622
|
+
});
|
|
623
|
+
});
|
|
603
624
|
describe('getUserList', function () {
|
|
604
625
|
it('returns a list of user uuids from page 1', function () {
|
|
605
626
|
var state = {
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import { expect } from 'chai';
|
|
3
3
|
import { fromJS } from 'immutable';
|
|
4
|
-
import {
|
|
4
|
+
import { IN_PROGRESS, NOT_FETCHING } from "../../../constants.js";
|
|
5
|
+
import { setPage, setPageData, setRollups, setResults, setUsers, setReportOutcomes, setLoading, setLoadingRemainingPages, clearReportData, viewReportAlignment, closeReportAlignment } from "../actions.js";
|
|
5
6
|
import reducer from "../reducers.js";
|
|
6
7
|
describe('reports/reducers', function () {
|
|
7
8
|
// eslint-disable-next-line camelcase
|
|
8
9
|
var user_uuid = '560fddd9-9b16-4e3a-969c-2f095e7afc78';
|
|
9
10
|
var state = fromJS({
|
|
10
|
-
|
|
11
|
+
outcomes: {
|
|
11
12
|
100: {
|
|
12
13
|
id: 100,
|
|
13
14
|
label: 'blue',
|
|
14
15
|
title: 'green'
|
|
15
16
|
}
|
|
16
17
|
},
|
|
18
|
+
rollups: [{
|
|
19
|
+
outcomeId: '100',
|
|
20
|
+
averageScore: 0.8,
|
|
21
|
+
count: 1,
|
|
22
|
+
masteryCount: 1,
|
|
23
|
+
childArtifactCount: 0
|
|
24
|
+
}],
|
|
17
25
|
results: {
|
|
18
26
|
1955: _defineProperty({}, user_uuid, {
|
|
19
27
|
user_uuid: user_uuid,
|
|
@@ -38,6 +46,12 @@ describe('reports/reducers', function () {
|
|
|
38
46
|
var newState = reducer(state, setPage(newPage));
|
|
39
47
|
expect(newState.get('page').toJS()).to.deep.equal(newPage);
|
|
40
48
|
});
|
|
49
|
+
it('is cleared by clearReportData', function () {
|
|
50
|
+
var newState = reducer(state, clearReportData());
|
|
51
|
+
expect(newState.get('page').toJS()).to.deep.equal({
|
|
52
|
+
number: void 0
|
|
53
|
+
});
|
|
54
|
+
});
|
|
41
55
|
});
|
|
42
56
|
describe('pageData', function () {
|
|
43
57
|
it('is updated by setPageData', function () {
|
|
@@ -48,17 +62,64 @@ describe('reports/reducers', function () {
|
|
|
48
62
|
var newState = reducer(state, setPageData(newPageData));
|
|
49
63
|
expect(newState.get('pageData').toJS()).to.deep.equal(newPageData);
|
|
50
64
|
});
|
|
65
|
+
it('is cleared by clearReportData', function () {
|
|
66
|
+
var newState = reducer(state, clearReportData());
|
|
67
|
+
expect(newState.get('pageData').toJS()).to.deep.equal(new Map());
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
describe('loading', function () {
|
|
71
|
+
it('is updated by setLoading', function () {
|
|
72
|
+
var newState = reducer(state, setLoading(true));
|
|
73
|
+
expect(newState.get('loading')).to.be.true;
|
|
74
|
+
});
|
|
75
|
+
it('is cleared by clearReportData', function () {
|
|
76
|
+
var newState = reducer(state, clearReportData());
|
|
77
|
+
expect(newState.get('loading')).to.be.false;
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
describe('loadingRemainingPages', function () {
|
|
81
|
+
it('is updated by setLoadingRemainingPages', function () {
|
|
82
|
+
var newState = reducer(state, setLoadingRemainingPages(IN_PROGRESS));
|
|
83
|
+
expect(newState.get('loadingRemainingPages')).to.eq(IN_PROGRESS);
|
|
84
|
+
});
|
|
85
|
+
it('is cleared by clearReportData', function () {
|
|
86
|
+
var newState = reducer(state, clearReportData());
|
|
87
|
+
expect(newState.get('loadingRemainingPages')).to.eq(NOT_FETCHING);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
describe('outcomes', function () {
|
|
91
|
+
it('is updated by setReportOutcomes', function () {
|
|
92
|
+
var newOutcome = {
|
|
93
|
+
200: {
|
|
94
|
+
id: 200,
|
|
95
|
+
label: 'yellow',
|
|
96
|
+
title: 'red'
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var newState = reducer(state, setReportOutcomes(newOutcome));
|
|
100
|
+
expect(newState.get('outcomes').toJS()).to.deep.equal(newOutcome);
|
|
101
|
+
});
|
|
102
|
+
it('is cleared by clearReportData', function () {
|
|
103
|
+
var newState = reducer(state, clearReportData());
|
|
104
|
+
expect(newState.get('outcomes').toJS()).to.deep.equal(new Map());
|
|
105
|
+
});
|
|
51
106
|
});
|
|
52
107
|
describe('rollups', function () {
|
|
53
108
|
it('is updated by setRollups', function () {
|
|
54
109
|
var newRollup = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
110
|
+
outcomeId: 200,
|
|
111
|
+
averageScore: 0.9,
|
|
112
|
+
count: 1,
|
|
113
|
+
masteryCount: 1,
|
|
114
|
+
childArtifactCount: 0
|
|
58
115
|
};
|
|
59
116
|
var newState = reducer(state, setRollups([newRollup]));
|
|
60
117
|
expect(newState.get('rollups').toJS()).to.deep.equal([newRollup]);
|
|
61
118
|
});
|
|
119
|
+
it('is cleared by clearReportData', function () {
|
|
120
|
+
var newState = reducer(state, clearReportData());
|
|
121
|
+
expect(newState.get('rollups').toJS()).to.deep.equal([]);
|
|
122
|
+
});
|
|
62
123
|
});
|
|
63
124
|
describe('results', function () {
|
|
64
125
|
it('is updated by setResults', function () {
|
|
@@ -105,6 +166,10 @@ describe('reports/reducers', function () {
|
|
|
105
166
|
pointsPossible: seenResult.pointsPossible
|
|
106
167
|
});
|
|
107
168
|
});
|
|
169
|
+
it('is cleared by clearReportData', function () {
|
|
170
|
+
var newState = reducer(state, clearReportData());
|
|
171
|
+
expect(newState.get('results').toJS()).to.deep.equal(new Map());
|
|
172
|
+
});
|
|
108
173
|
});
|
|
109
174
|
describe('openReportAlignmentId', function () {
|
|
110
175
|
it('is set by VIEW_REPORT_ALIGNMENT', function () {
|
|
@@ -128,5 +193,9 @@ describe('reports/reducers', function () {
|
|
|
128
193
|
var newState = reducer(state, setUsers(newUsers));
|
|
129
194
|
expect(newState.get('users').toJS()).to.deep.equal(newUsers);
|
|
130
195
|
});
|
|
196
|
+
it('is cleared by clearReportData', function () {
|
|
197
|
+
var newState = reducer(state, clearReportData());
|
|
198
|
+
expect(newState.get('users').toJS()).to.deep.equal(new Map());
|
|
199
|
+
});
|
|
131
200
|
});
|
|
132
201
|
});
|
|
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import { createAction } from 'redux-actions';
|
|
4
4
|
import { CALL_SERVICE } from '@instructure/redux-service-middleware';
|
|
5
5
|
import { getUsers, getPageLoading, getPageNumber, getResults, getHighestPageSeen, getPageCount, getRollups, getLoadingRemainingPages } from "./selectors.js";
|
|
6
|
-
import { SET_REPORT_PAGE, SET_REPORT_PAGE_DATA, SET_REPORT_OUTCOMES, SET_REPORT_ROLLUPS, SET_REPORT_RESULTS, SET_REPORT_USERS,
|
|
6
|
+
import { SET_REPORT_PAGE, SET_REPORT_PAGE_DATA, SET_REPORT_OUTCOMES, SET_REPORT_ROLLUPS, SET_REPORT_RESULTS, SET_REPORT_USERS, SET_REPORT_LOADING, SET_REMAINING_PAGES_LOADING, CLEAR_REPORT_DATA, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, ALL_USERS, ERROR, IN_PROGRESS, COMPLETED } from "../../constants.js";
|
|
7
7
|
import { getConfig } from "../config/selectors.js";
|
|
8
8
|
import { setError } from "../context/actions.js";
|
|
9
9
|
/*
|
|
@@ -13,13 +13,14 @@ import { setError } from "../context/actions.js";
|
|
|
13
13
|
export var setReportOutcomes = createAction(SET_REPORT_OUTCOMES);
|
|
14
14
|
export var setRollups = createAction(SET_REPORT_ROLLUPS);
|
|
15
15
|
export var setResults = createAction(SET_REPORT_RESULTS);
|
|
16
|
-
export var viewReportAlignment = createAction(VIEW_REPORT_ALIGNMENT);
|
|
17
|
-
export var closeReportAlignment = createAction(CLOSE_REPORT_ALIGNMENT);
|
|
18
16
|
export var setUsers = createAction(SET_REPORT_USERS);
|
|
19
17
|
export var setPageData = createAction(SET_REPORT_PAGE_DATA);
|
|
20
18
|
export var setPage = createAction(SET_REPORT_PAGE);
|
|
21
19
|
export var setLoading = createAction(SET_REPORT_LOADING);
|
|
22
|
-
export var setLoadingRemainingPages = createAction(SET_REMAINING_PAGES_LOADING);
|
|
20
|
+
export var setLoadingRemainingPages = createAction(SET_REMAINING_PAGES_LOADING);
|
|
21
|
+
export var clearReportData = createAction(CLEAR_REPORT_DATA);
|
|
22
|
+
export var viewReportAlignment = createAction(VIEW_REPORT_ALIGNMENT);
|
|
23
|
+
export var closeReportAlignment = createAction(CLOSE_REPORT_ALIGNMENT); // Function calls to Outcome Service
|
|
23
24
|
|
|
24
25
|
export var loadUsers = function loadUsers(artifactType, artifactId, pageNumber) {
|
|
25
26
|
return function (dispatch, getState, _arg, scope) {
|
|
@@ -80,10 +81,10 @@ export var loadPage = function loadPage(artifactType, artifactId, pageNumber, lo
|
|
|
80
81
|
|
|
81
82
|
if (!loading) {
|
|
82
83
|
if (hasSeenPage) {
|
|
83
|
-
dispatch(setPage({
|
|
84
|
+
return Promise.resolve(dispatch(setPage({
|
|
84
85
|
number: pageNumber,
|
|
85
86
|
loading: false
|
|
86
|
-
}));
|
|
87
|
+
})));
|
|
87
88
|
} else {
|
|
88
89
|
dispatch(setLoading(true));
|
|
89
90
|
dispatch(setPage({
|
|
@@ -246,6 +247,11 @@ export var loadRemainingResults = function loadRemainingResults(artifactType, ar
|
|
|
246
247
|
dispatch(setLoadingRemainingPages(ERROR));
|
|
247
248
|
});
|
|
248
249
|
};
|
|
250
|
+
};
|
|
251
|
+
export var clearReportStore = function clearReportStore() {
|
|
252
|
+
return function (dispatch, _getState, _arg, _scope) {
|
|
253
|
+
dispatch(clearReportData());
|
|
254
|
+
};
|
|
249
255
|
}; // Helpers
|
|
250
256
|
|
|
251
257
|
var getUsersPromise = function getUsersPromise(dispatch, artifactType, artifactId, pageNumber, loadUsersOverride) {
|
|
@@ -1,34 +1,53 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
|
|
4
|
+
var _handleActions, _handleActions2, _handleActions3, _handleActions4, _handleActions5, _handleActions6, _handleActions7, _handleActions8;
|
|
5
|
+
|
|
3
6
|
import { List, Map, fromJS } from 'immutable';
|
|
4
7
|
import { handleActions } from 'redux-actions';
|
|
5
8
|
import { combineReducers } from 'redux-immutable';
|
|
6
9
|
import { NOT_FETCHING } from "../../constants.js";
|
|
7
|
-
import { setPage, setPageData, setUsers, setReportOutcomes, setRollups, setResults, setLoading, setLoadingRemainingPages } from "./actions.js";
|
|
8
|
-
var users = handleActions(
|
|
10
|
+
import { setPage, setPageData, setUsers, setReportOutcomes, setRollups, setResults, setLoading, setLoadingRemainingPages, clearReportData } from "./actions.js";
|
|
11
|
+
var users = handleActions((_handleActions = {}, _defineProperty(_handleActions, setUsers, function (_state, action) {
|
|
9
12
|
return fromJS(action.payload);
|
|
10
|
-
}),
|
|
11
|
-
|
|
13
|
+
}), _defineProperty(_handleActions, clearReportData, function (_state, _action) {
|
|
14
|
+
return Map();
|
|
15
|
+
}), _handleActions), Map());
|
|
16
|
+
var page = handleActions((_handleActions2 = {}, _defineProperty(_handleActions2, setPage, function (state, action) {
|
|
12
17
|
return fromJS(action.payload);
|
|
13
|
-
}),
|
|
18
|
+
}), _defineProperty(_handleActions2, clearReportData, function (_state, _action) {
|
|
19
|
+
return fromJS({
|
|
20
|
+
number: void 0
|
|
21
|
+
});
|
|
22
|
+
}), _handleActions2), fromJS({
|
|
14
23
|
number: void 0
|
|
15
24
|
}));
|
|
16
|
-
var pageData = handleActions(
|
|
25
|
+
var pageData = handleActions((_handleActions3 = {}, _defineProperty(_handleActions3, setPageData, function (state, action) {
|
|
17
26
|
return fromJS(action.payload);
|
|
18
|
-
}),
|
|
19
|
-
|
|
27
|
+
}), _defineProperty(_handleActions3, clearReportData, function (_state, _action) {
|
|
28
|
+
return Map();
|
|
29
|
+
}), _handleActions3), Map());
|
|
30
|
+
var outcomes = handleActions((_handleActions4 = {}, _defineProperty(_handleActions4, setReportOutcomes, function (state, action) {
|
|
20
31
|
return fromJS(action.payload);
|
|
21
|
-
}),
|
|
22
|
-
|
|
32
|
+
}), _defineProperty(_handleActions4, clearReportData, function (_state, _action) {
|
|
33
|
+
return Map();
|
|
34
|
+
}), _handleActions4), Map());
|
|
35
|
+
var rollups = handleActions((_handleActions5 = {}, _defineProperty(_handleActions5, setRollups, function (state, action) {
|
|
23
36
|
return fromJS(action.payload);
|
|
24
|
-
}),
|
|
25
|
-
|
|
37
|
+
}), _defineProperty(_handleActions5, clearReportData, function (_state, _action) {
|
|
38
|
+
return List();
|
|
39
|
+
}), _handleActions5), List());
|
|
40
|
+
var loading = handleActions((_handleActions6 = {}, _defineProperty(_handleActions6, setLoading, function (state, action) {
|
|
26
41
|
return fromJS(action.payload);
|
|
27
|
-
}),
|
|
28
|
-
|
|
42
|
+
}), _defineProperty(_handleActions6, clearReportData, function (_state, _action) {
|
|
43
|
+
return false;
|
|
44
|
+
}), _handleActions6), false);
|
|
45
|
+
var loadingRemainingPages = handleActions((_handleActions7 = {}, _defineProperty(_handleActions7, setLoadingRemainingPages, function (state, action) {
|
|
29
46
|
return fromJS(action.payload);
|
|
30
|
-
}),
|
|
31
|
-
|
|
47
|
+
}), _defineProperty(_handleActions7, clearReportData, function (_state, _action) {
|
|
48
|
+
return NOT_FETCHING;
|
|
49
|
+
}), _handleActions7), NOT_FETCHING);
|
|
50
|
+
var results = handleActions((_handleActions8 = {}, _defineProperty(_handleActions8, setResults, function (state, action) {
|
|
32
51
|
var _action$payload = action.payload,
|
|
33
52
|
outcomeId = _action$payload.outcomeId,
|
|
34
53
|
results = _action$payload.results,
|
|
@@ -51,7 +70,9 @@ var results = handleActions(_defineProperty({}, setResults, function (state, act
|
|
|
51
70
|
var fetchedResults = Map(resultMap);
|
|
52
71
|
var allResults = Map([].concat(_toConsumableArray(fetchedResults), _toConsumableArray(seenResults)));
|
|
53
72
|
return state.set(outcomeId, allResults);
|
|
54
|
-
}),
|
|
73
|
+
}), _defineProperty(_handleActions8, clearReportData, function (_state, _action) {
|
|
74
|
+
return Map();
|
|
75
|
+
}), _handleActions8), Map());
|
|
55
76
|
var openReportAlignmentId = handleActions({
|
|
56
77
|
VIEW_REPORT_ALIGNMENT: function VIEW_REPORT_ALIGNMENT(state, action) {
|
|
57
78
|
return action.payload;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import chai, { expect } from 'chai';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import sinon from 'sinon';
|
|
4
|
-
import { shallow } from 'enzyme';
|
|
4
|
+
import { shallow, mount } from 'enzyme';
|
|
5
5
|
import OutcomesPerStudent from "../index.js";
|
|
6
6
|
import checkA11y from "../../../test/checkA11y.js";
|
|
7
7
|
var styles = {
|
|
@@ -29,6 +29,7 @@ describe('OutcomesPerStudent/index', function () {
|
|
|
29
29
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30
30
|
return Object.assign({
|
|
31
31
|
loadPage: sinon.stub().returns(Promise.resolve()),
|
|
32
|
+
clearReportStore: sinon.spy(),
|
|
32
33
|
getReportOutcome: sinon.stub().returns({
|
|
33
34
|
id: 1,
|
|
34
35
|
label: 'Foo.PRQ.2',
|
|
@@ -167,6 +168,13 @@ describe('OutcomesPerStudent/index', function () {
|
|
|
167
168
|
});
|
|
168
169
|
});
|
|
169
170
|
});
|
|
171
|
+
it('calls clearReportStore when about to unmount', function () {
|
|
172
|
+
var props = makeProps();
|
|
173
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(OutcomesPerStudent, props));
|
|
174
|
+
expect(props.clearReportStore).to.not.have.been.called;
|
|
175
|
+
wrapper.unmount();
|
|
176
|
+
expect(props.clearReportStore).to.have.been.calledOnce;
|
|
177
|
+
});
|
|
170
178
|
it('meets a11y standards', function () {
|
|
171
179
|
return checkA11y( /*#__PURE__*/React.createElement(OutcomesPerStudent, makeProps()));
|
|
172
180
|
});
|
|
@@ -342,6 +342,11 @@ var OutcomesPerStudentReport = (_dec = themeable(theme, styles), _dec(_class = (
|
|
|
342
342
|
return setError(e);
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "componentWillUnmount",
|
|
347
|
+
value: function componentWillUnmount() {
|
|
348
|
+
this.props.clearReportStore();
|
|
349
|
+
}
|
|
345
350
|
}, {
|
|
346
351
|
key: "renderReportTable",
|
|
347
352
|
value: function renderReportTable() {
|
|
@@ -480,6 +485,7 @@ var OutcomesPerStudentReport = (_dec = themeable(theme, styles), _dec(_class = (
|
|
|
480
485
|
isOpen: PropTypes.func.isRequired,
|
|
481
486
|
closeReportAlignment: PropTypes.func.isRequired,
|
|
482
487
|
features: PropTypes.array.isRequired,
|
|
488
|
+
clearReportStore: PropTypes.func.isRequired,
|
|
483
489
|
scope: PropTypes.string.isRequired
|
|
484
490
|
}, _class2.defaultProps = {
|
|
485
491
|
loadUsersOverride: void 0,
|
|
@@ -44,6 +44,7 @@ export var SET_REPORT_RESULTS = 'SET_REPORT_RESULTS';
|
|
|
44
44
|
export var SET_REPORT_USERS = 'SET_REPORT_USERS';
|
|
45
45
|
export var SET_REPORT_LOADING = 'SET_REPORT_LOADING';
|
|
46
46
|
export var SET_REMAINING_PAGES_LOADING = 'SET_REMAINING_PAGES_LOADING';
|
|
47
|
+
export var CLEAR_REPORT_DATA = 'CLEAR_REPORT_DATA';
|
|
47
48
|
export var VIEW_REPORT_ALIGNMENT = 'VIEW_REPORT_ALIGNMENT';
|
|
48
49
|
export var CLOSE_REPORT_ALIGNMENT = 'CLOSE_REPORT_ALIGNMENT';
|
|
49
50
|
export var ALL_USERS = 'ALL_USERS';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { connect } from 'react-redux';
|
|
2
2
|
import { bindActionCreators as bindScopedActionCreators } from 'multireducer';
|
|
3
3
|
import OutcomesPerStudent from "../components/OutcomesPerStudent/index.js";
|
|
4
|
-
import { loadPage, loadRemainingPages, viewReportAlignment, closeReportAlignment } from "../store/report/actions.js";
|
|
4
|
+
import { loadPage, loadRemainingPages, viewReportAlignment, closeReportAlignment, clearReportStore } from "../store/report/actions.js";
|
|
5
5
|
import { setError } from "../store/context/actions.js";
|
|
6
6
|
import { formatCSVData, getLoading, getPageCount, getPageNumber, getUsers, getReportOutcome, getRollups, getScore, getLoadingRemainingPages, isOpen, hasAnyOutcomes } from "../store/report/selectors.js";
|
|
7
7
|
import { getFeatures } from "../store/features/selectors.js";
|
|
@@ -33,7 +33,8 @@ function mapDispatchToProps(dispatch, ownProps) {
|
|
|
33
33
|
loadRemainingPages: loadRemainingPages,
|
|
34
34
|
viewReportAlignment: viewReportAlignment,
|
|
35
35
|
closeReportAlignment: closeReportAlignment,
|
|
36
|
-
setError: setError
|
|
36
|
+
setError: setError,
|
|
37
|
+
clearReportStore: clearReportStore
|
|
37
38
|
}, dispatch, scope);
|
|
38
39
|
}
|
|
39
40
|
/* eslint-enable react-redux/mapDispatchToProps-returns-object */
|
|
@@ -5,7 +5,7 @@ import { fromJS, Map } from 'immutable';
|
|
|
5
5
|
import { wrapAction } from 'multireducer';
|
|
6
6
|
import sinon from 'sinon';
|
|
7
7
|
import * as actions from "../actions.js";
|
|
8
|
-
import { SET_ERROR, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, NOT_FETCHING, IN_PROGRESS, COMPLETED, ERROR } from "../../../constants.js";
|
|
8
|
+
import { SET_ERROR, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, CLEAR_REPORT_DATA, NOT_FETCHING, IN_PROGRESS, COMPLETED, ERROR } from "../../../constants.js";
|
|
9
9
|
import { setError } from "../../context/actions.js";
|
|
10
10
|
import createMockStore, { scopeActions } from "../../../test/createMockStore.js";
|
|
11
11
|
var scopedActions = scopeActions(_objectSpread(_objectSpread({}, actions), {}, {
|
|
@@ -600,6 +600,27 @@ describe('report/actions', function () {
|
|
|
600
600
|
});
|
|
601
601
|
});
|
|
602
602
|
});
|
|
603
|
+
describe('clearReportStore', function () {
|
|
604
|
+
it('clears the report store', function () {
|
|
605
|
+
var state = {
|
|
606
|
+
scopeForTest: {
|
|
607
|
+
report: {
|
|
608
|
+
page: {
|
|
609
|
+
number: 0
|
|
610
|
+
},
|
|
611
|
+
users: {
|
|
612
|
+
1: users,
|
|
613
|
+
2: getUsersResponse.users
|
|
614
|
+
},
|
|
615
|
+
rollups: rollups
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
var store = createMockStore(Map(fromJS(state)), service);
|
|
620
|
+
store.dispatch(actions.clearReportStore(state, 'scopeForTest'));
|
|
621
|
+
expect(store.getActions().slice(-1)[0].type).to.eq(CLEAR_REPORT_DATA);
|
|
622
|
+
});
|
|
623
|
+
});
|
|
603
624
|
describe('getUserList', function () {
|
|
604
625
|
it('returns a list of user uuids from page 1', function () {
|
|
605
626
|
var state = {
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import { expect } from 'chai';
|
|
3
3
|
import { fromJS } from 'immutable';
|
|
4
|
-
import {
|
|
4
|
+
import { IN_PROGRESS, NOT_FETCHING } from "../../../constants.js";
|
|
5
|
+
import { setPage, setPageData, setRollups, setResults, setUsers, setReportOutcomes, setLoading, setLoadingRemainingPages, clearReportData, viewReportAlignment, closeReportAlignment } from "../actions.js";
|
|
5
6
|
import reducer from "../reducers.js";
|
|
6
7
|
describe('reports/reducers', function () {
|
|
7
8
|
// eslint-disable-next-line camelcase
|
|
8
9
|
var user_uuid = '560fddd9-9b16-4e3a-969c-2f095e7afc78';
|
|
9
10
|
var state = fromJS({
|
|
10
|
-
|
|
11
|
+
outcomes: {
|
|
11
12
|
100: {
|
|
12
13
|
id: 100,
|
|
13
14
|
label: 'blue',
|
|
14
15
|
title: 'green'
|
|
15
16
|
}
|
|
16
17
|
},
|
|
18
|
+
rollups: [{
|
|
19
|
+
outcomeId: '100',
|
|
20
|
+
averageScore: 0.8,
|
|
21
|
+
count: 1,
|
|
22
|
+
masteryCount: 1,
|
|
23
|
+
childArtifactCount: 0
|
|
24
|
+
}],
|
|
17
25
|
results: {
|
|
18
26
|
1955: _defineProperty({}, user_uuid, {
|
|
19
27
|
user_uuid: user_uuid,
|
|
@@ -38,6 +46,12 @@ describe('reports/reducers', function () {
|
|
|
38
46
|
var newState = reducer(state, setPage(newPage));
|
|
39
47
|
expect(newState.get('page').toJS()).to.deep.equal(newPage);
|
|
40
48
|
});
|
|
49
|
+
it('is cleared by clearReportData', function () {
|
|
50
|
+
var newState = reducer(state, clearReportData());
|
|
51
|
+
expect(newState.get('page').toJS()).to.deep.equal({
|
|
52
|
+
number: void 0
|
|
53
|
+
});
|
|
54
|
+
});
|
|
41
55
|
});
|
|
42
56
|
describe('pageData', function () {
|
|
43
57
|
it('is updated by setPageData', function () {
|
|
@@ -48,17 +62,64 @@ describe('reports/reducers', function () {
|
|
|
48
62
|
var newState = reducer(state, setPageData(newPageData));
|
|
49
63
|
expect(newState.get('pageData').toJS()).to.deep.equal(newPageData);
|
|
50
64
|
});
|
|
65
|
+
it('is cleared by clearReportData', function () {
|
|
66
|
+
var newState = reducer(state, clearReportData());
|
|
67
|
+
expect(newState.get('pageData').toJS()).to.deep.equal(new Map());
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
describe('loading', function () {
|
|
71
|
+
it('is updated by setLoading', function () {
|
|
72
|
+
var newState = reducer(state, setLoading(true));
|
|
73
|
+
expect(newState.get('loading')).to.be.true;
|
|
74
|
+
});
|
|
75
|
+
it('is cleared by clearReportData', function () {
|
|
76
|
+
var newState = reducer(state, clearReportData());
|
|
77
|
+
expect(newState.get('loading')).to.be.false;
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
describe('loadingRemainingPages', function () {
|
|
81
|
+
it('is updated by setLoadingRemainingPages', function () {
|
|
82
|
+
var newState = reducer(state, setLoadingRemainingPages(IN_PROGRESS));
|
|
83
|
+
expect(newState.get('loadingRemainingPages')).to.eq(IN_PROGRESS);
|
|
84
|
+
});
|
|
85
|
+
it('is cleared by clearReportData', function () {
|
|
86
|
+
var newState = reducer(state, clearReportData());
|
|
87
|
+
expect(newState.get('loadingRemainingPages')).to.eq(NOT_FETCHING);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
describe('outcomes', function () {
|
|
91
|
+
it('is updated by setReportOutcomes', function () {
|
|
92
|
+
var newOutcome = {
|
|
93
|
+
200: {
|
|
94
|
+
id: 200,
|
|
95
|
+
label: 'yellow',
|
|
96
|
+
title: 'red'
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var newState = reducer(state, setReportOutcomes(newOutcome));
|
|
100
|
+
expect(newState.get('outcomes').toJS()).to.deep.equal(newOutcome);
|
|
101
|
+
});
|
|
102
|
+
it('is cleared by clearReportData', function () {
|
|
103
|
+
var newState = reducer(state, clearReportData());
|
|
104
|
+
expect(newState.get('outcomes').toJS()).to.deep.equal(new Map());
|
|
105
|
+
});
|
|
51
106
|
});
|
|
52
107
|
describe('rollups', function () {
|
|
53
108
|
it('is updated by setRollups', function () {
|
|
54
109
|
var newRollup = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
110
|
+
outcomeId: 200,
|
|
111
|
+
averageScore: 0.9,
|
|
112
|
+
count: 1,
|
|
113
|
+
masteryCount: 1,
|
|
114
|
+
childArtifactCount: 0
|
|
58
115
|
};
|
|
59
116
|
var newState = reducer(state, setRollups([newRollup]));
|
|
60
117
|
expect(newState.get('rollups').toJS()).to.deep.equal([newRollup]);
|
|
61
118
|
});
|
|
119
|
+
it('is cleared by clearReportData', function () {
|
|
120
|
+
var newState = reducer(state, clearReportData());
|
|
121
|
+
expect(newState.get('rollups').toJS()).to.deep.equal([]);
|
|
122
|
+
});
|
|
62
123
|
});
|
|
63
124
|
describe('results', function () {
|
|
64
125
|
it('is updated by setResults', function () {
|
|
@@ -105,6 +166,10 @@ describe('reports/reducers', function () {
|
|
|
105
166
|
pointsPossible: seenResult.pointsPossible
|
|
106
167
|
});
|
|
107
168
|
});
|
|
169
|
+
it('is cleared by clearReportData', function () {
|
|
170
|
+
var newState = reducer(state, clearReportData());
|
|
171
|
+
expect(newState.get('results').toJS()).to.deep.equal(new Map());
|
|
172
|
+
});
|
|
108
173
|
});
|
|
109
174
|
describe('openReportAlignmentId', function () {
|
|
110
175
|
it('is set by VIEW_REPORT_ALIGNMENT', function () {
|
|
@@ -128,5 +193,9 @@ describe('reports/reducers', function () {
|
|
|
128
193
|
var newState = reducer(state, setUsers(newUsers));
|
|
129
194
|
expect(newState.get('users').toJS()).to.deep.equal(newUsers);
|
|
130
195
|
});
|
|
196
|
+
it('is cleared by clearReportData', function () {
|
|
197
|
+
var newState = reducer(state, clearReportData());
|
|
198
|
+
expect(newState.get('users').toJS()).to.deep.equal(new Map());
|
|
199
|
+
});
|
|
131
200
|
});
|
|
132
201
|
});
|