Enhance activation request validation and documentation
- Updated the `RequestActivationCommandValidator` to require a non-empty comment, ensuring that users provide necessary identification information. - Modified integration tests to validate the new requirement for a comment, including a test for handling empty comments. - Updated API documentation to reflect that the comment is now mandatory and clarified its purpose. - Enhanced frontend components to enforce comment requirements and provide user guidance on the comment's importance.
This commit is contained in:
@@ -706,7 +706,7 @@ Application-хендлере поверх результата `IIdentityService
|
||||
| ------------ | ----------------------- | ---------------------------------------------------------- |
|
||||
| `Id` | `Guid` | PK |
|
||||
| `UserId` | `Guid` | FK → AppUser (заявитель) |
|
||||
| `Comment` | `string?` | Комментарий заявителя, напр. «я Никита» — чтобы админ понял, кто это |
|
||||
| `Comment` | `string?` | Комментарий заявителя (кто и откуда), напр. «я Никита, коллега Артёма» — обязателен при создании заявки через API (`NotEmpty`, ≤500); nullable в схеме ради исторических записей |
|
||||
| `Status` | `ActivationStatus` | `Pending` / `Approved` / `Rejected` |
|
||||
| `DecidedBy` | `Guid?` | Админ, принявший решение |
|
||||
| `DecidedAt` | `DateTimeOffset?` | |
|
||||
|
||||
Reference in New Issue
Block a user