Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supportsAdvancedVisibility to check for v1.20 #1165

Merged
merged 21 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update cypress tests, remove unused code
  • Loading branch information
Alex-Tideman committed Feb 16, 2023
commit 555f92342fee399fa005d9f969086bbd1f3d41c7
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('Workflow Executions List With Search', () => {
cy.get('#time-range-filter').click();
cy.contains('15 minutes').click();

cy.url().should('contain', 'StartTime+>');
cy.url().should('contain', 'StartTime+%3E');
cy.get('[data-testid="workflow-count"]').should(
'have.text',
'Results 15 of 15 workflows',
Expand All @@ -167,7 +167,7 @@ describe('Workflow Executions List With Search', () => {
cy.contains('3 hours').click();
cy.contains('End Time').click();

cy.url().should('contain', 'CloseTime+>');
cy.url().should('contain', 'CloseTime+%3E');
cy.get('[data-testid="workflow-count"]').should(
'have.text',
'Results 15 of 15 workflows',
Expand Down Expand Up @@ -371,7 +371,7 @@ describe('Workflow Executions List With Search using only MySql on 1.20', () =>
cy.get('#time-range-filter').click();
cy.contains('15 minutes').click();

cy.url().should('contain', 'StartTime+>');
cy.url().should('contain', 'StartTime+%3E');
cy.get('[data-testid="workflow-count"]').should(
'have.text',
'Results 15 of 15 workflows',
Expand All @@ -383,7 +383,7 @@ describe('Workflow Executions List With Search using only MySql on 1.20', () =>
cy.contains('3 hours').click();
cy.contains('End Time').click();

cy.url().should('contain', 'CloseTime+>');
cy.url().should('contain', 'CloseTime+%3E');
cy.get('[data-testid="workflow-count"]').should(
'have.text',
'Results 15 of 15 workflows',
Expand Down
7 changes: 3 additions & 4 deletions src/lib/stores/bulk-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export const supportsAdvancedVisibility = derived(
);

export const supportsAdvancedVisibilityWithOrderBy = derived(
[cluster, temporalVersion, isCloud],
([$cluster, $temporalVersion, $isCloud]) =>
advancedVisibilityEnabledWithOrderBy($cluster, $temporalVersion) ||
$isCloud,
[cluster, isCloud],
([$cluster, $isCloud]) =>
advancedVisibilityEnabledWithOrderBy($cluster) || $isCloud,
);
2 changes: 0 additions & 2 deletions src/lib/utilities/advanced-visibility-enabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export const advancedVisibilityEnabled = (
// Add isVersionNewer check when we know when orderBy is supported
export const advancedVisibilityEnabledWithOrderBy = (
cluster: ClusterInformation,
version: string,
) => {
return cluster?.visibilityStore?.includes('elasticsearch');
// || isVersionNewer(version, '1.20')
};