-
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
Consolidate "seenBy", "performedBy" and "sender" properties to common model #851
Comments
@elsand |
No, that belongs to the Seen class, not the Actor class. The same goes for the "via serviceowner" part, which initially was part of the actorType-enum - also confusing things. I have now simplified the actorType enum to have two values |
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 This updates the e2e tests to support new actor model. This also disables the org-filter check as there is currently no appropiate way to implement it. ## Related Issue(s) - #851 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required)
Introduction
There is a need for the serviceOwner to supply information about who did what (perform an activity, send a transmission), which matches that of seen log.
Implementation
We create a common entity for this that includes
We need different DTOs for this
The input validation should:
Examples:
In these examples, we see how different inputs DTO from service owners end up as output DTOs.
Inputs
A: ServiceOwner-DTO (input, person representing party):
B: ServiceOwner-DTO (input, organization representing party):
C: ServiceOwner-DTO (input, custom name):
D: ServiceOwner-DTO (input, service owner):
E: ServiceOwner-DTO (input, for the dialog party):
X: ServiceOwner-DTO (input, trying to provide both actorId and actorName):
Serviceowner-DTO outputs
A: ServiceOwner-DTO (output, person representing party):
B: ServiceOwner-DTO (output, organization representing party):
C: ServiceOwner-DTO (output, custom name):
D: ServiceOwner-DTO (output, service owner):
E: ServiceOwner-DTO (out, for the dialog party):
Enduser-DTOs
A: Enduser-DTO (output, person representing party)
B: Enduser-DTO (output, organization representing party)
C: Enduser-DTO (output, custom name):
D: Enduser-DTO (output, service owner):
E: Enduser-DTO (out, for the dialog party):
Summarized:
Tasks
Threat modelling
Acceptance criteria
GIVEN ...
WHEN ....
THEN ...
GIVEN ...
WHEN ....
THEN ...
The text was updated successfully, but these errors were encountered: