-
Notifications
You must be signed in to change notification settings - Fork 266
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
Add custom filter tests with new samples and assertResponse fields #4998
Conversation
34d2788
to
53d4605
Compare
82f29d2
to
26fc0e2
Compare
26fc0e2
to
32a4faf
Compare
src/shared/api/validation.ts
Outdated
let legacyUrl = url.replace(/column-store\//, ''); | ||
if (treatmentLegacyUrl[label]) { | ||
legacyUrl = treatmentLegacyUrl[label](legacyUrl); | ||
if (assertResponse && assertResponse[0] && assertResponse[0].attributeId) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
src/shared/api/validation.ts
Outdated
0 | ||
)} legacy: ${result.legacyDuration.toFixed(0)}` | ||
); | ||
(!result.legacyDuration |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
I will merge this in a new PR since there are conflicts |
No description provided.