-
Notifications
You must be signed in to change notification settings - Fork 8
Environmental summary banner #454
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
Conversation
const fetchArrangerData = ({ | ||
endpointTag, | ||
query, | ||
sqon, | ||
}: { | ||
endpointTag?: string; | ||
query: string; | ||
sqon?: SQONType; | ||
}) => { | ||
return arrangerFetcher({ | ||
body: { | ||
query: query, | ||
variables: { sqon }, | ||
}, | ||
endpointTag, | ||
}); | ||
}; |
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.
this part doesn't need to be duplicated, as it's a shared function...
thinking the structure of these hooks could be turned around.
i.e. now:
hooks/clinical/useReleaseData/index.ts
hooks/environmental/useReleaseData/index.ts
vs:
hooks/useReleaseData/index.ts implements environmental.ts and clinical.ts, reusing code in index.
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.
Thanks for noticing this! I just changed the code to organize hooks/useReleaseData/index.ts
to include the shared code, whereas in environmental.ts
and clinical.ts
contain specific code.
Co-authored-by: Anders Richardsson <[email protected]>
Description
Implement Environmental Summary Banner on Home page. Data is recollected through Arranger which aggregates the relevant results for display.
UI Changes
Environment variables
Changes uses the environment variables to get the exact number of records:
NEXT_PUBLIC_ARRANGER_ENVIRONMENTAL_CARDINALITY_PRECISION_THRESHOLD
: Precision threshold to count number of samples in the bucket. Default 3000NEXT_PUBLIC_ARRANGER_ENVIRONMENTAL_MAX_BUCKET_COUNTS
: the max number or records in the bucket. Used to get exact number of samples . Default 1000Refactoring
Issue Releated:
Waste Water: #58