Skip to content

Commit

Permalink
#14554 test case name's length limitation-DBT (#14815)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaileshParmar11 authored Jan 22, 2024
1 parent a9e1936 commit 284ca34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ describe('Data Quality and Profiler should work properly', () => {
.not('.ant-select-dropdown-hidden')
.find(`[title="${profilerSetting.partitionIntervalType}"]`)
.click();
cy.get('[data-testid="column-name"]').click();
cy.get('#includeColumnsProfiler_partitionColumnName').click();
cy.get('.ant-select-dropdown')
.not('.ant-select-dropdown-hidden')
.find(`[title="${profilerSetting.partitionColumnName}"]`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({
pattern: ENTITY_NAME_REGEX,
message: t('message.entity-name-validation'),
},
{
max: 256,
message: t('message.entity-maximum-size', {
entity: t('label.name'),
max: 256,
}),
},
{
validator: (_, value) => {
if (testCases.some((test) => test.name === value)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { useHistory } from 'react-router-dom';
import { ReactComponent as SettingIcon } from '../../../assets/svg/ic-settings-primery.svg';
import { PAGE_HEADERS } from '../../../constants/PageHeaders.constant';
import {
DEFAULT_RANGE_DATA,
INITIAL_OPERATION_METRIC_VALUE,
INITIAL_ROW_METRIC_VALUE,
} from '../../../constants/profiler.constant';
Expand Down Expand Up @@ -79,7 +80,7 @@ const TableProfilerChart = ({
onSettingButtonClick,
isProfilingEnabled,
customMetric: tableCustomMetric,
dateRangeObject,
dateRangeObject = DEFAULT_RANGE_DATA,
onDateRangeChange,
} = useTableProfiler();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ const IncidentManagerDetailPage = () => {
</Col>
<Col className="p-x-lg" data-testid="entity-page-header" span={24}>
<EntityHeaderTitle
className="w-max-full-45"
displayName={testCaseData.data?.displayName}
icon={<TestCaseIcon className="h-9" />}
name={testCaseData.data?.name ?? ''}
Expand Down

0 comments on commit 284ca34

Please sign in to comment.