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

🐛 Fix useFetchAssessments query key #1390

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Sep 21, 2023

The query key for useFetchAssessments was set to use the same query key as useFetchQuestionnaires. Setting the query keys to appropriate values prevent a situation where the first use of one of them will cause them both to have the same response. Having an Assessment[] returned instead of a Questionnaire[], or vice versa, does cause some problems.

The query key for `useFetchAssessments` was set to use the same
query key as `useFetchQuestionnaires`.  Setting the query keys to
appropriate values prevent a situation where the first use of one
of them will cause them both to have the same response.  Having an
`Assessment[]` returned instead of a `Questionnaire[]`, or vice
versa, does cause some problems.

Signed-off-by: Scott J Dickerson <[email protected]>
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (add2717) 41.34% compared to head (7f4f389) 41.34%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1390   +/-   ##
=======================================
  Coverage   41.34%   41.34%           
=======================================
  Files         138      138           
  Lines        4334     4334           
  Branches     1039     1039           
=======================================
  Hits         1792     1792           
  Misses       2454     2454           
  Partials       88       88           
Flag Coverage Δ
client 41.34% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
client/src/app/api/models.ts 100.00% <ø> (ø)
client/src/app/queries/assessments.ts 25.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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