Skip to content

Commit 18a1f6e

Browse files
authored
feat: Rename IsDeleteAction to IsDeleteDialogAction (#820)
Better distinction between an action that is method DELETE and an action that deletes the dialog
1 parent 2e4e81a commit 18a1f6e

File tree

12 files changed

+1363
-14
lines changed

12 files changed

+1363
-14
lines changed

docs/schema/V1/schema.verified.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type GuiAction {
125125
url: URL!
126126
authorizationAttribute: String
127127
isAuthorized: Boolean!
128-
isDeleteAction: Boolean!
128+
isDeleteDialogAction: Boolean!
129129
priority: GuiActionPriority!
130130
title: [Localization!]!
131131
}

docs/schema/V1/swagger.verified.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"Action": "submit",
279279
"Url": "https://example.com/some-url",
280280
"AuthorizationAttribute": null,
281-
"IsDeleteAction": false,
281+
"IsDeleteDialogAction": false,
282282
"Priority": 1,
283283
"Title": [
284284
{
@@ -2635,7 +2635,7 @@
26352635
"type": "string",
26362636
"nullable": true
26372637
},
2638-
"isDeleteAction": {
2638+
"isDeleteDialogAction": {
26392639
"type": "boolean"
26402640
},
26412641
"priority": {
@@ -3172,7 +3172,7 @@
31723172
"type": "string",
31733173
"nullable": true
31743174
},
3175-
"isDeleteAction": {
3175+
"isDeleteDialogAction": {
31763176
"type": "boolean"
31773177
},
31783178
"priority": {
@@ -3507,7 +3507,7 @@
35073507
"type": "string",
35083508
"nullable": true
35093509
},
3510-
"isDeleteAction": {
3510+
"isDeleteDialogAction": {
35113511
"type": "boolean"
35123512
},
35133513
"priority": {
@@ -4225,7 +4225,7 @@
42254225
"isAuthorized": {
42264226
"type": "boolean"
42274227
},
4228-
"isDeleteAction": {
4228+
"isDeleteDialogAction": {
42294229
"type": "boolean"
42304230
},
42314231
"priority": {

src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public sealed class GetDialogDialogGuiActionDto
103103
public Uri Url { get; set; } = null!;
104104
public string? AuthorizationAttribute { get; set; }
105105
public bool IsAuthorized { get; set; }
106-
public bool IsDeleteAction { get; set; }
106+
public bool IsDeleteDialogAction { get; set; }
107107

108108
public DialogGuiActionPriority.Values Priority { get; set; }
109109

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public sealed class CreateDialogDialogGuiActionDto
8484
public string Action { get; set; } = null!;
8585
public Uri Url { get; set; } = null!;
8686
public string? AuthorizationAttribute { get; set; }
87-
public bool IsDeleteAction { get; set; }
87+
public bool IsDeleteDialogAction { get; set; }
8888

8989
public DialogGuiActionPriority.Values Priority { get; set; }
9090

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public sealed class UpdateDialogDialogGuiActionDto
8585
public string Action { get; set; } = null!;
8686
public Uri Url { get; set; } = null!;
8787
public string? AuthorizationAttribute { get; set; }
88-
public bool IsDeleteAction { get; set; }
88+
public bool IsDeleteDialogAction { get; set; }
8989

9090
public DialogGuiActionPriority.Values Priority { get; set; }
9191

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public sealed class GetDialogDialogGuiActionDto
106106
public string Action { get; set; } = null!;
107107
public Uri Url { get; set; } = null!;
108108
public string? AuthorizationAttribute { get; set; }
109-
public bool IsDeleteAction { get; set; }
109+
public bool IsDeleteDialogAction { get; set; }
110110

111111
public DialogGuiActionPriority.Values Priority { get; set; }
112112

src/Digdir.Domain.Dialogporten.Domain/Dialogs/Entities/Actions/DialogGuiAction.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class DialogGuiAction : IEntity
1414
public Uri Url { get; set; } = null!;
1515
public string? AuthorizationAttribute { get; set; }
1616

17-
public bool IsDeleteAction { get; set; }
17+
public bool IsDeleteDialogAction { get; set; }
1818

1919
// === Dependent relationships ===
2020
public DialogGuiActionPriority.Values PriorityId { get; set; }

src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/ObjectTypes.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public sealed class GuiAction
104104
public Uri Url { get; set; } = null!;
105105
public string? AuthorizationAttribute { get; set; }
106106
public bool IsAuthorized { get; set; }
107-
public bool IsDeleteAction { get; set; }
107+
public bool IsDeleteDialogAction { get; set; }
108108

109109
public GuiActionPriority Priority { get; set; }
110110

0 commit comments

Comments
 (0)