Skip to content

Commit

Permalink
feat: revise dialog status (#1099)
Browse files Browse the repository at this point in the history
## Description
Revised DialogStatus
* Renamed Processing -> Sent
* Removed signing
* Added Draft
## Related Issue(s)

[#1084](#1084)

## Verification

- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)

---------

Co-authored-by: Amund Myrbostad <amund.myrbostad@digdir.no>
  • Loading branch information
Fargekritt and Fargekritt authored Sep 9, 2024
1 parent 7a8a933 commit 0029f46
Show file tree
Hide file tree
Showing 7 changed files with 1,879 additions and 20 deletions.
8 changes: 4 additions & 4 deletions docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ enum DialogStatus {
NEW
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
IN_PROGRESS
"Equivalent to \"InProgress\", but will be used by the workspace\/frontend for display purposes."
SIGNING
"For processing by the service owner. In a serial process, this is used after a submission is made."
PROCESSING
"Used to indicate user-initiated dialogs not yet sent."
DRAFT
"Sent by the service owner. In a serial process, this is used after a submission is made."
SENT
"Used to indicate that the dialogue is in progress\/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing."
REQUIRES_ATTENTION
"The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
Expand Down
10 changes: 5 additions & 5 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,17 +873,17 @@
"enum": [
"New",
"InProgress",
"Signing",
"Processing",
"Draft",
"Sent",
"RequiresAttention",
"Completed"
],
"type": "string",
"x-enumNames": [
"New",
"InProgress",
"Signing",
"Processing",
"Draft",
"Sent",
"RequiresAttention",
"Completed"
]
Expand Down Expand Up @@ -6107,4 +6107,4 @@
"url": "https://altinn-dev-api.azure-api.net/dialogporten"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public enum Values
InProgress = 2,

/// <summary>
/// Equivalent to "InProgress", but will be used by the workspace/frontend for display purposes.
/// Used to indicate user-initiated dialogs not yet sent.
/// </summary>
Signing = 3,
Draft = 3,

/// <summary>
/// For processing by the service owner. In a serial process, this is used after a submission is made.
/// Sent by the service owner. In a serial process, this is used after a submission is made.
/// </summary>
Processing = 4,
Sent = 4,

/// <summary>
/// Used to indicate that the dialogue is in progress/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public enum DialogStatus
[GraphQLDescription("Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing.")]
InProgress = 2,

[GraphQLDescription("Equivalent to \"InProgress\", but will be used by the workspace/frontend for display purposes.")]
Signing = 3,
[GraphQLDescription("Used to indicate user-initiated dialogs not yet sent.")]
Draft = 3,

[GraphQLDescription("For processing by the service owner. In a serial process, this is used after a submission is made.")]
Processing = 4,
[GraphQLDescription("Sent by the service owner. In a serial process, this is used after a submission is made.")]
Sent = 4,

[GraphQLDescription("Used to indicate that the dialogue is in progress/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing.")]
RequiresAttention = 5,
Expand Down
Loading

0 comments on commit 0029f46

Please sign in to comment.