Skip to content

Dedup database related functions #170

Closed
telekosmos wants to merge 6 commits intoOpenPathfinder:mainfrom
telekosmos:technical-debt/store-dedup
Closed

Dedup database related functions #170
telekosmos wants to merge 6 commits intoOpenPathfinder:mainfrom
telekosmos:technical-debt/store-dedup

Conversation

@telekosmos
Copy link
Contributor

Fix #158

There were quite a few funcitonality duplicated both at src/store and __utils__, the latter used only in __tests__. Most of them were refactored, moved to be in src/store, leaving in __utils__ those ones related to destroy (reset) the database to make up the tests.

Guillermo C. Martínez added 6 commits December 27, 2024 12:36
Functions in `__utils__` related to data (pretty much all of them) where moved to `store`,
shrinking the `__utils__` content dramatically, removing duplicate db code,
gathering all db data functions in one place and leaving only the `resetDatabase` function
there which is only used in tests.
@telekosmos
Copy link
Contributor Author

telekosmos commented Dec 29, 2024

Four extra commits 🙄 🙏 . Pretty much because I missed linting + seeding before pushing and didn't read (although I guessed most of it). Should we add the seeding to that list?

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.

Remove most of the store functions in __utils__

1 participant