Commit Graph

4771 Commits

Author SHA1 Message Date
Gregor Kleen
8df6143ced chore(release): 25.1.1 2021-03-17 00:20:56 +01:00
Gregor Kleen
a314f64a70 fix: weight random token impersonation towards active users 2021-03-17 00:19:45 +01:00
Gregor Kleen
e0e13e74f1 chore(release): 25.1.0 2021-03-16 17:23:36 +01:00
Gregor Kleen
badadff1e9 test: scale down examAutoOccurrence tests for performance 2021-03-16 17:22:53 +01:00
Gregor Kleen
600bbe5d7e feat: admins can efficiently generate many tokens for random users 2021-03-16 16:02:00 +01:00
Gregor Kleen
ba3b8d5a4f chore: teach hlint about lens 2021-03-16 11:46:17 +01:00
Gregor Kleen
578a78f21b Merge branch 'exam-rooms' into 'master'
Fix problems with examAutoOccurence

See merge request uni2work/uni2work!33
2021-03-16 09:29:01 +00:00
Wolfgang Witt
0ab6d75394 chore: made error messages gender-neutral 2021-03-15 10:45:37 +00:00
Wolfgang Witt
f931c67a9e fix: typo 2021-03-15 10:45:37 +00:00
Wolfgang Witt
19be4677bb chore: improved error messages 2021-03-15 10:45:37 +00:00
Wolfgang Witt
9b0adab023 chore: extende random distribution with nudges 2021-03-15 10:45:37 +00:00
Wolfgang Witt
b36a15c0b2 chore(test): type of examOccurrenceCapacity changed 2021-03-15 10:45:37 +00:00
Wolfgang Witt
292f5cf91b fix(test): isNullResultJustified reported false positives
matriculation numbers are limited to suffixes of equal length
now the relevant test respects this (may result in bigger buckets)
2021-03-15 10:45:37 +00:00
Wolfgang Witt
e14c4091e6 chore(test): adjust function name to semantics 2021-03-15 10:45:37 +00:00
Wolfgang Witt
9c928b0375 fix: make sure to report NoUsers, regardless of rule 2021-03-15 10:45:37 +00:00
Wolfgang Witt
e13049d958 chore(test): inform test about changed type signature 2021-03-15 10:45:37 +00:00
Wolfgang Witt
163715afc8 chore: hlint 2021-03-15 10:45:37 +00:00
Wolfgang Witt
a7671dbec6 chore: remove TODO marker 2021-03-15 10:45:37 +00:00
Wolfgang Witt
767090ded1 chore: check for no users first 2021-03-15 10:45:37 +00:00
Wolfgang Witt
5dc37a07c1 chore: improve error messages 2021-03-15 10:45:37 +00:00
Wolfgang Witt
0765f4b925 chore: chasing type-errors
messages are still temporary
2021-03-15 10:45:37 +00:00
Wolfgang Witt
e03326e1ac chore: examAutoOccurrence converted to Either 2021-03-15 10:45:37 +00:00
Wolfgang Witt
59f5bd3591 chore: update UI-message to reflect current algorithm 2021-03-15 10:45:37 +00:00
Wolfgang Witt
72d42baec5 chore: remove redundant seq 2021-03-15 10:45:37 +00:00
Wolfgang Witt
6dedb2b2a0 Apply 1 suggestion(s) to 1 file(s) 2021-03-15 10:45:37 +00:00
Wolfgang Witt
6ae1aeaeb0 Apply 5 suggestion(s) to 1 file(s) 2021-03-15 10:45:37 +00:00
Wolfgang Witt
85e3941538 chore: add my name to contributers + create changelog files 2021-03-15 10:45:37 +00:00
Wolfgang Witt
2ee7f41d05 chore(test): fix type errors + add more surnames 2021-03-15 10:45:37 +00:00
Wolfgang Witt
d5b1203d53 chore(test): also test for equal length of matriculation description 2021-03-15 10:45:37 +00:00
Wolfgang Witt
ad67c2e0e2 chore: remove trailing 'A' from surname-range-start
- still add it if the previous end was too short
- this way overall shorter descriptions are possible
- in rare cases (at maxTagLength) this  prevented a description to be created
2021-03-15 10:45:37 +00:00
Wolfgang Witt
7f1df44fc3 chore(test): hlint told me to use maybe here 2021-03-15 10:45:37 +00:00
Wolfgang Witt
c99d96ecb8 fix: handle rare cases where a mappingDescription with start>end would be produced 2021-03-15 10:45:37 +00:00
Wolfgang Witt
cd07a56a9f fix: correctly calculate maximum user name length 2021-03-15 10:45:37 +00:00
Wolfgang Witt
bc42f3072f fix(test): fixed compiler errors (oops) 2021-03-15 10:45:37 +00:00
Wolfgang Witt
daceac95fc chore(test): relax requirements for justified nullResult
Instances with bigger user buckets than the smallest room might correctly fail
Thus, don't report an error for them.
2021-03-15 10:45:37 +00:00
Wolfgang Witt
7e1b75c2e1 fix: shown ranges "include" special mappings
previously, they stopped just before leading to clashes with the next range
e.g. Äm would cause Am as mapping end with the next starting at An
Now, the mapping end is AZ with the next starting at BA
2021-03-15 10:45:37 +00:00
Wolfgang Witt
4f4cd394db chore: add missing+remove redundant imports 2021-03-15 10:45:37 +00:00
Wolfgang Witt
b974942f07 chore: matriculation numbers limited same length again
- this time as suffixes
- also start range description with full used length
  otherwise suffix-description is confusing
2021-03-15 10:45:37 +00:00
Wolfgang Witt
f0a79dff65 chore: rewrite ExamRoomRandom mapping, so it actually respects room sizes 2021-03-15 10:45:37 +00:00
Wolfgang Witt
4e76fe7e50 fix: increase size of test instances again (oops) 2021-03-15 10:45:37 +00:00
Wolfgang Witt
a559ac74cb chore: include non-ascii names in range-calculation 2021-03-15 10:45:37 +00:00
Wolfgang Witt
8e4cb0917d fix: make sure unfortunate combination doesn't only produce 0-9 ranges for matrikelnummer 2021-03-15 10:45:37 +00:00
Wolfgang Witt
525e24b56d chore(test): check for non-overlapping rangeDescription 2021-03-15 10:45:37 +00:00
Wolfgang Witt
fc35fd26c1 fix: mappingDescription doesn't overlap for the first n rooms/with small names/matrikelnummer 2021-03-15 10:45:37 +00:00
Wolfgang Witt
6ccc192426 chore: remove -Wwarn 2021-03-15 10:45:37 +00:00
Wolfgang Witt
795598ea06 chore(test): re-enable justifiedNullResult-test 2021-03-15 10:45:37 +00:00
Wolfgang Witt
5480e2d7b7 chore: names with non-ascii prefix get a ExamOccurrenceMappingSpecial 2021-03-15 10:45:37 +00:00
Wolfgang Witt
d60f93561f fix: make sure it compiles again + add 2-letter name 2021-03-15 10:45:37 +00:00
Wolfgang Witt
a66c61cecc chore(test): add surnames with unicode characters 2021-03-15 10:45:37 +00:00
Wolfgang Witt
873d5a02ad fix: ensure termination for non-{'A'..'Z']-names 2021-03-15 10:45:37 +00:00