-
Notifications
You must be signed in to change notification settings - Fork 3
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: introduce actor and consolidate seenby, performedby and sender #901
Conversation
Quality Gate passedIssues Measures |
@@ -26,8 +27,10 @@ public class DialogActivity : IImmutableEntity, IAggregateCreatedHandler, IEvent | |||
[AggregateChild] | |||
public DialogActivityDescription? Description { get; set; } | |||
|
|||
// todo: should PerformedBy still be nullable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, PerformedBy was nullable as a null string indicated that the actor was the service owner. This is now indicated with an actor instance where the actorType
is serviceOwner
.
See #912 |
This is a rewrite of #901, taking into account the clarified requirements in #851 ## Description * Introduces the DialogActor entity, with DB migrations (breaking) * Replaces the strings for "performedBy" and "seenBy" with instances of DialogActor. This should also be used for "sender" when "transmission" is introduced. * Adds DTOs, mappings and validations for all enduser and service owner endpoints * Hash service replaced with static helper, used directly in mappers * Refactored PersonNameRegistry to PartyNameRegistry * Implement actor name lookup if actor id is supplied * Replaced "via serviceowner" with a simple boolean value (should be used in #386) * Updated seen tests (pid masking) * Added activity log tests (pid masking) Missing * Updated e2e tests ## Related Issue(s) - #851 ## 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: Ole Jørgen Skogstad <skogstad@softis.net>
Description
Related Issue(s)
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)