Currently we invalidate specific endpoints.
If we update database, not only tenants endpoint should be invalidated, but also endpoint that connected with this database. The same is applicable to clusters.
- Add tag for databases endpoints -
getTenantsInfo, getTenantInfo
- Add tag for clusters endpoints -
getClustersList, getClusterInfo, getClusterBaseInfo
- Invalidate this tags after create / update / delete
These tags should include some id, to refresh both all entities data and specific entity data
providesTags: (_result, _error, arg) => [ 'All', {type: 'ClusterData', id: cluster_name} ],