[NOTASK] optional kycStep status update#4147
Open
Yannick1712 wants to merge 1 commit into
Open
Conversation
TaprootFreak
requested changes
Jul 15, 2026
TaprootFreak
left a comment
Collaborator
There was a problem hiding this comment.
Dieser PR erfüllt in seiner aktuellen Form weder die Anforderungen aus CONTRIBUTING.md noch die notwendige Nachvollziehbarkeit für eine Änderung am KYC-Update-Verhalten.
- Problembeschreibung und Motivation fehlen. Bitte dokumentiert den konkret betroffenen Ablauf, das aktuelle Fehlverhalten, das erwartete Verhalten und weshalb
statusoptional werden muss. - Falscher Validator für ein Update-DTO. Laut
CONTRIBUTING.mdmüssen optionale Felder in Update-DTOs@IsOptionalButNotNull()aus den Shared Validators verwenden.@IsOptional()akzeptiert auch explizitesnull, obwohl die Datenbankspaltestatusnicht nullable ist. - TypeScript-Typ und Runtime-Validierung widersprechen sich. Wenn das Feld optional ist, muss es als
status?: ReviewStatusdeklariert werden. - Consumer-Synchronisierung fehlt. Die Änderung betrifft den API-Vertrag.
CONTRIBUTING.mdverlangt bei DTO-/Interface- und API-Vertragsänderungen die entsprechenden Service- und Frontend-Anpassungen. ImDFXswiss/services-Consumer iststatusweiterhin verpflichtend typisiert. Bitte synchronisieren oder den zugehörigen PR verlinken. - Testabdeckung fehlt. Bitte ergänzt mindestens Tests für:
- Request ohne
status - gültigen und ungültigen
status - explizites
status: null - partielle Updates von
result,commentundsequenceNumber - Persistenz: Ein ausgelassener Status darf den bestehenden Status nicht verändern
- Request ohne
- Audit-Logging fehlt. Jede über diesen Admin-/Support-Endpoint ausgelöste Datenbankänderung muss nachvollziehbar protokolliert werden: handelnder Benutzer, Zeitpunkt, betroffene Entität/ID sowie alte und neue Werte. Ein aktualisierter
updated-Zeitstempel allein genügt hierfür nicht. - Git-/PR-Konventionen sind nicht eingehalten. Der Branch
feature/NOTASK-...entspricht nicht den vorgeschriebenen Musternfeat/<scope>-<topic>bzw.fix/<scope>-<topic>. Da beim Squash nur der PR-Titel erhalten bleibt, sollte auch dieser als sauberer, imperativer Commit-Titel formuliert sein. - Bitte weist vor dem Merge außerdem die in
CONTRIBUTING.mdverlangten Prüfungenformat,lintundtype-checknach.
Ohne nachvollziehbare Begründung, passende Consumer-Änderungen, Tests und revisionssicheres Audit-Logging ist dieser PR nicht mergefähig.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release Checklist
Pre-Release
Post-Release