Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: basic label implementation to hide dialogs #1192

Merged
merged 40 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ac59adb
first rev of entities.
Fargekritt Sep 17, 2024
156ae50
GetDialogLabelEndpoint done maybe? not tested!
Fargekritt Sep 17, 2024
3aa5095
DialogLabel, DialogLabelAssignment updated
Fargekritt Sep 17, 2024
f7aa914
DialogLabelAssignment updated
Fargekritt Sep 17, 2024
37a75b2
Updated commetns
Fargekritt Sep 17, 2024
ada3170
Cleanup + comments
Fargekritt Sep 18, 2024
304de24
first attempt at making Enum correctly
Fargekritt Sep 18, 2024
7c64bea
Cleaned up some of the old label classes
Fargekritt Sep 18, 2024
b2bfee1
Created New aggregate DialogEndUserContext
Fargekritt Sep 20, 2024
c439aaa
Db migrate
Fargekritt Sep 20, 2024
82a8333
Proper migration
Fargekritt Sep 20, 2024
7b74562
Created Endpoint to set SystemLabel
Fargekritt Sep 20, 2024
5129342
Updated LabelId -> Label
Fargekritt Sep 20, 2024
9b6ece5
Made configuration DialogEndUserContext to set delete behavior to set…
Fargekritt Sep 23, 2024
87aed6d
chore: Graphql label mutation WIP (#1179)
oskogstad Sep 24, 2024
d3f1d16
stuff done yes
Fargekritt Sep 24, 2024
8b2e57d
Upated trash label to bin
Fargekritt Sep 24, 2024
044acff
Changed name to label in dtos.
Fargekritt Sep 25, 2024
4dd8910
Create Dialog now creates new dialog with systemlabels properly
Fargekritt Sep 25, 2024
2f1f274
Started working on get label log
Fargekritt Sep 25, 2024
2ab97fe
Search label log created not tested
Fargekritt Sep 26, 2024
cfe56bc
Search dialog label log complete.
Fargekritt Sep 26, 2024
423b3a0
ratelimit notes
Fargekritt Sep 26, 2024
9dc36db
made all classes sealed and updated some test to handle systemlabel c…
Fargekritt Sep 26, 2024
c547857
Base structure for e2e created
Fargekritt Sep 26, 2024
71fccec
e2e search for dialogs based on system label
Fargekritt Sep 26, 2024
973b55c
e2e invalid systemLabel complete
Fargekritt Sep 26, 2024
dc6cf87
label assignment e2e mostly complete
Fargekritt Sep 26, 2024
9c53983
Cleanup
Fargekritt Sep 27, 2024
cbbbcd8
even more Cleanup
Fargekritt Sep 27, 2024
4fb5ab2
cleanup
Fargekritt Sep 27, 2024
afff43b
WIP
MagnusSandgren Oct 1, 2024
f1984c0
Rename Done
Fargekritt Oct 2, 2024
5f40a87
Fixed Search Query for dialog
Fargekritt Oct 2, 2024
33b1d09
Updated e2e tests
Fargekritt Oct 2, 2024
f3372bb
Add revision on DialogEndUserContext.cs
MagnusSandgren Oct 2, 2024
9ffb361
cleanup
Fargekritt Oct 2, 2024
d69ea5c
Fix AddSystemLabel migration
MagnusSandgren Oct 3, 2024
51213a7
Updated schema.verified.graphql
Fargekritt Oct 3, 2024
7421962
cleanup
Fargekritt Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
schema {
query: Queries
mutation: Mutations
subscription: Subscriptions
}

Expand All @@ -11,6 +12,10 @@ interface SearchDialogError {
message: String!
}

interface SetSystemLabelError {
message: String!
}

type Activity {
id: UUID!
createdAt: DateTime
Expand Down Expand Up @@ -155,6 +160,10 @@ type Localization {
languageCode: String!
}

type Mutations {
setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
}

type Queries @authorize(policy: "enduser") {
dialogById(dialogId: UUID!): DialogByIdPayload!
searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
Expand Down Expand Up @@ -211,6 +220,15 @@ type SeenLog {
isCurrentEndUser: Boolean!
}

type SetSystemLabelEntityNotFound implements SetSystemLabelError {
message: String!
}

type SetSystemLabelPayload {
success: Boolean!
errors: [SetSystemLabelError!]!
}

type Subscriptions {
"Requires a dialog token in the 'DigDir-Dialog-Token' header."
dialogEvents(dialogId: UUID!): DialogEventPayload! @authorize(policy: "enduserSubscription", apply: VALIDATION)
Expand Down Expand Up @@ -265,6 +283,11 @@ input SearchDialogInput {
searchLanguageCode: String
}

input SetSystemLabelInput {
dialogId: UUID!
label: SystemLabel!
}

enum ActivityType {
"Refers to a dialog that has been created."
DIALOG_CREATED
Expand Down Expand Up @@ -336,6 +359,12 @@ enum HttpVerb {
CONNECT
}

enum SystemLabel {
DEFAULT
BIN
ARCHIVE
}

enum TransmissionType {
"For general information, not related to any submissions"
INFORMATION
Expand Down
Loading
Loading