Merge pull request #10013 from backstage/freben/no-name
remove `CatalogApi.getEntityByName`
This commit is contained in:
@@ -27,7 +27,6 @@ describe('CatalogIdentityClient', () => {
|
||||
const catalogApi: jest.Mocked<CatalogApi> = {
|
||||
getLocationById: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
getEntities: jest.fn(),
|
||||
addLocation: jest.fn(),
|
||||
removeLocationById: jest.fn(),
|
||||
|
||||
@@ -61,7 +61,6 @@ describe('createRouter', () => {
|
||||
addLocation: jest.fn(),
|
||||
getEntities: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
removeLocationById: jest.fn(),
|
||||
|
||||
@@ -58,7 +58,6 @@ describe('<CatalogGraphCard/>', () => {
|
||||
catalog = {
|
||||
getEntities: jest.fn(),
|
||||
getEntityByRef: jest.fn(async _ => ({ ...entity, relations: [] })),
|
||||
getEntityByName: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
|
||||
@@ -91,7 +91,6 @@ describe('<CatalogGraphPage/>', () => {
|
||||
getEntityByRef: jest.fn(async (n: any) =>
|
||||
n === 'b:d/e' ? entityE : entityC,
|
||||
),
|
||||
getEntityByName: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
|
||||
-1
@@ -156,7 +156,6 @@ describe('<EntityRelationsGraph/>', () => {
|
||||
catalog = {
|
||||
getEntities: jest.fn(),
|
||||
getEntityByRef: jest.fn(async n => entities[n as string]),
|
||||
getEntityByName: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
|
||||
@@ -30,7 +30,6 @@ describe('useEntityStore', () => {
|
||||
catalogApi = {
|
||||
getEntities: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
|
||||
@@ -94,7 +94,6 @@ describe('CatalogImportClient', () => {
|
||||
addLocation: jest.fn(),
|
||||
removeLocationById: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
|
||||
-1
@@ -39,7 +39,6 @@ describe('<StepPrepareCreatePullRequest />', () => {
|
||||
getEntities: jest.fn(),
|
||||
addLocation: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
removeLocationById: jest.fn(),
|
||||
|
||||
@@ -29,7 +29,6 @@ describe('<DefaultExplorePage />', () => {
|
||||
removeLocationById: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
refreshEntity: jest.fn(),
|
||||
getEntityAncestors: jest.fn(),
|
||||
getEntityFacets: jest.fn(),
|
||||
|
||||
@@ -30,7 +30,6 @@ describe('<DomainExplorerContent />', () => {
|
||||
removeLocationById: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
refreshEntity: jest.fn(),
|
||||
getEntityAncestors: jest.fn(),
|
||||
getEntityFacets: jest.fn(),
|
||||
|
||||
@@ -30,7 +30,6 @@ describe('<GroupsExplorerContent />', () => {
|
||||
removeLocationById: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
refreshEntity: jest.fn(),
|
||||
getEntityAncestors: jest.fn(),
|
||||
getEntityFacets: jest.fn(),
|
||||
|
||||
@@ -30,7 +30,6 @@ describe('<FossaPage />', () => {
|
||||
addLocation: jest.fn(),
|
||||
getEntities: jest.fn(),
|
||||
getEntityByRef: jest.fn(),
|
||||
getEntityByName: jest.fn(),
|
||||
getLocationByRef: jest.fn(),
|
||||
getLocationById: jest.fn(),
|
||||
removeEntityByUid: jest.fn(),
|
||||
|
||||
Reference in New Issue
Block a user