mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 10:26:09 +00:00
* Fixed issue Create test suite ingestion pipelines with underscores instead of spaces #7279 * used utils method for replacing space
This commit is contained in:
parent
c12cc0276e
commit
d7d2d7eae9
@ -35,6 +35,7 @@ import {
|
|||||||
} from '../../generated/api/services/ingestionPipelines/createIngestionPipeline';
|
} from '../../generated/api/services/ingestionPipelines/createIngestionPipeline';
|
||||||
import { IngestionPipeline } from '../../generated/entity/services/ingestionPipelines/ingestionPipeline';
|
import { IngestionPipeline } from '../../generated/entity/services/ingestionPipelines/ingestionPipeline';
|
||||||
import jsonData from '../../jsons/en';
|
import jsonData from '../../jsons/en';
|
||||||
|
import { replaceSpaceWith_ } from '../../utils/CommonUtils';
|
||||||
import { getTestSuitePath } from '../../utils/RouterUtils';
|
import { getTestSuitePath } from '../../utils/RouterUtils';
|
||||||
import { showErrorToast } from '../../utils/ToastUtils';
|
import { showErrorToast } from '../../utils/ToastUtils';
|
||||||
import SuccessScreen from '../common/success-screen/SuccessScreen';
|
import SuccessScreen from '../common/success-screen/SuccessScreen';
|
||||||
@ -105,13 +106,15 @@ const TestSuiteIngestion: React.FC<TestSuiteIngestionProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const createIngestionPipeline = async (repeatFrequency: string) => {
|
const createIngestionPipeline = async (repeatFrequency: string) => {
|
||||||
|
const updatedName = replaceSpaceWith_(testSuite.name);
|
||||||
|
|
||||||
const ingestionPayload: CreateIngestionPipeline = {
|
const ingestionPayload: CreateIngestionPipeline = {
|
||||||
airflowConfig: {
|
airflowConfig: {
|
||||||
scheduleInterval: isEmpty(repeatFrequency)
|
scheduleInterval: isEmpty(repeatFrequency)
|
||||||
? undefined
|
? undefined
|
||||||
: repeatFrequency,
|
: repeatFrequency,
|
||||||
},
|
},
|
||||||
name: `${testSuite.name}_${PipelineType.TestSuite}`,
|
name: `${updatedName}_${PipelineType.TestSuite}`,
|
||||||
pipelineType: PipelineType.TestSuite,
|
pipelineType: PipelineType.TestSuite,
|
||||||
service: {
|
service: {
|
||||||
id: testSuite.id || '',
|
id: testSuite.id || '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user