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

HL-870 | Wrong number of applications on front page's tabs #2147

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

sirtawast
Copy link
Collaborator

@sirtawast sirtawast commented Jun 27, 2023

Description ✨

Application numbers were shown wrong. Implementation was a bit pricy earlier so I ended up refactoring the whole <ApplicationList>.

<ApplicationList> no longer fetches data by it's own. Data flows now from parent to component which means there's less queries.

If invalidation / stale data later becomes an issue, then implement onClick invalidation for <TabPanel> or refactor useApplicationQuery to useApplicationListQuery for single AND application query and apply where needed.

@codecov-commenter
Copy link

Codecov Report

Merging #2147 (72f0a5d) into develop (2e4d8c1) will decrease coverage by 8.85%.
The diff coverage is 20.51%.

@@             Coverage Diff             @@
##           develop    #2147      +/-   ##
===========================================
- Coverage    20.65%   11.80%   -8.85%     
===========================================
  Files          577      160     -417     
  Lines        11918     4463    -7455     
  Branches      2887     1114    -1773     
===========================================
- Hits          2462      527    -1935     
+ Misses        9052     3767    -5285     
+ Partials       404      169     -235     
Impacted Files Coverage Δ
...mponents/applicationList/useApplicationListData.ts 0.00% <0.00%> (ø)
...src/components/applicationList/ApplicationList.tsx 53.96% <85.71%> (-3.39%) ⬇️
...c/components/applicationList/useApplicationList.ts 100.00% <100.00%> (+48.57%) ⬆️
frontend/benefit/handler/src/constants.ts 100.00% <100.00%> (ø)

... and 444 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link
Contributor

Helsinkibenefit-bf-hdlr is deployed to: https://helsinkibenefit-bf-hdlr-2147.test.kuva.hel.ninja 🚀🚀🚀

@github-actions
Copy link
Contributor

Helsinkibenefit-bf-appl is deployed to: https://helsinkibenefit-bf-appl-2147.test.kuva.hel.ninja 🚀🚀🚀

@github-actions
Copy link
Contributor

Helsinkibenefit-bf-bknd is deployed to: https://helsinkibenefit-bf-bknd-2147.test.kuva.hel.ninja 🚀🚀🚀

@github-actions
Copy link
Contributor

TestCafe result is success for https://helsinkibenefit-bf-appl-2147.test.kuva.hel.ninja! 😆🎉🎉🎉

@sirtawast sirtawast requested a review from mjturt June 30, 2023 08:06
@mjturt mjturt merged commit 36b198d into develop Jul 11, 2023
@mjturt mjturt deleted the hl-870 branch July 11, 2023 18:08
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.

3 participants