mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-29 11:26:05 +00:00
fix(ui): update default status to empty instead queued (#8716)
This commit is contained in:
parent
83003a42da
commit
3b4c5d4e85
@ -81,7 +81,7 @@ export const handleIngestionRetry = (
|
|||||||
($ingestionStatus) => {
|
($ingestionStatus) => {
|
||||||
if (
|
if (
|
||||||
($ingestionStatus.text() === 'Running' ||
|
($ingestionStatus.text() === 'Running' ||
|
||||||
$ingestionStatus.text() === 'Queued') &&
|
$ingestionStatus.text() === 'Queued' || $ingestionStatus.text() === '--') &&
|
||||||
retryCount <= RETRY_TIMES
|
retryCount <= RETRY_TIMES
|
||||||
) {
|
) {
|
||||||
// retry after waiting for 20 seconds
|
// retry after waiting for 20 seconds
|
||||||
@ -136,7 +136,7 @@ export const testServiceCreationAndIngestion = (
|
|||||||
cy.get('[data-testid="service-name"]').should('exist').type(serviceName);
|
cy.get('[data-testid="service-name"]').should('exist').type(serviceName);
|
||||||
interceptURL('GET', 'api/v1/services/ingestionPipelines/*', 'getIngestionPipelineStatus')
|
interceptURL('GET', 'api/v1/services/ingestionPipelines/*', 'getIngestionPipelineStatus')
|
||||||
cy.get('[data-testid="next-button"]').click();
|
cy.get('[data-testid="next-button"]').click();
|
||||||
verifyResponseStatusCode('@getIngestionPipelineStatus', 200)
|
verifyResponseStatusCode('@getIngestionPipelineStatus', 200)
|
||||||
// Connection Details in step 3
|
// Connection Details in step 3
|
||||||
cy.get('[data-testid="add-new-service-container"]')
|
cy.get('[data-testid="add-new-service-container"]')
|
||||||
.parent()
|
.parent()
|
||||||
@ -163,7 +163,7 @@ verifyResponseStatusCode('@getIngestionPipelineStatus', 200)
|
|||||||
cy.contains('Connection test was successful').should('exist');
|
cy.contains('Connection test was successful').should('exist');
|
||||||
interceptURL('GET', '/api/v1/services/ingestionPipelines/status', 'getIngestionPipelineStatus')
|
interceptURL('GET', '/api/v1/services/ingestionPipelines/status', 'getIngestionPipelineStatus')
|
||||||
cy.get('[data-testid="submit-btn"]').should('exist').click();
|
cy.get('[data-testid="submit-btn"]').should('exist').click();
|
||||||
verifyResponseStatusCode('@getIngestionPipelineStatus', 200);
|
verifyResponseStatusCode('@getIngestionPipelineStatus', 200);
|
||||||
// check success
|
// check success
|
||||||
cy.get('[data-testid="success-line"]').should('be.visible');
|
cy.get('[data-testid="success-line"]').should('be.visible');
|
||||||
cy.contains(`"${serviceName}"`).should('be.visible');
|
cy.contains(`"${serviceName}"`).should('be.visible');
|
||||||
@ -217,7 +217,7 @@ verifyResponseStatusCode('@getIngestionPipelineStatus', 200);
|
|||||||
|
|
||||||
export const deleteCreatedService = (typeOfService, service_Name, apiService) => {
|
export const deleteCreatedService = (typeOfService, service_Name, apiService) => {
|
||||||
//Click on settings page
|
//Click on settings page
|
||||||
cy.get('[data-testid="appbar-item-settings"]').should('be.visible').click({force : true});
|
cy.get('[data-testid="appbar-item-settings"]').should('be.visible').click({ force: true });
|
||||||
|
|
||||||
// Services page
|
// Services page
|
||||||
interceptURL('GET', '/api/v1/services/*', 'getServices');
|
interceptURL('GET', '/api/v1/services/*', 'getServices');
|
||||||
@ -906,7 +906,7 @@ export const retryIngestionRun = () => {
|
|||||||
($ingestionStatus) => {
|
($ingestionStatus) => {
|
||||||
if (
|
if (
|
||||||
($ingestionStatus.text() === 'Running' ||
|
($ingestionStatus.text() === 'Running' ||
|
||||||
$ingestionStatus.text() === 'Queued') &&
|
$ingestionStatus.text() === 'Queued' || $ingestionStatus.text() === '--') &&
|
||||||
retryCount <= RETRY_TIMES
|
retryCount <= RETRY_TIMES
|
||||||
) {
|
) {
|
||||||
// retry after waiting for 20 seconds
|
// retry after waiting for 20 seconds
|
||||||
|
@ -135,7 +135,7 @@ export const IngestionRecentRuns: FunctionComponent<Props> = ({
|
|||||||
) : (
|
) : (
|
||||||
status
|
status
|
||||||
);
|
);
|
||||||
}) ?? 'Queued'
|
}) ?? '--'
|
||||||
)}
|
)}
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user