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

Add custom filter tests with new samples and assertResponse fields #4998

Conversation

gblaih
Copy link
Contributor

@gblaih gblaih commented Sep 13, 2024

No description provided.

@gblaih gblaih force-pushed the clickhouse-new-custom-data-filter-tests branch from 34d2788 to 53d4605 Compare September 18, 2024 17:34
@gblaih gblaih force-pushed the clickhouse-new-custom-data-filter-tests branch 4 times, most recently from 82f29d2 to 26fc0e2 Compare September 18, 2024 20:13
@gblaih gblaih force-pushed the clickhouse-new-custom-data-filter-tests branch from 26fc0e2 to 32a4faf Compare September 18, 2024 20:16
let legacyUrl = url.replace(/column-store\//, '');
if (treatmentLegacyUrl[label]) {
legacyUrl = treatmentLegacyUrl[label](legacyUrl);
if (assertResponse && assertResponse[0] && assertResponse[0].attributeId) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure i understand the necessity of this code up here. the clickhouse fetch should be entirely independent of the assertResponse, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i used it to get the one attribute that is used in assertResponse. so the clinical data counts clickhouse fetch only fetches data for that attribute. then its an easy compare between that response and assertResponse.

0
)} legacy: ${result.legacyDuration.toFixed(0)}`
);
(!result.legacyDuration
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to avoid these duplicating logic (console.log(...)) like this for only a "little" thing like whether it has legacyDuration. better to introduce a variable that gets always gets printed and can sometimes be blank (e.g. when there's no legacyDuration).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i do think it's a good idea to include the fact that there's an assertResponse in this console log here.

Copy link
Collaborator

@alisman alisman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@alisman
Copy link
Collaborator

alisman commented Oct 2, 2024

I will merge this in a new PR since there are conflicts

@alisman alisman closed this Oct 2, 2024
@gblaih gblaih deleted the clickhouse-new-custom-data-filter-tests branch October 22, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants