Commit Graph
31 Commits
Author SHA1 Message Date
joonas-a dcfac28fa6 [Progress] combined programme criteria fix
thanks claude opus 5.5 high
2026-10-12 15:20:23 +03:00
joonas-aandAaro Koivukangas 2c0fd4cb85 [Course refactor] re-enable max population limit 2026-09-21 15:24:21 +03:00
Aaro Koivukangas caa28c2b19 [Shared][UnitTests] Add tests for year <-> yearCode helper functions 2026-07-26 14:31:05 +03:00
Aaro Koivukangas 4d5f6b07ab [Utils] Add better defaults to year <-> yearCode transition 2026-07-24 15:13:45 +03:00
Aaro Koivukangas 921eb894ba [CourseStats] Fetch coursestats based on selected years + change to use year codes 2026-07-22 15:10:07 +03:00
Aaro Koivukangas 5863cc90be [ApiTests] Add Programme course tests and make numbers match to Course stats 2026-07-02 19:22:51 +03:00
Aaro Koivukangas e6676044a9 [ProgrammeCourses+CourseStats+ApiTests] Fix calculations and make numbers match between the two pages 2026-06-29 13:52:15 +03:00
Aaro Koivukangas ed330f70a7 [Meta] Change enrollments to by default be excluded before OK sisu-migration 2021-05-31 2026-06-24 17:55:25 +03:00
Aaro Koivukangas ccfb09eab4 [CourseStats] Calculate Enrolled, no grade properly by enrollment_date_time, not semesterCode 2026-06-24 14:49:21 +03:00
Santeri Rajamäki e8b46a8b56 [Frontend] FilterView improvements 2026-06-03 13:12:37 +03:00
Aaro Koivukangas f4ac2b3806 [Class statistics][Filters] Course filter respects substitution_groups 2026-05-28 16:08:18 +03:00
Santeri Rajamäki b9bd916b91 [META] Less lodash 2026-05-19 13:50:02 +03:00
joonas-a eaedfe99db [Backend][Programme courses] Split open uni students (hetuton/hetu on) 2026-03-17 12:25:41 +02:00
Aaro Koivukangas 6cf375936a [Meta] Lint fixes 2026-03-17 12:02:12 +02:00
Aaro Koivukangas 7695315843 [Meta] keyBy is now used, letsgoo! 2026-03-05 16:31:09 +02:00
joonas-a 8dc95c7a89 [Programme courses] Rework credit categories 2026-02-13 16:56:39 +02:00
Santeri Rajamäki 907e24e26e [Shared] Add uniq util function 2025-11-21 13:38:43 +02:00
Santeri Rajamäki 0ad6d6f9a2 [Frontend] Fix validation to spec and move util to shared 2025-11-03 11:47:21 +02:00
joonas-a d208012f07 [Eslint] run --fix + fix shared 2025-08-07 15:05:22 +03:00
Santeri Rajamäki 208bd3511d [Backend] Acually type the formatted student data
This commit reworks the formatStatisticsForApi into near transportable form and adds types to the return value.
2025-07-23 20:04:22 +03:00
Santeri Rajamäki ad73cd7d0f [Shared] Fix omitKeys 2025-07-08 11:25:28 +03:00
Santeri Rajamäki 3cde980950 No moment to waste
Use dayjs instead of moment. We might want to explore some other alternatives in the future.
This commit closes #4800, #4811 and #4812

PopulationSearchForm is still waiting for @joonas-a
2025-06-27 14:58:20 +03:00
Santeri Rajamäki 1104483cac [Frontend] Simplified filter action and selector structure 2025-06-09 13:32:42 +03:00
Santeri Rajamäki 6c4b42c98d [Shared] Add keyBy function to utils 2025-05-19 22:13:34 +03:00
Santeri Rajamäki a77bba0881 [Shared] Added omitKeys shared utility function 2025-04-28 14:25:12 +03:00
Santeri Rajamäki 0f5c2e3160 [Shared] Introduce error as value tryCatch function 2025-03-24 11:13:43 +02:00
santeri0200andGitHub 7af6374e7b Populus optimus (#4766)
- Reworked `populationstatistics/courses`
  - `/coursesbytag` and `coursesbystudentnumberlist` now use the same API
    - Updated frontend to use `/courses` instead
  - Updated cypress to call the new `v4/populationstatistics/courses` instead of `v2`
- Added types to request queries, request- and response bodies for multiple `populationstatistics/` routes
- Simplified parts of `optimizedStatisticsOf` call and its callers
- Cleaned up `bottlenecksOf`
- Made `studentNumbersWithAllElements` more verbose
- Simplified `CourseStatsCounter`
  - Moved functions that were only used for course statistics from `utils` to `courseStatsCounter`
- Moved `populationCourseStatMerger` into the only function it is ever called from
- Made `hasFullAccessToStudentData` explicit boolean return value
- Added `safeJSONParse` function to server utils to stop server from throwing (still needs to be implemented more widely)
- Added `formatToArray` and made `Array.isArray?val:[val]` disappear
- Made `CurriculumPicker` easier to read and more type safe
- Forced `formattedQueryParams` to be passed into `fetchPopulations` to avoid duplicate processing
2025-03-11 17:52:59 +02:00
Riku Rauhala 8a7426ae02 [Shared] Move formatQueryParamsToArrays to shared/util 2024-10-24 09:41:58 +03:00
Valtteri Kantanen 2d6a9afc80 Add no-unnecessary-type-assertion rule for ESLint and fix errors 2024-10-14 10:15:00 +03:00
Riku Rauhala d277f78d3b [Frontend] Mount shared in development 2024-08-16 11:35:08 +03:00
Riku Rauhala 86ec37dce3 [Shared] Rename oodikone-shared to shared 2024-08-15 15:28:56 +03:00