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: introduce actor and consolidate seenby, performedby and sender #901

Closed
wants to merge 12 commits into from

Conversation

arealmaas
Copy link
Collaborator

@arealmaas arealmaas commented Jul 9, 2024

Description

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • 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., if applicable)

Copy link

@@ -26,8 +27,10 @@ public class DialogActivity : IImmutableEntity, IAggregateCreatedHandler, IEvent
[AggregateChild]
public DialogActivityDescription? Description { get; set; }

// todo: should PerformedBy still be nullable?
Copy link
Member

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.

@elsand elsand mentioned this pull request Jul 21, 2024
4 tasks
@elsand
Copy link
Member

elsand commented Jul 21, 2024

See #912

oskogstad added a commit that referenced this pull request Jul 22, 2024
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>
@oskogstad
Copy link
Collaborator

#912

@oskogstad oskogstad closed this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants