Merge pull request #18867 from tperehinets/maxDepth
Added maxDepth to catalogGraphParams
This commit is contained in:
@@ -133,7 +133,7 @@ describe('<CatalogGraphCard/>', () => {
|
||||
expect(button).toBeInTheDocument();
|
||||
expect(button.closest('a')).toHaveAttribute(
|
||||
'href',
|
||||
'/catalog-graph?rootEntityRefs%5B%5D=b%3Ad%2Fc&unidirectional=true&mergeRelations=true&direction=LR',
|
||||
'/catalog-graph?rootEntityRefs%5B%5D=b%3Ad%2Fc&maxDepth=1&unidirectional=true&mergeRelations=true&direction=LR',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -157,7 +157,7 @@ describe('<CatalogGraphCard/>', () => {
|
||||
expect(button).toBeInTheDocument();
|
||||
expect(button.closest('a')).toHaveAttribute(
|
||||
'href',
|
||||
'/catalog-graph?rootEntityRefs%5B%5D=b%3Ad%2Fc&unidirectional=true&mergeRelations=false&direction=LR',
|
||||
'/catalog-graph?rootEntityRefs%5B%5D=b%3Ad%2Fc&maxDepth=2&unidirectional=true&mergeRelations=false&direction=LR',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@ export const CatalogGraphCard = (
|
||||
const catalogGraphParams = qs.stringify(
|
||||
{
|
||||
rootEntityRefs: [stringifyEntityRef(entity)],
|
||||
maxDepth: maxDepth,
|
||||
unidirectional,
|
||||
mergeRelations,
|
||||
selectedKinds: kinds,
|
||||
|
||||
Reference in New Issue
Block a user