Conversation
| blocksInFutureWithoutEnrollments, | ||
| wochentyp | ||
| ); | ||
| foreach (var (_, angebote) in angeboteByBlocks) |
There was a problem hiding this comment.
Was will der hier? angebote wird genutzt und _ ist ein Discard
| foreach (var angebot in instanzen) | ||
| { | ||
| var belegWunsch = new ProfundumBelegWunsch | ||
| { | ||
| var belegWunsch = new ProfundumBelegWunsch | ||
| { | ||
| BetroffenePerson = student, | ||
| ProfundumInstanz = angebot, | ||
| Stufe = stufe, | ||
| EinwahlZeitraum = einschreibeZeitraum, | ||
| }; | ||
| belegWuensche.Add(belegWunsch); | ||
| } | ||
| BetroffenePerson = student, | ||
| ProfundumInstanz = angebot, | ||
| Stufe = stufe, | ||
| EinwahlZeitraum = einschreibeZeitraum, | ||
| }; | ||
| belegWuensche.Add(belegWunsch); | ||
| } |
rschlossarek
left a comment
There was a problem hiding this comment.
Ich hab mal beispielhaft ein paar Dinge markiert, die mich stören. Allgemeines kommt später
There was a problem hiding this comment.
Können wir automatisch generierte Dateien, wie Migrations, bitte von Formatierungen ausschließen?
There was a problem hiding this comment.
Ich sehe den Grund nicht unbedingt, aber ja.
There was a problem hiding this comment.
Man könnte die auch beim Generieren direkt formattieren lassen.
| UserService userService, | ||
| UserAuthorizationHelper authHelper, | ||
| Guid studentId, | ||
| bool all = false) |
There was a problem hiding this comment.
Diese Art Änderung ist so unnötig..
| await authHelper.CurrentUserHasGlobalPermission(GlobalPermission.Otiumsverantwortlich) | ||
| || await authHelper.CurrentUserHasGlobalPermission(GlobalPermission.Admin); | ||
|
|
||
| if (!isMentor && !hasBypass) return Results.Unauthorized(); |
There was a problem hiding this comment.
Und die Art Änderung sehe ich auch irgendwie nicht ganz ein, das liegt aber im Diskussionsspielraum
| var today = DateOnly.FromDateTime(now); | ||
| var time = TimeOnly.FromDateTime(now); | ||
|
|
||
| if (!metadata.Verpflichtend || block.SchultagKey != today || time >= metadata.Interval.Start.AddMinutes(30)) |
There was a problem hiding this comment.
können wir hier die erste Zeile direkt hinter das if schreiben und die letzte Klammer mit zur letzten Zeile?
| if (await scheduler.CheckExists(jobKey)) | ||
| return; | ||
|
|
||
| var job = JobBuilder.Create<MissingStudentNotificationJob>() |
| .Include(t => t.Block) | ||
| .Include(t => t.Otium) | ||
| .Where(t => t.Block.Id == termin.Block.Id && t.Id != terminId) | ||
| .OrderBy(t => t.OverrideBezeichnung != null ? t.OverrideBezeichnung : t.Otium.Bezeichnung) |
There was a problem hiding this comment.
Also irgendwie gefällt mir das auch nicht, aber kann verstehen, dass er die Zeile kürzer haben will
| .FirstOrDefaultAsync(); | ||
|
|
||
| var blockId = fromBlock?.Id ?? toData?.Block.Id; | ||
| if ((fromBlock is null && fromTerminId != Guid.Empty) || (toData is null && toTerminId != Guid.Empty)) |
There was a problem hiding this comment.
Also zwei Zeilen okay, aber vier??
| blocksInFutureWithoutEnrollments, | ||
| wochentyp | ||
| ); | ||
| foreach (var (_, angebote) in angeboteByBlocks) |
There was a problem hiding this comment.
Was will der hier? angebote wird genutzt und _ ist ein Discard
| : base(message) | ||
| { | ||
| } | ||
| : base(message) { } |
There was a problem hiding this comment.
Das mag meine IDE gar nicht, kann ich der aber evtl. austreiben
dad74ec to
c2acaac
Compare
90a9b18 to
ecd400c
Compare
TODO