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

Upgrade @tanstack/react-query to version 5 (βœ“ Sandbox Passed) #16

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 8, 2023

PR Feedback (click)

  • πŸ‘ Sweep Did Well
  • πŸ‘Ž Sweep Needs Improvement

Description

This pull request upgrades the @tanstack/react-query package to version 5. It also includes other changes such as updating the package.json file and modifying several files in the convertPheno_client directory.

Summary

  • Upgraded @tanstack/react-query package from version 4.36.1 to version 5.x.x in the convertPheno_client/package.json file.
  • Modified the convertPheno_client/src/code/Main.jsx file:
    • Replaced QueryClient import with createQueryClient import from @tanstack/react-query.
    • Replaced ReactQueryDevtools import with ReactQueryDevtools import from @tanstack/react-query/devtools.
    • Updated the initialization of queryClient to use createQueryClient() instead of new QueryClient().
  • Modified the convertPheno_client/src/code/views/conversion/components/clinicalData/ClinicalData.jsx file:
    • Replaced useQueryClient import with useQueryClient and QueryClient imports from @tanstack/react-query.
    • Updated the initialization of queryClient to use new QueryClient() instead of useQueryClient().
  • Modified the convertPheno_client/src/code/views/conversion/components/submission/Submission.jsx file:
    • Replaced useQueryClient import with QueryClient import from @tanstack/react-query.
    • Updated the initialization of queryClient to use new QueryClient() instead of useQueryClient().
  • Modified the convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx file:
    • Replaced useQuery import from @tanstack/react-query with useQuery import from react-query.
    • Added refetchOnWindowFocus: false and refetchOnReconnect: false options to the useQuery hook.

Please review and merge this pull request. Thank you!

Fixes #15.


πŸŽ‰ Latest improvements to Sweep:

  • We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process – from search to planning and coding.
  • Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.

πŸ’‘ To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

Copy link
Contributor Author

sweep-ai bot commented Dec 8, 2023

Sandbox Executions

  • Running GitHub Actions for convertPheno_client/package.json βœ“
Check convertPheno_client/package.json with contents:

Ran GitHub Actions for f513bccd85841122702bec520378e423645c1754:

  • Running GitHub Actions for convertPheno_client/src/code/Main.jsx βœ“
Check convertPheno_client/src/code/Main.jsx with contents:

Ran GitHub Actions for c2148dd99c643bfa64459774b66b10253ee54d50:

  • Running GitHub Actions for convertPheno_client/src/code/views/conversion/ components/clinicalData/ClinicalData.jsx βœ“
Check convertPheno_client/src/code/views/conversion/ components/clinicalData/ClinicalData.jsx with contents:

Ran GitHub Actions for bd4f8f8d775d957bdf98aa921a8a3cf65a89137b:

  • Running GitHub Actions for convertPheno_client/src/code/views/conversion/ components/submission/Submission.jsx βœ“
Check convertPheno_client/src/code/views/conversion/ components/submission/Submission.jsx with contents:

Ran GitHub Actions for cd2e1c955175daaaf6824c858c03917e1e8fd06a:

  • Running GitHub Actions for convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx βœ“
Check convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx with contents:

Ran GitHub Actions for 0cb26750b4b258dce1e0f2cb081e7c14ef089c23:

Copy link
Contributor Author

sweep-ai bot commented Dec 8, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Dec 8, 2023
@github-actions github-actions bot requested a review from IvoLeist December 8, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: support @tanstack/react-query version 5
1 participant