The Skill Repository Service allows content creators / teachers to develop their own competence repositories (i.e., taxonomies), share them with others, and use them to model required and offered compenences of a course.
The old system received only notification that an item was changed, but not what of the item was changed. Our service should become active and pull the information from the MLS API, which would become a very tedious and error-prone task for us.
To overcome this issue, we agreed on receiving directly the changed information. To avoid breaking API changes, we further agreed on adding this information to a custom attribute, so that it's still possible to process only the previously provided information.
For this, we need to integrate a payload attribute, which should carry the changed object.
[x] Add payload attribute to MLSEntity
[x] Use MLSDTO Definition for parsing JsonContent
[x] Revise event.service.ts to handle the MLS DTOs:
The old system received only notification that an item was changed, but not what of the item was changed. Our service should become active and pull the information from the MLS API, which would become a very tedious and error-prone task for us.
To overcome this issue, we agreed on receiving directly the changed information. To avoid breaking API changes, we further agreed on adding this information to a custom attribute, so that it's still possible to process only the previously provided information.
For this, we need to integrate a
payload
attribute, which should carry the changed object.payload
attribute toMLSEntity
MLSDTO
Definition for parsing JsonContentevent.service.ts
to handle the MLS DTOs: