feat(zones): Migrate zones to APIv3 MAASENG-3405 #5580
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Done
@tanstack/react-query
plugin@app/apiclient
QA steps
Fixes
Resolves:
MAASENG-4264
MAASENG-4261
MAASENG-3408
MAASENG-4262
MAASENG-4263
Notes
*Some columns will not have data because the backend models currently lack the corresponding fields.
Additionally, the existing tests assume Redux stores for data fetching, however, since v3 now uses React Query instead of stores, the tests use actual fetching for zones. Since Zones have missing fields as mentioned, and are not mocked as expected, the tests fail. Migrating the tests to v3 by mocking queries after necessary fields are added to the Zones API should resolve the issue.