manager
manager copied to clipboard
refactor: [M3-8130] - Query Key Factory for Databases
Description ๐
Updates React Query layer of Databases to adapt our latest patterns
Changes ๐
- Updates Database queries to use a query key factory ๐ญ
- Updates Database queries and mutations to use the "single object notation" (see here) in efforts to make updating from v4 to v5 easier ๐ฆ
- Updates some Database responses and types to match what the API actually returns ๐ก
Preview ๐ท
[!note] No UI changes
How to test ๐งช
- Checkout this PR locally and/or test with the internal preview link ๐
- Test Database functionality in general ๐
- Verify general cache updates happen as expected. For example, renaming a database should propagate to all screens
- Verify all Database automated testing passes โ
As an Author I have considered ๐ค
- [ ] ๐ Doing a self review
- [ ] โ Our contribution guidelines
- [ ] ๐ค Splitting feature into small PRs
- [x] โ Adding a changeset
- [x] ๐งช Providing/Improving test coverage
- [ ] ๐ Removing all sensitive information from the code and PR description
- [ ] ๐ฉ Using a feature flag to protect the release
- [ ] ๐ฃ Providing comprehensive reproduction steps
- [ ] ๐ Providing or updating our documentation
- [ ] ๐ Scheduling a pair reviewing session
- [ ] ๐ฑ Providing mobile support
- [ ] โฟ Providing accessibility support
Coverage Report: โ
Base Coverage: 81.63%
Current Coverage: 81.64%