Y24-339 - Pacbio pools store migration from axios to native fetch to reduce dependencies and increase maintainability. #1961
Labels
Size: S
Small - low effort & risk
Technical Debt
Technical debt
Traction
Stories related to Traction application
Value: 3
Value to the insitute is average
Describe the Housekeeping
The goal of this task is to improve the codebase by reducing dependencies and increasing maintainability. Specifically, we will refactor the Pacbio Pools store to use fetch instead of axios, and create test factories to replace fixture data.
Refactor the Pacbio pools store so that it uses fetch instead of axios : The primary reason for switching from axios to fetch is to minimize the use of external libraries wherever possible. By using the native fetch API, we reduce dependency on third-party libraries, which simplifies the codebase and makes it easier to maintain in the long run.
Create and use test factories instead of test files : Introducing test factories instead of manually maintaining test files and fixtures helps avoid duplication of fixture data between unit and e2e tests. This makes the testing process more consistent, maintainable, and easier to update when changes are made in the codebase. The factory will generate standardized test data across different tests, streamlining the testing process and reducing potential errors caused by inconsistent data.
The major tasks involve:
Blocking issues
Describe any other issues or tickets that may be blocking this change.
Additional context
Y24-138 - As developers we want to move over all requests from Axios to fetch to remove a dependency and make the codebase easier to maintain
The text was updated successfully, but these errors were encountered: