Fix #3208 Data Quality - Blank profiler page (#3211)

This commit is contained in:
Sachin Chaurasiya 2022-03-07 16:36:44 +05:30 committed by GitHub
parent b569852062
commit cd2dbabcdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 10 deletions

View File

@ -15,6 +15,7 @@ import classNames from 'classnames';
import React, { FC, Fragment } from 'react';
import { Link } from 'react-router-dom';
import { TITLE_FOR_NON_ADMIN_ACTION } from '../../constants/constants';
import { excludedMetrics } from '../../constants/profiler.constant';
import { Table, TableProfile } from '../../generated/entity/data/table';
import { useAuth } from '../../hooks/authHooks';
import {
@ -63,16 +64,6 @@ const PercentageGraph = ({
);
};
const excludedMetrics = [
'profilDate',
'name',
'nullCount',
'nullProportion',
'uniqueCount',
'uniqueProportion',
'rows',
];
const TableProfiler: FC<Props> = ({
tableProfiles,
columns,

View File

@ -0,0 +1,23 @@
/*
* Copyright 2021 Collate
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const excludedMetrics = [
'profilDate',
'name',
'nullCount',
'nullProportion',
'uniqueCount',
'uniqueProportion',
'rows',
'histogram',
];