CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
72 stars 40 forks source link

Fetch Refactor: Final cleanup of remaining rest-hooks #6533

Open doug-s-nava opened 2 years ago

doug-s-nava commented 2 years ago

Problem statement

As a report stream developer I want to replace all instances of usage of rest-hooks with react query based hooks. Though most of the work has already been completed, this final ticket is to: 1) Discover any remaining dependencies/occurrences of rest-hooks in the code base 2) Fix those dependencies/occurrences over to react-query 3) Remove rest-hooks as a dependency of the project

This will allow us to completely move over to react-query with no more dependency on rest-hooks.

Notes

Remove all remaining traces of rest-hooks

Check anything else we may have missed

Acceptance criteria

To do

Check:

chris-kuryak commented 1 year ago

@jpandersen87 @stephenkao Is this issue still valid as written? It seems a little old and sparse, so checking to see if it is ready for team refinement this week.

doug-s-nava commented 1 year ago

did you all already transition all of the rest hooks based api calls to react query?

stephenkao commented 1 year ago

I think @jpandersen87 can speak more to this. The work to remove the rest-hooks package is still valid, but it looks like Joseph's draft branch is removing a lot of references to the package exports from our code -- so depending on what comes out of that, this ticket may be redundant. Maybe let's slap a needs-info label on it and close if it turns out to be covered? What do you think @jpandersen87?

jpandersen87 commented 1 year ago

This is more like a parent ticket to the ones that I have been doing to update fetching hooks to react-query.

doug-s-nava commented 1 year ago

my intention with this ticket was as a final cleanup - once the application is fully functioning with react query, all of the remaining cruft around rest hooks (testing, helpers, types, etc.) can be removed. I evidently didn't take the time to catalog where all of that stuff was, though

chris-kuryak commented 1 year ago

@jpandersen87 So is your current work covering everything in this ticket and the concerns mentioned by Doug above? I am just trying to figure out if we need this ticket anymore, or if we need to rewrite it.

chris-kuryak commented 1 year ago

This is blocked by all of the other hook replacement tickets. Search "hooks" with tech-debt label to see them.

KeithNava commented 1 year ago

@KeithNava followup and possibly refactor as a cleanup ticket