@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.
Files changed (641) hide show
  1. package/es/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  2. package/es/components/OutcomesPerStudent/index.js +6 -0
  3. package/es/constants.js +1 -0
  4. package/es/containers/ConnectedOutcomesPerStudent.js +3 -2
  5. package/es/store/report/__tests__/actions.test.js +22 -1
  6. package/es/store/report/__tests__/reducers.test.js +74 -5
  7. package/es/store/report/actions.js +12 -6
  8. package/es/store/report/reducers.js +38 -17
  9. package/es/translated/ar/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  10. package/es/translated/ar/components/OutcomesPerStudent/index.js +6 -0
  11. package/es/translated/ar/constants.js +1 -0
  12. package/es/translated/ar/containers/ConnectedOutcomesPerStudent.js +3 -2
  13. package/es/translated/ar/store/report/__tests__/actions.test.js +22 -1
  14. package/es/translated/ar/store/report/__tests__/reducers.test.js +74 -5
  15. package/es/translated/ar/store/report/actions.js +12 -6
  16. package/es/translated/ar/store/report/reducers.js +38 -17
  17. package/es/translated/ca/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  18. package/es/translated/ca/components/OutcomesPerStudent/index.js +6 -0
  19. package/es/translated/ca/constants.js +1 -0
  20. package/es/translated/ca/containers/ConnectedOutcomesPerStudent.js +3 -2
  21. package/es/translated/ca/store/report/__tests__/actions.test.js +22 -1
  22. package/es/translated/ca/store/report/__tests__/reducers.test.js +74 -5
  23. package/es/translated/ca/store/report/actions.js +12 -6
  24. package/es/translated/ca/store/report/reducers.js +38 -17
  25. package/es/translated/cy/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  26. package/es/translated/cy/components/OutcomesPerStudent/index.js +6 -0
  27. package/es/translated/cy/constants.js +1 -0
  28. package/es/translated/cy/containers/ConnectedOutcomesPerStudent.js +3 -2
  29. package/es/translated/cy/store/report/__tests__/actions.test.js +22 -1
  30. package/es/translated/cy/store/report/__tests__/reducers.test.js +74 -5
  31. package/es/translated/cy/store/report/actions.js +12 -6
  32. package/es/translated/cy/store/report/reducers.js +38 -17
  33. package/es/translated/da/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  34. package/es/translated/da/components/OutcomesPerStudent/index.js +6 -0
  35. package/es/translated/da/constants.js +1 -0
  36. package/es/translated/da/containers/ConnectedOutcomesPerStudent.js +3 -2
  37. package/es/translated/da/store/report/__tests__/actions.test.js +22 -1
  38. package/es/translated/da/store/report/__tests__/reducers.test.js +74 -5
  39. package/es/translated/da/store/report/actions.js +12 -6
  40. package/es/translated/da/store/report/reducers.js +38 -17
  41. package/es/translated/da-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  42. package/es/translated/da-x-k12/components/OutcomesPerStudent/index.js +6 -0
  43. package/es/translated/da-x-k12/constants.js +1 -0
  44. package/es/translated/da-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
  45. package/es/translated/da-x-k12/store/report/__tests__/actions.test.js +22 -1
  46. package/es/translated/da-x-k12/store/report/__tests__/reducers.test.js +74 -5
  47. package/es/translated/da-x-k12/store/report/actions.js +12 -6
  48. package/es/translated/da-x-k12/store/report/reducers.js +38 -17
  49. package/es/translated/de/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  50. package/es/translated/de/components/OutcomesPerStudent/index.js +6 -0
  51. package/es/translated/de/constants.js +1 -0
  52. package/es/translated/de/containers/ConnectedOutcomesPerStudent.js +3 -2
  53. package/es/translated/de/store/report/__tests__/actions.test.js +22 -1
  54. package/es/translated/de/store/report/__tests__/reducers.test.js +74 -5
  55. package/es/translated/de/store/report/actions.js +12 -6
  56. package/es/translated/de/store/report/reducers.js +38 -17
  57. package/es/translated/en/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  58. package/es/translated/en/components/OutcomesPerStudent/index.js +6 -0
  59. package/es/translated/en/constants.js +1 -0
  60. package/es/translated/en/containers/ConnectedOutcomesPerStudent.js +3 -2
  61. package/es/translated/en/store/report/__tests__/actions.test.js +22 -1
  62. package/es/translated/en/store/report/__tests__/reducers.test.js +74 -5
  63. package/es/translated/en/store/report/actions.js +12 -6
  64. package/es/translated/en/store/report/reducers.js +38 -17
  65. package/es/translated/en-AU/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  66. package/es/translated/en-AU/components/OutcomesPerStudent/index.js +6 -0
  67. package/es/translated/en-AU/constants.js +1 -0
  68. package/es/translated/en-AU/containers/ConnectedOutcomesPerStudent.js +3 -2
  69. package/es/translated/en-AU/store/report/__tests__/actions.test.js +22 -1
  70. package/es/translated/en-AU/store/report/__tests__/reducers.test.js +74 -5
  71. package/es/translated/en-AU/store/report/actions.js +12 -6
  72. package/es/translated/en-AU/store/report/reducers.js +38 -17
  73. package/es/translated/en-AU-x-unimelb/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  74. package/es/translated/en-AU-x-unimelb/components/OutcomesPerStudent/index.js +6 -0
  75. package/es/translated/en-AU-x-unimelb/constants.js +1 -0
  76. package/es/translated/en-AU-x-unimelb/containers/ConnectedOutcomesPerStudent.js +3 -2
  77. package/es/translated/en-AU-x-unimelb/store/report/__tests__/actions.test.js +22 -1
  78. package/es/translated/en-AU-x-unimelb/store/report/__tests__/reducers.test.js +74 -5
  79. package/es/translated/en-AU-x-unimelb/store/report/actions.js +12 -6
  80. package/es/translated/en-AU-x-unimelb/store/report/reducers.js +38 -17
  81. package/es/translated/en-CA/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  82. package/es/translated/en-CA/components/OutcomesPerStudent/index.js +6 -0
  83. package/es/translated/en-CA/constants.js +1 -0
  84. package/es/translated/en-CA/containers/ConnectedOutcomesPerStudent.js +3 -2
  85. package/es/translated/en-CA/store/report/__tests__/actions.test.js +22 -1
  86. package/es/translated/en-CA/store/report/__tests__/reducers.test.js +74 -5
  87. package/es/translated/en-CA/store/report/actions.js +12 -6
  88. package/es/translated/en-CA/store/report/reducers.js +38 -17
  89. package/es/translated/en-CY/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  90. package/es/translated/en-CY/components/OutcomesPerStudent/index.js +6 -0
  91. package/es/translated/en-CY/constants.js +1 -0
  92. package/es/translated/en-CY/containers/ConnectedOutcomesPerStudent.js +3 -2
  93. package/es/translated/en-CY/store/report/__tests__/actions.test.js +22 -1
  94. package/es/translated/en-CY/store/report/__tests__/reducers.test.js +74 -5
  95. package/es/translated/en-CY/store/report/actions.js +12 -6
  96. package/es/translated/en-CY/store/report/reducers.js +38 -17
  97. package/es/translated/en-GB/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  98. package/es/translated/en-GB/components/OutcomesPerStudent/index.js +6 -0
  99. package/es/translated/en-GB/constants.js +1 -0
  100. package/es/translated/en-GB/containers/ConnectedOutcomesPerStudent.js +3 -2
  101. package/es/translated/en-GB/store/report/__tests__/actions.test.js +22 -1
  102. package/es/translated/en-GB/store/report/__tests__/reducers.test.js +74 -5
  103. package/es/translated/en-GB/store/report/actions.js +12 -6
  104. package/es/translated/en-GB/store/report/reducers.js +38 -17
  105. package/es/translated/en-GB-x-ukhe/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  106. package/es/translated/en-GB-x-ukhe/components/OutcomesPerStudent/index.js +6 -0
  107. package/es/translated/en-GB-x-ukhe/constants.js +1 -0
  108. package/es/translated/en-GB-x-ukhe/containers/ConnectedOutcomesPerStudent.js +3 -2
  109. package/es/translated/en-GB-x-ukhe/store/report/__tests__/actions.test.js +22 -1
  110. package/es/translated/en-GB-x-ukhe/store/report/__tests__/reducers.test.js +74 -5
  111. package/es/translated/en-GB-x-ukhe/store/report/actions.js +12 -6
  112. package/es/translated/en-GB-x-ukhe/store/report/reducers.js +38 -17
  113. package/es/translated/en-IE/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  114. package/es/translated/en-IE/components/OutcomesPerStudent/index.js +6 -0
  115. package/es/translated/en-IE/constants.js +1 -0
  116. package/es/translated/en-IE/containers/ConnectedOutcomesPerStudent.js +3 -2
  117. package/es/translated/en-IE/store/report/__tests__/actions.test.js +22 -1
  118. package/es/translated/en-IE/store/report/__tests__/reducers.test.js +74 -5
  119. package/es/translated/en-IE/store/report/actions.js +12 -6
  120. package/es/translated/en-IE/store/report/reducers.js +38 -17
  121. package/es/translated/es/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  122. package/es/translated/es/components/OutcomesPerStudent/index.js +6 -0
  123. package/es/translated/es/constants.js +1 -0
  124. package/es/translated/es/containers/ConnectedOutcomesPerStudent.js +3 -2
  125. package/es/translated/es/store/report/__tests__/actions.test.js +22 -1
  126. package/es/translated/es/store/report/__tests__/reducers.test.js +74 -5
  127. package/es/translated/es/store/report/actions.js +12 -6
  128. package/es/translated/es/store/report/reducers.js +38 -17
  129. package/es/translated/es-ES/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  130. package/es/translated/es-ES/components/OutcomesPerStudent/index.js +6 -0
  131. package/es/translated/es-ES/constants.js +1 -0
  132. package/es/translated/es-ES/containers/ConnectedOutcomesPerStudent.js +3 -2
  133. package/es/translated/es-ES/store/report/__tests__/actions.test.js +22 -1
  134. package/es/translated/es-ES/store/report/__tests__/reducers.test.js +74 -5
  135. package/es/translated/es-ES/store/report/actions.js +12 -6
  136. package/es/translated/es-ES/store/report/reducers.js +38 -17
  137. package/es/translated/es_ES/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  138. package/es/translated/es_ES/components/OutcomesPerStudent/index.js +6 -0
  139. package/es/translated/es_ES/constants.js +1 -0
  140. package/es/translated/es_ES/containers/ConnectedOutcomesPerStudent.js +3 -2
  141. package/es/translated/es_ES/store/report/__tests__/actions.test.js +22 -1
  142. package/es/translated/es_ES/store/report/__tests__/reducers.test.js +74 -5
  143. package/es/translated/es_ES/store/report/actions.js +12 -6
  144. package/es/translated/es_ES/store/report/reducers.js +38 -17
  145. package/es/translated/fi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  146. package/es/translated/fi/components/OutcomesPerStudent/index.js +6 -0
  147. package/es/translated/fi/constants.js +1 -0
  148. package/es/translated/fi/containers/ConnectedOutcomesPerStudent.js +3 -2
  149. package/es/translated/fi/store/report/__tests__/actions.test.js +22 -1
  150. package/es/translated/fi/store/report/__tests__/reducers.test.js +74 -5
  151. package/es/translated/fi/store/report/actions.js +12 -6
  152. package/es/translated/fi/store/report/reducers.js +38 -17
  153. package/es/translated/fr/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  154. package/es/translated/fr/components/OutcomesPerStudent/index.js +6 -0
  155. package/es/translated/fr/constants.js +1 -0
  156. package/es/translated/fr/containers/ConnectedOutcomesPerStudent.js +3 -2
  157. package/es/translated/fr/store/report/__tests__/actions.test.js +22 -1
  158. package/es/translated/fr/store/report/__tests__/reducers.test.js +74 -5
  159. package/es/translated/fr/store/report/actions.js +12 -6
  160. package/es/translated/fr/store/report/reducers.js +38 -17
  161. package/es/translated/fr-CA/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  162. package/es/translated/fr-CA/components/OutcomesPerStudent/index.js +6 -0
  163. package/es/translated/fr-CA/constants.js +1 -0
  164. package/es/translated/fr-CA/containers/ConnectedOutcomesPerStudent.js +3 -2
  165. package/es/translated/fr-CA/store/report/__tests__/actions.test.js +22 -1
  166. package/es/translated/fr-CA/store/report/__tests__/reducers.test.js +74 -5
  167. package/es/translated/fr-CA/store/report/actions.js +12 -6
  168. package/es/translated/fr-CA/store/report/reducers.js +38 -17
  169. package/es/translated/ht/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  170. package/es/translated/ht/components/OutcomesPerStudent/index.js +6 -0
  171. package/es/translated/ht/constants.js +1 -0
  172. package/es/translated/ht/containers/ConnectedOutcomesPerStudent.js +3 -2
  173. package/es/translated/ht/store/report/__tests__/actions.test.js +22 -1
  174. package/es/translated/ht/store/report/__tests__/reducers.test.js +74 -5
  175. package/es/translated/ht/store/report/actions.js +12 -6
  176. package/es/translated/ht/store/report/reducers.js +38 -17
  177. package/es/translated/is/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  178. package/es/translated/is/components/OutcomesPerStudent/index.js +6 -0
  179. package/es/translated/is/constants.js +1 -0
  180. package/es/translated/is/containers/ConnectedOutcomesPerStudent.js +3 -2
  181. package/es/translated/is/store/report/__tests__/actions.test.js +22 -1
  182. package/es/translated/is/store/report/__tests__/reducers.test.js +74 -5
  183. package/es/translated/is/store/report/actions.js +12 -6
  184. package/es/translated/is/store/report/reducers.js +38 -17
  185. package/es/translated/it/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  186. package/es/translated/it/components/OutcomesPerStudent/index.js +6 -0
  187. package/es/translated/it/constants.js +1 -0
  188. package/es/translated/it/containers/ConnectedOutcomesPerStudent.js +3 -2
  189. package/es/translated/it/store/report/__tests__/actions.test.js +22 -1
  190. package/es/translated/it/store/report/__tests__/reducers.test.js +74 -5
  191. package/es/translated/it/store/report/actions.js +12 -6
  192. package/es/translated/it/store/report/reducers.js +38 -17
  193. package/es/translated/ja/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  194. package/es/translated/ja/components/OutcomesPerStudent/index.js +6 -0
  195. package/es/translated/ja/constants.js +1 -0
  196. package/es/translated/ja/containers/ConnectedOutcomesPerStudent.js +3 -2
  197. package/es/translated/ja/store/report/__tests__/actions.test.js +22 -1
  198. package/es/translated/ja/store/report/__tests__/reducers.test.js +74 -5
  199. package/es/translated/ja/store/report/actions.js +12 -6
  200. package/es/translated/ja/store/report/reducers.js +38 -17
  201. package/es/translated/mi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  202. package/es/translated/mi/components/OutcomesPerStudent/index.js +6 -0
  203. package/es/translated/mi/constants.js +1 -0
  204. package/es/translated/mi/containers/ConnectedOutcomesPerStudent.js +3 -2
  205. package/es/translated/mi/store/report/__tests__/actions.test.js +22 -1
  206. package/es/translated/mi/store/report/__tests__/reducers.test.js +74 -5
  207. package/es/translated/mi/store/report/actions.js +12 -6
  208. package/es/translated/mi/store/report/reducers.js +38 -17
  209. package/es/translated/nb/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  210. package/es/translated/nb/components/OutcomesPerStudent/index.js +6 -0
  211. package/es/translated/nb/constants.js +1 -0
  212. package/es/translated/nb/containers/ConnectedOutcomesPerStudent.js +3 -2
  213. package/es/translated/nb/store/report/__tests__/actions.test.js +22 -1
  214. package/es/translated/nb/store/report/__tests__/reducers.test.js +74 -5
  215. package/es/translated/nb/store/report/actions.js +12 -6
  216. package/es/translated/nb/store/report/reducers.js +38 -17
  217. package/es/translated/nb-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  218. package/es/translated/nb-x-k12/components/OutcomesPerStudent/index.js +6 -0
  219. package/es/translated/nb-x-k12/constants.js +1 -0
  220. package/es/translated/nb-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
  221. package/es/translated/nb-x-k12/store/report/__tests__/actions.test.js +22 -1
  222. package/es/translated/nb-x-k12/store/report/__tests__/reducers.test.js +74 -5
  223. package/es/translated/nb-x-k12/store/report/actions.js +12 -6
  224. package/es/translated/nb-x-k12/store/report/reducers.js +38 -17
  225. package/es/translated/nl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  226. package/es/translated/nl/components/OutcomesPerStudent/index.js +6 -0
  227. package/es/translated/nl/constants.js +1 -0
  228. package/es/translated/nl/containers/ConnectedOutcomesPerStudent.js +3 -2
  229. package/es/translated/nl/store/report/__tests__/actions.test.js +22 -1
  230. package/es/translated/nl/store/report/__tests__/reducers.test.js +74 -5
  231. package/es/translated/nl/store/report/actions.js +12 -6
  232. package/es/translated/nl/store/report/reducers.js +38 -17
  233. package/es/translated/pl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  234. package/es/translated/pl/components/OutcomesPerStudent/index.js +6 -0
  235. package/es/translated/pl/constants.js +1 -0
  236. package/es/translated/pl/containers/ConnectedOutcomesPerStudent.js +3 -2
  237. package/es/translated/pl/store/report/__tests__/actions.test.js +22 -1
  238. package/es/translated/pl/store/report/__tests__/reducers.test.js +74 -5
  239. package/es/translated/pl/store/report/actions.js +12 -6
  240. package/es/translated/pl/store/report/reducers.js +38 -17
  241. package/es/translated/pt/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  242. package/es/translated/pt/components/OutcomesPerStudent/index.js +6 -0
  243. package/es/translated/pt/constants.js +1 -0
  244. package/es/translated/pt/containers/ConnectedOutcomesPerStudent.js +3 -2
  245. package/es/translated/pt/store/report/__tests__/actions.test.js +22 -1
  246. package/es/translated/pt/store/report/__tests__/reducers.test.js +74 -5
  247. package/es/translated/pt/store/report/actions.js +12 -6
  248. package/es/translated/pt/store/report/reducers.js +38 -17
  249. package/es/translated/pt-BR/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  250. package/es/translated/pt-BR/components/OutcomesPerStudent/index.js +6 -0
  251. package/es/translated/pt-BR/constants.js +1 -0
  252. package/es/translated/pt-BR/containers/ConnectedOutcomesPerStudent.js +3 -2
  253. package/es/translated/pt-BR/store/report/__tests__/actions.test.js +22 -1
  254. package/es/translated/pt-BR/store/report/__tests__/reducers.test.js +74 -5
  255. package/es/translated/pt-BR/store/report/actions.js +12 -6
  256. package/es/translated/pt-BR/store/report/reducers.js +38 -17
  257. package/es/translated/ru/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  258. package/es/translated/ru/components/OutcomesPerStudent/index.js +6 -0
  259. package/es/translated/ru/constants.js +1 -0
  260. package/es/translated/ru/containers/ConnectedOutcomesPerStudent.js +3 -2
  261. package/es/translated/ru/store/report/__tests__/actions.test.js +22 -1
  262. package/es/translated/ru/store/report/__tests__/reducers.test.js +74 -5
  263. package/es/translated/ru/store/report/actions.js +12 -6
  264. package/es/translated/ru/store/report/reducers.js +38 -17
  265. package/es/translated/sl/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  266. package/es/translated/sl/components/OutcomesPerStudent/index.js +6 -0
  267. package/es/translated/sl/constants.js +1 -0
  268. package/es/translated/sl/containers/ConnectedOutcomesPerStudent.js +3 -2
  269. package/es/translated/sl/store/report/__tests__/actions.test.js +22 -1
  270. package/es/translated/sl/store/report/__tests__/reducers.test.js +74 -5
  271. package/es/translated/sl/store/report/actions.js +12 -6
  272. package/es/translated/sl/store/report/reducers.js +38 -17
  273. package/es/translated/sv/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  274. package/es/translated/sv/components/OutcomesPerStudent/index.js +6 -0
  275. package/es/translated/sv/constants.js +1 -0
  276. package/es/translated/sv/containers/ConnectedOutcomesPerStudent.js +3 -2
  277. package/es/translated/sv/store/report/__tests__/actions.test.js +22 -1
  278. package/es/translated/sv/store/report/__tests__/reducers.test.js +74 -5
  279. package/es/translated/sv/store/report/actions.js +12 -6
  280. package/es/translated/sv/store/report/reducers.js +38 -17
  281. package/es/translated/sv-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  282. package/es/translated/sv-x-k12/components/OutcomesPerStudent/index.js +6 -0
  283. package/es/translated/sv-x-k12/constants.js +1 -0
  284. package/es/translated/sv-x-k12/containers/ConnectedOutcomesPerStudent.js +3 -2
  285. package/es/translated/sv-x-k12/store/report/__tests__/actions.test.js +22 -1
  286. package/es/translated/sv-x-k12/store/report/__tests__/reducers.test.js +74 -5
  287. package/es/translated/sv-x-k12/store/report/actions.js +12 -6
  288. package/es/translated/sv-x-k12/store/report/reducers.js +38 -17
  289. package/es/translated/th/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  290. package/es/translated/th/components/OutcomesPerStudent/index.js +6 -0
  291. package/es/translated/th/constants.js +1 -0
  292. package/es/translated/th/containers/ConnectedOutcomesPerStudent.js +3 -2
  293. package/es/translated/th/store/report/__tests__/actions.test.js +22 -1
  294. package/es/translated/th/store/report/__tests__/reducers.test.js +74 -5
  295. package/es/translated/th/store/report/actions.js +12 -6
  296. package/es/translated/th/store/report/reducers.js +38 -17
  297. package/es/translated/vi/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  298. package/es/translated/vi/components/OutcomesPerStudent/index.js +6 -0
  299. package/es/translated/vi/constants.js +1 -0
  300. package/es/translated/vi/containers/ConnectedOutcomesPerStudent.js +3 -2
  301. package/es/translated/vi/store/report/__tests__/actions.test.js +22 -1
  302. package/es/translated/vi/store/report/__tests__/reducers.test.js +74 -5
  303. package/es/translated/vi/store/report/actions.js +12 -6
  304. package/es/translated/vi/store/report/reducers.js +38 -17
  305. package/es/translated/zh-Hans/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  306. package/es/translated/zh-Hans/components/OutcomesPerStudent/index.js +6 -0
  307. package/es/translated/zh-Hans/constants.js +1 -0
  308. package/es/translated/zh-Hans/containers/ConnectedOutcomesPerStudent.js +3 -2
  309. package/es/translated/zh-Hans/store/report/__tests__/actions.test.js +22 -1
  310. package/es/translated/zh-Hans/store/report/__tests__/reducers.test.js +74 -5
  311. package/es/translated/zh-Hans/store/report/actions.js +12 -6
  312. package/es/translated/zh-Hans/store/report/reducers.js +38 -17
  313. package/es/translated/zh-Hant/components/OutcomesPerStudent/__tests__/index.test.js +9 -1
  314. package/es/translated/zh-Hant/components/OutcomesPerStudent/index.js +6 -0
  315. package/es/translated/zh-Hant/constants.js +1 -0
  316. package/es/translated/zh-Hant/containers/ConnectedOutcomesPerStudent.js +3 -2
  317. package/es/translated/zh-Hant/store/report/__tests__/actions.test.js +22 -1
  318. package/es/translated/zh-Hant/store/report/__tests__/reducers.test.js +74 -5
  319. package/es/translated/zh-Hant/store/report/actions.js +12 -6
  320. package/es/translated/zh-Hant/store/report/reducers.js +38 -17
  321. package/lib/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  322. package/lib/components/OutcomesPerStudent/index.js +6 -0
  323. package/lib/constants.js +3 -1
  324. package/lib/containers/ConnectedOutcomesPerStudent.js +2 -1
  325. package/lib/store/report/__tests__/actions.test.js +21 -0
  326. package/lib/store/report/__tests__/reducers.test.js +74 -4
  327. package/lib/store/report/actions.js +20 -10
  328. package/lib/store/report/reducers.js +36 -16
  329. package/lib/translated/ar/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  330. package/lib/translated/ar/components/OutcomesPerStudent/index.js +6 -0
  331. package/lib/translated/ar/constants.js +3 -1
  332. package/lib/translated/ar/containers/ConnectedOutcomesPerStudent.js +2 -1
  333. package/lib/translated/ar/store/report/__tests__/actions.test.js +21 -0
  334. package/lib/translated/ar/store/report/__tests__/reducers.test.js +74 -4
  335. package/lib/translated/ar/store/report/actions.js +20 -10
  336. package/lib/translated/ar/store/report/reducers.js +36 -16
  337. package/lib/translated/ca/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  338. package/lib/translated/ca/components/OutcomesPerStudent/index.js +6 -0
  339. package/lib/translated/ca/constants.js +3 -1
  340. package/lib/translated/ca/containers/ConnectedOutcomesPerStudent.js +2 -1
  341. package/lib/translated/ca/store/report/__tests__/actions.test.js +21 -0
  342. package/lib/translated/ca/store/report/__tests__/reducers.test.js +74 -4
  343. package/lib/translated/ca/store/report/actions.js +20 -10
  344. package/lib/translated/ca/store/report/reducers.js +36 -16
  345. package/lib/translated/cy/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  346. package/lib/translated/cy/components/OutcomesPerStudent/index.js +6 -0
  347. package/lib/translated/cy/constants.js +3 -1
  348. package/lib/translated/cy/containers/ConnectedOutcomesPerStudent.js +2 -1
  349. package/lib/translated/cy/store/report/__tests__/actions.test.js +21 -0
  350. package/lib/translated/cy/store/report/__tests__/reducers.test.js +74 -4
  351. package/lib/translated/cy/store/report/actions.js +20 -10
  352. package/lib/translated/cy/store/report/reducers.js +36 -16
  353. package/lib/translated/da/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  354. package/lib/translated/da/components/OutcomesPerStudent/index.js +6 -0
  355. package/lib/translated/da/constants.js +3 -1
  356. package/lib/translated/da/containers/ConnectedOutcomesPerStudent.js +2 -1
  357. package/lib/translated/da/store/report/__tests__/actions.test.js +21 -0
  358. package/lib/translated/da/store/report/__tests__/reducers.test.js +74 -4
  359. package/lib/translated/da/store/report/actions.js +20 -10
  360. package/lib/translated/da/store/report/reducers.js +36 -16
  361. package/lib/translated/da-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  362. package/lib/translated/da-x-k12/components/OutcomesPerStudent/index.js +6 -0
  363. package/lib/translated/da-x-k12/constants.js +3 -1
  364. package/lib/translated/da-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
  365. package/lib/translated/da-x-k12/store/report/__tests__/actions.test.js +21 -0
  366. package/lib/translated/da-x-k12/store/report/__tests__/reducers.test.js +74 -4
  367. package/lib/translated/da-x-k12/store/report/actions.js +20 -10
  368. package/lib/translated/da-x-k12/store/report/reducers.js +36 -16
  369. package/lib/translated/de/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  370. package/lib/translated/de/components/OutcomesPerStudent/index.js +6 -0
  371. package/lib/translated/de/constants.js +3 -1
  372. package/lib/translated/de/containers/ConnectedOutcomesPerStudent.js +2 -1
  373. package/lib/translated/de/store/report/__tests__/actions.test.js +21 -0
  374. package/lib/translated/de/store/report/__tests__/reducers.test.js +74 -4
  375. package/lib/translated/de/store/report/actions.js +20 -10
  376. package/lib/translated/de/store/report/reducers.js +36 -16
  377. package/lib/translated/en/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  378. package/lib/translated/en/components/OutcomesPerStudent/index.js +6 -0
  379. package/lib/translated/en/constants.js +3 -1
  380. package/lib/translated/en/containers/ConnectedOutcomesPerStudent.js +2 -1
  381. package/lib/translated/en/store/report/__tests__/actions.test.js +21 -0
  382. package/lib/translated/en/store/report/__tests__/reducers.test.js +74 -4
  383. package/lib/translated/en/store/report/actions.js +20 -10
  384. package/lib/translated/en/store/report/reducers.js +36 -16
  385. package/lib/translated/en-AU/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  386. package/lib/translated/en-AU/components/OutcomesPerStudent/index.js +6 -0
  387. package/lib/translated/en-AU/constants.js +3 -1
  388. package/lib/translated/en-AU/containers/ConnectedOutcomesPerStudent.js +2 -1
  389. package/lib/translated/en-AU/store/report/__tests__/actions.test.js +21 -0
  390. package/lib/translated/en-AU/store/report/__tests__/reducers.test.js +74 -4
  391. package/lib/translated/en-AU/store/report/actions.js +20 -10
  392. package/lib/translated/en-AU/store/report/reducers.js +36 -16
  393. package/lib/translated/en-AU-x-unimelb/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  394. package/lib/translated/en-AU-x-unimelb/components/OutcomesPerStudent/index.js +6 -0
  395. package/lib/translated/en-AU-x-unimelb/constants.js +3 -1
  396. package/lib/translated/en-AU-x-unimelb/containers/ConnectedOutcomesPerStudent.js +2 -1
  397. package/lib/translated/en-AU-x-unimelb/store/report/__tests__/actions.test.js +21 -0
  398. package/lib/translated/en-AU-x-unimelb/store/report/__tests__/reducers.test.js +74 -4
  399. package/lib/translated/en-AU-x-unimelb/store/report/actions.js +20 -10
  400. package/lib/translated/en-AU-x-unimelb/store/report/reducers.js +36 -16
  401. package/lib/translated/en-CA/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  402. package/lib/translated/en-CA/components/OutcomesPerStudent/index.js +6 -0
  403. package/lib/translated/en-CA/constants.js +3 -1
  404. package/lib/translated/en-CA/containers/ConnectedOutcomesPerStudent.js +2 -1
  405. package/lib/translated/en-CA/store/report/__tests__/actions.test.js +21 -0
  406. package/lib/translated/en-CA/store/report/__tests__/reducers.test.js +74 -4
  407. package/lib/translated/en-CA/store/report/actions.js +20 -10
  408. package/lib/translated/en-CA/store/report/reducers.js +36 -16
  409. package/lib/translated/en-CY/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  410. package/lib/translated/en-CY/components/OutcomesPerStudent/index.js +6 -0
  411. package/lib/translated/en-CY/constants.js +3 -1
  412. package/lib/translated/en-CY/containers/ConnectedOutcomesPerStudent.js +2 -1
  413. package/lib/translated/en-CY/store/report/__tests__/actions.test.js +21 -0
  414. package/lib/translated/en-CY/store/report/__tests__/reducers.test.js +74 -4
  415. package/lib/translated/en-CY/store/report/actions.js +20 -10
  416. package/lib/translated/en-CY/store/report/reducers.js +36 -16
  417. package/lib/translated/en-GB/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  418. package/lib/translated/en-GB/components/OutcomesPerStudent/index.js +6 -0
  419. package/lib/translated/en-GB/constants.js +3 -1
  420. package/lib/translated/en-GB/containers/ConnectedOutcomesPerStudent.js +2 -1
  421. package/lib/translated/en-GB/store/report/__tests__/actions.test.js +21 -0
  422. package/lib/translated/en-GB/store/report/__tests__/reducers.test.js +74 -4
  423. package/lib/translated/en-GB/store/report/actions.js +20 -10
  424. package/lib/translated/en-GB/store/report/reducers.js +36 -16
  425. package/lib/translated/en-GB-x-ukhe/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  426. package/lib/translated/en-GB-x-ukhe/components/OutcomesPerStudent/index.js +6 -0
  427. package/lib/translated/en-GB-x-ukhe/constants.js +3 -1
  428. package/lib/translated/en-GB-x-ukhe/containers/ConnectedOutcomesPerStudent.js +2 -1
  429. package/lib/translated/en-GB-x-ukhe/store/report/__tests__/actions.test.js +21 -0
  430. package/lib/translated/en-GB-x-ukhe/store/report/__tests__/reducers.test.js +74 -4
  431. package/lib/translated/en-GB-x-ukhe/store/report/actions.js +20 -10
  432. package/lib/translated/en-GB-x-ukhe/store/report/reducers.js +36 -16
  433. package/lib/translated/en-IE/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  434. package/lib/translated/en-IE/components/OutcomesPerStudent/index.js +6 -0
  435. package/lib/translated/en-IE/constants.js +3 -1
  436. package/lib/translated/en-IE/containers/ConnectedOutcomesPerStudent.js +2 -1
  437. package/lib/translated/en-IE/store/report/__tests__/actions.test.js +21 -0
  438. package/lib/translated/en-IE/store/report/__tests__/reducers.test.js +74 -4
  439. package/lib/translated/en-IE/store/report/actions.js +20 -10
  440. package/lib/translated/en-IE/store/report/reducers.js +36 -16
  441. package/lib/translated/es/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  442. package/lib/translated/es/components/OutcomesPerStudent/index.js +6 -0
  443. package/lib/translated/es/constants.js +3 -1
  444. package/lib/translated/es/containers/ConnectedOutcomesPerStudent.js +2 -1
  445. package/lib/translated/es/store/report/__tests__/actions.test.js +21 -0
  446. package/lib/translated/es/store/report/__tests__/reducers.test.js +74 -4
  447. package/lib/translated/es/store/report/actions.js +20 -10
  448. package/lib/translated/es/store/report/reducers.js +36 -16
  449. package/lib/translated/es-ES/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  450. package/lib/translated/es-ES/components/OutcomesPerStudent/index.js +6 -0
  451. package/lib/translated/es-ES/constants.js +3 -1
  452. package/lib/translated/es-ES/containers/ConnectedOutcomesPerStudent.js +2 -1
  453. package/lib/translated/es-ES/store/report/__tests__/actions.test.js +21 -0
  454. package/lib/translated/es-ES/store/report/__tests__/reducers.test.js +74 -4
  455. package/lib/translated/es-ES/store/report/actions.js +20 -10
  456. package/lib/translated/es-ES/store/report/reducers.js +36 -16
  457. package/lib/translated/es_ES/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  458. package/lib/translated/es_ES/components/OutcomesPerStudent/index.js +6 -0
  459. package/lib/translated/es_ES/constants.js +3 -1
  460. package/lib/translated/es_ES/containers/ConnectedOutcomesPerStudent.js +2 -1
  461. package/lib/translated/es_ES/store/report/__tests__/actions.test.js +21 -0
  462. package/lib/translated/es_ES/store/report/__tests__/reducers.test.js +74 -4
  463. package/lib/translated/es_ES/store/report/actions.js +20 -10
  464. package/lib/translated/es_ES/store/report/reducers.js +36 -16
  465. package/lib/translated/fi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  466. package/lib/translated/fi/components/OutcomesPerStudent/index.js +6 -0
  467. package/lib/translated/fi/constants.js +3 -1
  468. package/lib/translated/fi/containers/ConnectedOutcomesPerStudent.js +2 -1
  469. package/lib/translated/fi/store/report/__tests__/actions.test.js +21 -0
  470. package/lib/translated/fi/store/report/__tests__/reducers.test.js +74 -4
  471. package/lib/translated/fi/store/report/actions.js +20 -10
  472. package/lib/translated/fi/store/report/reducers.js +36 -16
  473. package/lib/translated/fr/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  474. package/lib/translated/fr/components/OutcomesPerStudent/index.js +6 -0
  475. package/lib/translated/fr/constants.js +3 -1
  476. package/lib/translated/fr/containers/ConnectedOutcomesPerStudent.js +2 -1
  477. package/lib/translated/fr/store/report/__tests__/actions.test.js +21 -0
  478. package/lib/translated/fr/store/report/__tests__/reducers.test.js +74 -4
  479. package/lib/translated/fr/store/report/actions.js +20 -10
  480. package/lib/translated/fr/store/report/reducers.js +36 -16
  481. package/lib/translated/fr-CA/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  482. package/lib/translated/fr-CA/components/OutcomesPerStudent/index.js +6 -0
  483. package/lib/translated/fr-CA/constants.js +3 -1
  484. package/lib/translated/fr-CA/containers/ConnectedOutcomesPerStudent.js +2 -1
  485. package/lib/translated/fr-CA/store/report/__tests__/actions.test.js +21 -0
  486. package/lib/translated/fr-CA/store/report/__tests__/reducers.test.js +74 -4
  487. package/lib/translated/fr-CA/store/report/actions.js +20 -10
  488. package/lib/translated/fr-CA/store/report/reducers.js +36 -16
  489. package/lib/translated/ht/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  490. package/lib/translated/ht/components/OutcomesPerStudent/index.js +6 -0
  491. package/lib/translated/ht/constants.js +3 -1
  492. package/lib/translated/ht/containers/ConnectedOutcomesPerStudent.js +2 -1
  493. package/lib/translated/ht/store/report/__tests__/actions.test.js +21 -0
  494. package/lib/translated/ht/store/report/__tests__/reducers.test.js +74 -4
  495. package/lib/translated/ht/store/report/actions.js +20 -10
  496. package/lib/translated/ht/store/report/reducers.js +36 -16
  497. package/lib/translated/is/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  498. package/lib/translated/is/components/OutcomesPerStudent/index.js +6 -0
  499. package/lib/translated/is/constants.js +3 -1
  500. package/lib/translated/is/containers/ConnectedOutcomesPerStudent.js +2 -1
  501. package/lib/translated/is/store/report/__tests__/actions.test.js +21 -0
  502. package/lib/translated/is/store/report/__tests__/reducers.test.js +74 -4
  503. package/lib/translated/is/store/report/actions.js +20 -10
  504. package/lib/translated/is/store/report/reducers.js +36 -16
  505. package/lib/translated/it/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  506. package/lib/translated/it/components/OutcomesPerStudent/index.js +6 -0
  507. package/lib/translated/it/constants.js +3 -1
  508. package/lib/translated/it/containers/ConnectedOutcomesPerStudent.js +2 -1
  509. package/lib/translated/it/store/report/__tests__/actions.test.js +21 -0
  510. package/lib/translated/it/store/report/__tests__/reducers.test.js +74 -4
  511. package/lib/translated/it/store/report/actions.js +20 -10
  512. package/lib/translated/it/store/report/reducers.js +36 -16
  513. package/lib/translated/ja/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  514. package/lib/translated/ja/components/OutcomesPerStudent/index.js +6 -0
  515. package/lib/translated/ja/constants.js +3 -1
  516. package/lib/translated/ja/containers/ConnectedOutcomesPerStudent.js +2 -1
  517. package/lib/translated/ja/store/report/__tests__/actions.test.js +21 -0
  518. package/lib/translated/ja/store/report/__tests__/reducers.test.js +74 -4
  519. package/lib/translated/ja/store/report/actions.js +20 -10
  520. package/lib/translated/ja/store/report/reducers.js +36 -16
  521. package/lib/translated/mi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  522. package/lib/translated/mi/components/OutcomesPerStudent/index.js +6 -0
  523. package/lib/translated/mi/constants.js +3 -1
  524. package/lib/translated/mi/containers/ConnectedOutcomesPerStudent.js +2 -1
  525. package/lib/translated/mi/store/report/__tests__/actions.test.js +21 -0
  526. package/lib/translated/mi/store/report/__tests__/reducers.test.js +74 -4
  527. package/lib/translated/mi/store/report/actions.js +20 -10
  528. package/lib/translated/mi/store/report/reducers.js +36 -16
  529. package/lib/translated/nb/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  530. package/lib/translated/nb/components/OutcomesPerStudent/index.js +6 -0
  531. package/lib/translated/nb/constants.js +3 -1
  532. package/lib/translated/nb/containers/ConnectedOutcomesPerStudent.js +2 -1
  533. package/lib/translated/nb/store/report/__tests__/actions.test.js +21 -0
  534. package/lib/translated/nb/store/report/__tests__/reducers.test.js +74 -4
  535. package/lib/translated/nb/store/report/actions.js +20 -10
  536. package/lib/translated/nb/store/report/reducers.js +36 -16
  537. package/lib/translated/nb-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  538. package/lib/translated/nb-x-k12/components/OutcomesPerStudent/index.js +6 -0
  539. package/lib/translated/nb-x-k12/constants.js +3 -1
  540. package/lib/translated/nb-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
  541. package/lib/translated/nb-x-k12/store/report/__tests__/actions.test.js +21 -0
  542. package/lib/translated/nb-x-k12/store/report/__tests__/reducers.test.js +74 -4
  543. package/lib/translated/nb-x-k12/store/report/actions.js +20 -10
  544. package/lib/translated/nb-x-k12/store/report/reducers.js +36 -16
  545. package/lib/translated/nl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  546. package/lib/translated/nl/components/OutcomesPerStudent/index.js +6 -0
  547. package/lib/translated/nl/constants.js +3 -1
  548. package/lib/translated/nl/containers/ConnectedOutcomesPerStudent.js +2 -1
  549. package/lib/translated/nl/store/report/__tests__/actions.test.js +21 -0
  550. package/lib/translated/nl/store/report/__tests__/reducers.test.js +74 -4
  551. package/lib/translated/nl/store/report/actions.js +20 -10
  552. package/lib/translated/nl/store/report/reducers.js +36 -16
  553. package/lib/translated/pl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  554. package/lib/translated/pl/components/OutcomesPerStudent/index.js +6 -0
  555. package/lib/translated/pl/constants.js +3 -1
  556. package/lib/translated/pl/containers/ConnectedOutcomesPerStudent.js +2 -1
  557. package/lib/translated/pl/store/report/__tests__/actions.test.js +21 -0
  558. package/lib/translated/pl/store/report/__tests__/reducers.test.js +74 -4
  559. package/lib/translated/pl/store/report/actions.js +20 -10
  560. package/lib/translated/pl/store/report/reducers.js +36 -16
  561. package/lib/translated/pt/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  562. package/lib/translated/pt/components/OutcomesPerStudent/index.js +6 -0
  563. package/lib/translated/pt/constants.js +3 -1
  564. package/lib/translated/pt/containers/ConnectedOutcomesPerStudent.js +2 -1
  565. package/lib/translated/pt/store/report/__tests__/actions.test.js +21 -0
  566. package/lib/translated/pt/store/report/__tests__/reducers.test.js +74 -4
  567. package/lib/translated/pt/store/report/actions.js +20 -10
  568. package/lib/translated/pt/store/report/reducers.js +36 -16
  569. package/lib/translated/pt-BR/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  570. package/lib/translated/pt-BR/components/OutcomesPerStudent/index.js +6 -0
  571. package/lib/translated/pt-BR/constants.js +3 -1
  572. package/lib/translated/pt-BR/containers/ConnectedOutcomesPerStudent.js +2 -1
  573. package/lib/translated/pt-BR/store/report/__tests__/actions.test.js +21 -0
  574. package/lib/translated/pt-BR/store/report/__tests__/reducers.test.js +74 -4
  575. package/lib/translated/pt-BR/store/report/actions.js +20 -10
  576. package/lib/translated/pt-BR/store/report/reducers.js +36 -16
  577. package/lib/translated/ru/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  578. package/lib/translated/ru/components/OutcomesPerStudent/index.js +6 -0
  579. package/lib/translated/ru/constants.js +3 -1
  580. package/lib/translated/ru/containers/ConnectedOutcomesPerStudent.js +2 -1
  581. package/lib/translated/ru/store/report/__tests__/actions.test.js +21 -0
  582. package/lib/translated/ru/store/report/__tests__/reducers.test.js +74 -4
  583. package/lib/translated/ru/store/report/actions.js +20 -10
  584. package/lib/translated/ru/store/report/reducers.js +36 -16
  585. package/lib/translated/sl/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  586. package/lib/translated/sl/components/OutcomesPerStudent/index.js +6 -0
  587. package/lib/translated/sl/constants.js +3 -1
  588. package/lib/translated/sl/containers/ConnectedOutcomesPerStudent.js +2 -1
  589. package/lib/translated/sl/store/report/__tests__/actions.test.js +21 -0
  590. package/lib/translated/sl/store/report/__tests__/reducers.test.js +74 -4
  591. package/lib/translated/sl/store/report/actions.js +20 -10
  592. package/lib/translated/sl/store/report/reducers.js +36 -16
  593. package/lib/translated/sv/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  594. package/lib/translated/sv/components/OutcomesPerStudent/index.js +6 -0
  595. package/lib/translated/sv/constants.js +3 -1
  596. package/lib/translated/sv/containers/ConnectedOutcomesPerStudent.js +2 -1
  597. package/lib/translated/sv/store/report/__tests__/actions.test.js +21 -0
  598. package/lib/translated/sv/store/report/__tests__/reducers.test.js +74 -4
  599. package/lib/translated/sv/store/report/actions.js +20 -10
  600. package/lib/translated/sv/store/report/reducers.js +36 -16
  601. package/lib/translated/sv-x-k12/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  602. package/lib/translated/sv-x-k12/components/OutcomesPerStudent/index.js +6 -0
  603. package/lib/translated/sv-x-k12/constants.js +3 -1
  604. package/lib/translated/sv-x-k12/containers/ConnectedOutcomesPerStudent.js +2 -1
  605. package/lib/translated/sv-x-k12/store/report/__tests__/actions.test.js +21 -0
  606. package/lib/translated/sv-x-k12/store/report/__tests__/reducers.test.js +74 -4
  607. package/lib/translated/sv-x-k12/store/report/actions.js +20 -10
  608. package/lib/translated/sv-x-k12/store/report/reducers.js +36 -16
  609. package/lib/translated/th/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  610. package/lib/translated/th/components/OutcomesPerStudent/index.js +6 -0
  611. package/lib/translated/th/constants.js +3 -1
  612. package/lib/translated/th/containers/ConnectedOutcomesPerStudent.js +2 -1
  613. package/lib/translated/th/store/report/__tests__/actions.test.js +21 -0
  614. package/lib/translated/th/store/report/__tests__/reducers.test.js +74 -4
  615. package/lib/translated/th/store/report/actions.js +20 -10
  616. package/lib/translated/th/store/report/reducers.js +36 -16
  617. package/lib/translated/vi/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  618. package/lib/translated/vi/components/OutcomesPerStudent/index.js +6 -0
  619. package/lib/translated/vi/constants.js +3 -1
  620. package/lib/translated/vi/containers/ConnectedOutcomesPerStudent.js +2 -1
  621. package/lib/translated/vi/store/report/__tests__/actions.test.js +21 -0
  622. package/lib/translated/vi/store/report/__tests__/reducers.test.js +74 -4
  623. package/lib/translated/vi/store/report/actions.js +20 -10
  624. package/lib/translated/vi/store/report/reducers.js +36 -16
  625. package/lib/translated/zh-Hans/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  626. package/lib/translated/zh-Hans/components/OutcomesPerStudent/index.js +6 -0
  627. package/lib/translated/zh-Hans/constants.js +3 -1
  628. package/lib/translated/zh-Hans/containers/ConnectedOutcomesPerStudent.js +2 -1
  629. package/lib/translated/zh-Hans/store/report/__tests__/actions.test.js +21 -0
  630. package/lib/translated/zh-Hans/store/report/__tests__/reducers.test.js +74 -4
  631. package/lib/translated/zh-Hans/store/report/actions.js +20 -10
  632. package/lib/translated/zh-Hans/store/report/reducers.js +36 -16
  633. package/lib/translated/zh-Hant/components/OutcomesPerStudent/__tests__/index.test.js +8 -0
  634. package/lib/translated/zh-Hant/components/OutcomesPerStudent/index.js +6 -0
  635. package/lib/translated/zh-Hant/constants.js +3 -1
  636. package/lib/translated/zh-Hant/containers/ConnectedOutcomesPerStudent.js +2 -1
  637. package/lib/translated/zh-Hant/store/report/__tests__/actions.test.js +21 -0
  638. package/lib/translated/zh-Hant/store/report/__tests__/reducers.test.js +74 -4
  639. package/lib/translated/zh-Hant/store/report/actions.js +20 -10
  640. package/lib/translated/zh-Hant/store/report/reducers.js +36 -16
  641. 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 { setPage, setPageData, setRollups, setResults, setUsers, viewReportAlignment, closeReportAlignment } from "../actions.js";
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
- rollups: {
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
- id: 200,
56
- label: 'yellow',
57
- title: 'red'
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, VIEW_REPORT_ALIGNMENT, CLOSE_REPORT_ALIGNMENT, SET_REPORT_LOADING, SET_REMAINING_PAGES_LOADING, ALL_USERS, ERROR, IN_PROGRESS, COMPLETED } from "../../constants.js";
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); // Function calls to Outcome Service
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(_defineProperty({}, setUsers, function (state, action) {
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
- }), Map());
11
- var page = handleActions(_defineProperty({}, setPage, function (state, action) {
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
- }), fromJS({
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(_defineProperty({}, setPageData, function (state, action) {
25
+ var pageData = handleActions((_handleActions3 = {}, _defineProperty(_handleActions3, setPageData, function (state, action) {
17
26
  return fromJS(action.payload);
18
- }), Map());
19
- var outcomes = handleActions(_defineProperty({}, setReportOutcomes, function (state, action) {
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
- }), Map());
22
- var rollups = handleActions(_defineProperty({}, setRollups, function (state, action) {
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
- }), List());
25
- var loading = handleActions(_defineProperty({}, setLoading, function (state, action) {
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
- }), false);
28
- var loadingRemainingPages = handleActions(_defineProperty({}, setLoadingRemainingPages, function (state, action) {
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
- }), NOT_FETCHING);
31
- var results = handleActions(_defineProperty({}, setResults, function (state, action) {
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
- }), Map());
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 { setPage, setPageData, setRollups, setResults, setUsers, viewReportAlignment, closeReportAlignment } from "../actions.js";
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
- rollups: {
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
- id: 200,
56
- label: 'yellow',
57
- title: 'red'
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
  });