-
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
Implement support for hiding a dialog #841
Comments
4 tasks
Fargekritt
added a commit
that referenced
this issue
Oct 3, 2024
## Description * Added systemlabel (Bin/Archive) to hide dialogs * Added post enpoints for endusers to change labels * Added LabelAssignmentLogs ## Related Issue(s) [#841](#841) ## 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new mutation for setting system labels, enhancing dialog management capabilities. - Added new API endpoints for retrieving and setting dialog labels, improving user interaction with dialog states. - Implemented logging for label assignments, allowing users to track changes effectively. - Enhanced search functionality to filter dialogs based on display state. - Added support for handling system labels through a structured command and validation process. - Introduced new data structures and interfaces for improved dialog label assignment and error handling. - **Bug Fixes** - Enhanced validation for dialog labels to ensure correct formatting and values. - **Documentation** - Updated schema and API documentation to reflect new features and endpoints. - **Chores** - Modified project structure for better organization of dialog label features. - Added support for pre-release versions in the SDK configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Amund Myrbostad <amund.myrbostad@digdir.no> Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net> Co-authored-by: Magnus Sandgren <5285192+MagnusSandgren@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Introduction
We need to support user-driven actions to hide dialogs from the inbox (or any view)
Description
There are three distinct and mutually exclusive display states; "default", "bin" and "archive", that should have global effect, and should be fully user manageble for users with write access to the dialog. These states should also be possible for service owners to be set upon dialog creation, to support migration scenarios.
Implementation
The implementation should take into account the label concept described in #198, as this also controls the current display state. In particular, there should be a shared log for changing display state and eventually label (un)assignments.
We want to introduce a new aggregate,
DialogEndUserContext
, that lays the groundwork for these display states - implemented as "system labels" - and eventually user defined labels.There should be a separate entity, eg. called "SystemLabel", which is a type table which all DialogEndUserContexts refers to. There should be three system labels; Default, Bin, Archive.
The log entity should be "LabelAssignmentLog" and should contain information about
The follow endpoints should be added:
GET /enduser/dialogs/{dialogId}/labellog
Should return a list of log entries:
In order to change the display-state, the following EU endpoints should be made available
POST /enduser/dialogs/{dialogId}/labels
which should contain a body containing the requested system label, ie:
Extension of Dialog DTOs
The dialog DTOs (for both search and details endpoints for both EU and SO) should be expanded to contain the enum for the current system labels
The search endpoint should be extended to take a parameter for systemLabel, ie "SystemLabel=bin" should return a list of dialogs with the supplied system labels.
Extension of CreateDialogCommand
Service providers should be allowed to set "systemLabel" in CreateDialogCommand. The label assignment log should reflect this and have the actor set to the service owner organization number
Automatic set of "Default" upon change
The dialog should have its system label automatically set to "Default" whenever the service owner updates the dialog. The assignment log should reflect this.
Tasks
Threat modelling
Acceptance criteria
TBW
The text was updated successfully, but these errors were encountered: