Problem statement:
Presently to identify the plugins which are used in the content, we have to parse the complete body object & identify the plugins id of the plugin exist in the plugin-manifest of the content. To do this, we have to run some java/node script on the server to find list of contents which are using the specific plugin.
Solution:
Add outward relation relations with content to the plugins used in the content. This helps to quickly identify the contents which are using the specific plugin.
- plugins field is inserted in the metadata of old published resources using node script.
- This is been handled in the request header, while creation/updation.
- Both Scenerios Both Scenarios i.e Content editor and CBSE program have been covered.
Format of plugins field in metadata of resource as follows:
plugins: [{ identifier: ' ' , semanticVersion: ' ' }]