web: Validate issue form versions and priorities
This commit is contained in:
1 parent
9fe713fc10
commit
e9782a1413
4 files changed
+128
-9
No files matched your search
@@ -97,7 +97,7 @@ public sealed record TimelineEntry(IssueEventDto Event, string Text, string? Not
|
||||
/// <summary>Formuláře akcí na detailu závady. Každý POST použije jen svá pole.</summary>
|
||||
public sealed class IssueActionForm
|
||||
{
|
||||
public int RowVersion { get; set; }
|
||||
public int? RowVersion { get; set; }
|
||||
public string? Action { get; set; }
|
||||
|
||||
/// <summary>Důvod (zamítnutí, znovuotevření) nebo poznámka (předání k ověření).</summary>
|
||||
|
||||
@@ -85,7 +85,7 @@ public sealed class EditIssueViewModel : IssueFormViewModel
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>Verze, kterou uživatel upravuje; když se závada mezitím změní, API vrátí 409.</summary>
|
||||
public int RowVersion { get; set; }
|
||||
public int? RowVersion { get; set; }
|
||||
|
||||
public static EditIssueViewModel From(IssueDetail issue) => new()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user