Archive-for-finished-ecmrs
Acceptance criteria
-
Implemented code changes don't diverge from the related issue. -
Documentation reflects the status quo after merge. -
Version number is incremented according to SemVer. (Snapshot versions are not merged/released.) -
Only released versions of dependencies are used (i.e. no snapshot versions). -
Pipeline still works. -
GitLab issue is up-to-date.
If necessary, the following sections have been updated:
-
Swagger -
Readme.md -
Documentation
Proposed squash commit message
-
added archived view to all ecmrs that arrived at destination
-
A detailed explanation of the changes introduced by this merge request. Each line should not exceed 72 characters.
Backend:
- Added an archived flag to Ecmr entity
- added a new job that runs daily at 02:00 AM and checks if an ecmr reached status "Reached Destination" and set the archived flag to true.
- changed the logic of the getEcmrs() end point so it checks if the user is trying to call the "active" or archived ecmrs.
- enabled scheduling so the job will run.
Frontend:
- added a new archved view that uses the overview page component and changed the logic in it so it does not show unecessary infos and forbidden actions like "Edit"
- updated service and overviewcomponent to take the archived ecmrs into consideration
Edited by Jens Leveling