mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-27 03:10:04 +00:00
* Fix #6115 UI : Getting `Invalid field name policyUrl` on the roles page * Fix: Entity should be a hyperlink - Explore page
This commit is contained in:
parent
2968e600aa
commit
ccdfef8f0e
@ -16,7 +16,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|||||||
import { isNil, isString, isUndefined, startCase, uniqueId } from 'lodash';
|
import { isNil, isString, isUndefined, startCase, uniqueId } from 'lodash';
|
||||||
import { ExtraInfo } from 'Models';
|
import { ExtraInfo } from 'Models';
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import { useHistory, useLocation } from 'react-router-dom';
|
import { Link, useHistory, useLocation } from 'react-router-dom';
|
||||||
import AppState from '../../../AppState';
|
import AppState from '../../../AppState';
|
||||||
import { FQN_SEPARATOR_CHAR } from '../../../constants/char.constants';
|
import { FQN_SEPARATOR_CHAR } from '../../../constants/char.constants';
|
||||||
import { ROUTES } from '../../../constants/constants';
|
import { ROUTES } from '../../../constants/constants';
|
||||||
@ -151,6 +151,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
src={serviceTypeLogo(serviceType || '')}
|
src={serviceTypeLogo(serviceType || '')}
|
||||||
/>
|
/>
|
||||||
<h6 className="tw-flex tw-items-center tw-m-0 tw-text-base tw-pl-2">
|
<h6 className="tw-flex tw-items-center tw-m-0 tw-text-base tw-pl-2">
|
||||||
|
<Link to={getEntityLink(indexType, fullyQualifiedName)}>
|
||||||
<button
|
<button
|
||||||
className="tw-text-grey-body tw-font-semibold"
|
className="tw-text-grey-body tw-font-semibold"
|
||||||
data-testid="table-link"
|
data-testid="table-link"
|
||||||
@ -158,6 +159,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
onClick={handleLinkClick}>
|
onClick={handleLinkClick}>
|
||||||
{stringToHTML(name)}
|
{stringToHTML(name)}
|
||||||
</button>
|
</button>
|
||||||
|
</Link>
|
||||||
</h6>
|
</h6>
|
||||||
{deleted && (
|
{deleted && (
|
||||||
<>
|
<>
|
||||||
|
@ -172,10 +172,7 @@ const RolesPage = () => {
|
|||||||
|
|
||||||
const fetchPolicy = (id: string) => {
|
const fetchPolicy = (id: string) => {
|
||||||
setIsLoadingPolicy(true);
|
setIsLoadingPolicy(true);
|
||||||
getPolicy(
|
getPolicy(id, 'displayName,description,owner,enabled,rules,location')
|
||||||
id,
|
|
||||||
'displayName,description,owner,policyUrl,enabled,rules,location'
|
|
||||||
)
|
|
||||||
.then((res: AxiosResponse) => {
|
.then((res: AxiosResponse) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
setCurrentRolePolicies((preV) => [...preV, res.data]);
|
setCurrentRolePolicies((preV) => [...preV, res.data]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user