mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 17:59:52 +00:00
* Fix #7147 UI: Wrong task type being created for Request Description tasks * Fix new user signup throws EntityNotFound error #7174
This commit is contained in:
parent
3dd9a40fa5
commit
98acad6663
@ -363,7 +363,8 @@ export const AuthProvider = ({
|
||||
setIsSigningIn(true);
|
||||
history.push(ROUTES.SIGNUP);
|
||||
} else {
|
||||
showErrorToast(err);
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
history.push(ROUTES.SIGNIN);
|
||||
}
|
||||
})
|
||||
|
@ -277,7 +277,11 @@ const DatasetDetails: React.FC<DatasetDetailsProps> = ({
|
||||
selectedName: 'icon-profilercolor',
|
||||
},
|
||||
isProtected: false,
|
||||
isHidden: !(tablePermissions.ViewAll || tablePermissions.ViewDataProfile),
|
||||
isHidden: !(
|
||||
tablePermissions.ViewAll ||
|
||||
tablePermissions.ViewDataProfile ||
|
||||
tablePermissions.ViewTests
|
||||
),
|
||||
position: 5,
|
||||
},
|
||||
{
|
||||
|
@ -301,8 +301,7 @@ const EntityTable = ({
|
||||
return searchedValue;
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const getColumnName = (cell: any) => {
|
||||
const getColumnName = (cell: ModifiedTableColumn) => {
|
||||
const fqn = cell?.fullyQualifiedName || '';
|
||||
const columnName = getPartialNameFromTableFQN(fqn, [FqnPart.NestedColumn]);
|
||||
// wrap it in quotes if dot is present
|
||||
@ -312,8 +311,7 @@ const EntityTable = ({
|
||||
: columnName;
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const onRequestDescriptionHandler = (cell: any) => {
|
||||
const onRequestDescriptionHandler = (cell: ModifiedTableColumn) => {
|
||||
const field = EntityField.COLUMNS;
|
||||
const value = getColumnName(cell);
|
||||
history.push(
|
||||
@ -326,8 +324,7 @@ const EntityTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const onUpdateDescriptionHandler = (cell: any) => {
|
||||
const onUpdateDescriptionHandler = (cell: ModifiedTableColumn) => {
|
||||
const field = EntityField.COLUMNS;
|
||||
const value = getColumnName(cell);
|
||||
history.push(
|
||||
@ -340,8 +337,7 @@ const EntityTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const onRequestTagsHandler = (cell: any) => {
|
||||
const onRequestTagsHandler = (cell: ModifiedTableColumn) => {
|
||||
const field = EntityField.COLUMNS;
|
||||
const value = getColumnName(cell);
|
||||
history.push(
|
||||
@ -349,8 +345,7 @@ const EntityTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const onUpdateTagsHandler = (cell: any) => {
|
||||
const onUpdateTagsHandler = (cell: ModifiedTableColumn) => {
|
||||
const field = EntityField.COLUMNS;
|
||||
const value = getColumnName(cell);
|
||||
history.push(
|
||||
@ -381,7 +376,7 @@ const EntityTable = ({
|
||||
};
|
||||
|
||||
const getRequestDescriptionElement = (cell: ModifiedTableColumn) => {
|
||||
const hasDescription = Boolean(cell.fullyQualifiedName);
|
||||
const hasDescription = Boolean(cell?.description ?? '');
|
||||
|
||||
return (
|
||||
<button
|
||||
@ -412,9 +407,8 @@ const EntityTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||
const getRequestTagsElement = (cell: any) => {
|
||||
const hasTags = !isEmpty(cell.value || []);
|
||||
const getRequestTagsElement = (cell: ModifiedTableColumn) => {
|
||||
const hasTags = !isEmpty(cell?.tags || []);
|
||||
const text = hasTags ? 'Update request tags' : 'Request tags';
|
||||
|
||||
return (
|
||||
|
@ -11,7 +11,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AxiosError } from 'axios';
|
||||
import { observer } from 'mobx-react';
|
||||
import React, {
|
||||
createContext,
|
||||
@ -32,7 +31,6 @@ import {
|
||||
getOperationPermissions,
|
||||
getUIPermission,
|
||||
} from '../../utils/PermissionsUtils';
|
||||
import { showErrorToast } from '../../utils/ToastUtils';
|
||||
import {
|
||||
EntityPermissionMap,
|
||||
PermissionContextType,
|
||||
@ -83,7 +81,8 @@ const PermissionProvider: FC<PermissionProviderProps> = ({ children }) => {
|
||||
const response = await getLoggedInUserPermissions();
|
||||
setPermissions(getUIPermission(response.data || []));
|
||||
} catch (error) {
|
||||
showErrorToast(error as AxiosError);
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user