Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to RTK Query #553

Merged
merged 15 commits into from
Dec 13, 2024
Merged

Migrate to RTK Query #553

merged 15 commits into from
Dec 13, 2024

Conversation

flacoman91
Copy link
Contributor

@flacoman91 flacoman91 commented Oct 24, 2024

This updates the app to use RTK Query

@flacoman91 flacoman91 force-pushed the DATAP-1576-rtk-query-upgrade branch 5 times, most recently from d2f14cc to 5b4e295 Compare November 1, 2024 22:29
@flacoman91 flacoman91 force-pushed the DATAP-1576-rtk-query-upgrade branch 6 times, most recently from a5f3ee1 to 8e06b0f Compare November 8, 2024 23:40
@flacoman91 flacoman91 force-pushed the DATAP-1576-rtk-query-upgrade branch 4 times, most recently from f9ebdd3 to cd3d768 Compare November 21, 2024 00:18
@flacoman91 flacoman91 marked this pull request as ready for review November 21, 2024 00:21
@flacoman91 flacoman91 requested a review from cdmh219 November 21, 2024 00:46
src/api/hooks/useGetAggregations.js Outdated Show resolved Hide resolved
src/utils/chart.js Outdated Show resolved Hide resolved
src/utils/chart.js Outdated Show resolved Hide resolved
src/utils/index.js Show resolved Hide resolved
src/reducers/trends/trendsSlice.spec.js Outdated Show resolved Hide resolved
src/reducers/query/querySlice.spec.js Outdated Show resolved Hide resolved
@cdmh219
Copy link
Collaborator

cdmh219 commented Nov 22, 2024

In addition to the feedback provided in each file, please also make sure to update the Cypress tests accordingly (if needed). When I tried running yarn run cypress run on this branch, I got errors that implied the updated REST calls weren't being recognized. Please verify on your end.

test update, restore detail slice temporary to test something

remove detail slice

working aggregations query

standardize fetch aggs into single hook

remove aggsslice

remove queryManager middleware

cleanup, remove more stuff

working map tab

logic to disable query hook

remove message middleware

list view working

cleanup, passing query params to api so we can extract to transformResponse

Save work

save work

move color map to api

remove query manager things

missing dep

more loogic to prevent query from firing when not initialized

working pagination, moved breakpoints to API, and passing them through pagination component

remove breakpoints from querySlice

cleanup

remove persist

clean up comments and errors

complaint detail test updates

save work, clearing out URL unused clode

cleanup

querySlice tests updated

trends test fixes

tile map test

squash lines

add prettier ignore file

updating tests, refactor product

save. working tests for Company filter

refactor

update dist

fixing pill test

issue test fix

restructure files

restore

update tests

save some work

trend depth toggle unit test

squash

moved files

focus header test fixes?

save stuff

searchpanel fix

fixing pagination

unit tests

fixing app.spec test

unit test actionbar

aggregation item test

condense

aggregation item test

aggregation item test

trends panel tests

print info tests

move file

unit test :(

working map panel test

simple filter fix

data export unit test

row test

tour test

line chart test

unit test fixes

delete detail

test for redux store

update unit tests

test coverage

update tests, fix condition causing url to not synch properly when copy/pasting url

fix cypress tests

fix url req call

move api hooks to folder

update dist

update dist
@flacoman91 flacoman91 force-pushed the DATAP-1576-rtk-query-upgrade branch from cfc89ca to ea8a216 Compare November 27, 2024 00:10
@flacoman91
Copy link
Contributor Author

In addition to the feedback provided in each file, please also make sure to update the Cypress tests accordingly (if needed). When I tried running yarn run cypress run on this branch, I got errors that implied the updated REST calls weren't being recognized. Please verify on your end.

The tests were updated since some API calls changed.

I wasn't seeing this. I can look into it further if you can provide a screenshot.

The cypress tests are also running in CI.

…76-rtk-query-upgrade

# Conflicts:
#	dist/ccdb5.css.map
#	dist/ccdb5.js
#	dist/ccdb5.js.map
update tests

fixing up tests for complaints api, update fixtures

linting
@flacoman91 flacoman91 force-pushed the DATAP-1576-rtk-query-upgrade branch from 2ec104e to a19b430 Compare December 12, 2024 19:40
src/api/params/params.spec.js Outdated Show resolved Hide resolved
src/api/params/params.spec.js Outdated Show resolved Hide resolved
src/api/params/params.spec.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@cdmh219 cdmh219 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see previous comments on the use of toBe() vs toEqual() in tests. Otherwise, everything else looks good

@flacoman91 flacoman91 added this pull request to the merge queue Dec 13, 2024
Merged via the queue into main with commit adb4187 Dec 13, 2024
2 checks passed
@flacoman91 flacoman91 deleted the DATAP-1576-rtk-query-upgrade branch December 13, 2024 19:49
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.

2 participants