Skip to content

Manage databases and clusters - invalidate tags #2395

@artemmufazalov

Description

@artemmufazalov

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.

  1. Add tag for databases endpoints - getTenantsInfo, getTenantInfo
  2. Add tag for clusters endpoints - getClustersList, getClusterInfo, getClusterBaseInfo
  3. 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} ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions