Summary:
- Fix navigation on notification page
- Enable and fix e2e-test for notifications
- api: Notify assignee when projected budgets are updated or deleted
- api: Add unit tests for projected budgets
- api: Send notification to new workflowitem assignee and add unit tests
- api: adapted test script for new file structure
- ui: Fix enabling of redirect button on notification page
- ui: Fix redirect button in fly-in notifications
- ui: Fix redirect button in fly-in notifications
- ui: Fix language issue
Fix navigation on notification page:
- The navigation was disabled on the notification page - this was fixed
by setting the notification count correctly in the reducer
- The last page of the notifications overfetched the notifications -
this was fixed by calculating the limit for each page to display only
the remaining items.
- The notification message was changed for the case where the user is
not allowed to see the resource - "cannot fond project" was removed
e2e-tests: Fix test for notifications:
- Added command for closing a project
- Activated and fixed the test for notifications
- Added class names to read all button and notifications in the UI
Notify assignee when projected budgets are updated or deleted:
Since the assigned user gets notified when the project/subproject is updated,
he/she also should get notified when the projected budget is updated or
deleted.
- API/Domain layer: Added the creation of notification events for
project_projected_budget_update, project_projected_budget_delete ,subproject_projected_budget_update,subproject_projected_budget_delete
- API/Service layer: Added the function to resolve users and groups to
the repository that is called by the domain layer
- Frontend: Added the business event to the language file, so the
message can be displayed
Closes #283
ui: Fix enabling of redirect button on notification page
The button is now enabled when the user has the permissions to see the
project/subproject and vice versa.
Closes #284
ui: Fix redirect button in fly-in notifications
When the user gets a fly-in notification, the magnifier button now
redirects to the project/subproject mentioned in the notification.
ui: Fix language issue:
The entries for project_projected_budget_updated, project_projected_budget_deleted, subproject_projected_budget_updated, subproject_projected_budget_deleted are now located in the correct section of the german language file.
Minor Fixes:
- UI: Use 'data-test' labels to identify elements for testing in
- NotificationListItems
- E2E-Test: Use the 'data-test' label to query elements in the DOM
- API: Use consistent implementation for creation of notification events for projected budget updates/deletions
api: Add unit tests for projected budgets:
Add unit tests for project_projected_budget_update, project_projected_budget_delete,
subproject_projected_budget_update, subproject_projected_budget_delete to test sending of notifications.
api: adapted test script for new file structure
With the command 'npm run test:here name_of_test_case_file' you can now
test specific unit test files.
api: Send notification to new workflowitem assignee
The notification was sent to the old assignee instead of the new
assignee. Now the new assignee is notified if a workflow item is
assigned to him/her.
api: Send correct notifications after assigining workflow item
- The recipient for notifications after assigning workflowitems is now
the new assignee of the workflowitem as it should be
- Added unit test to test this behaviour
- Fixed typos in other unit tests and added one test case each
Add changelog entry