Skip to content

Conversation

@briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Mar 26, 2025

Rill has been stuck on version 4.29 of TanStack query and version 6.12 of Orval for years. It appears that the primary hurdle was a small API change regarding the use of a custom queryClient in TanStack Query v5 that Orval was not accounting for.

A PR that I submitted against Orval (orval-labs/orval#1992) to resolve that issue was released with version 7.8 https://github.com/orval-labs/orval/releases/tag/v7.8.0

  • Removes dependency on Rill's fork of TanStack query that is pinned to an older version (repo to be deleted: https://github.com/rilldata/query)
  • Bumps TanStack Query to version 5.69
  • Bumps Orval to version 7.8
  • Fixes deprecated API method of passing a custom queryClient
  • Removes handrolled infinite queries for ListMagicAuthTokens, ListOrganizationInvites, and ListOrganizationMemberUsers and instead generates them with Orval
  • Removes add-signal-argument transformer as this has been a native feature of Orval since 2022 feat(clients): add query cancellation orval-labs/orval#357
  • Fixes an API change with invalidateQueries, refetchQueries and related functions
  • Fixes type issues related to the change of any to unknown

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

This comment was marked as spam.

@briangregoryholmes briangregoryholmes changed the title init commit chore: bump Orval and TanStack Query Mar 26, 2025
@rilldata rilldata deleted a comment from Copilot AI Mar 26, 2025
@ericpgreen2
Copy link
Contributor

Love this! Thank you for doing this!

Some initial UXQA:

  • In Cloud, there's a TypeError in the project layout. Can you be sure to QA Cloud? Especially given we don't have full test coverage there yet. Happy to help, if you'd like.
  • In Developer, there's a regression in the leaderboard loading state. After clicking on a leaderboard item, the whole leaderboard disappears for a moment (Jam). Speculating, I wonder if the refetchOnMount change might have a handful of sneaky regressions that we should keep to an independent PR.

Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

Huge! 🎉

@briangregoryholmes briangregoryholmes merged commit b610d10 into main Apr 4, 2025
9 checks passed
@briangregoryholmes briangregoryholmes deleted the bgh/upgrade-orval-and-tanstack branch April 4, 2025 17:20
NamanMahor pushed a commit that referenced this pull request Apr 10, 2025
* init commit

* type and api fixes

* chore: remove unused import

* fix: add back gc param

* fix: type signature

* fix: type and api updates

* fix: remove logs

* refac: remove refetchOnMount override

* fix: remove log

* fix: type issue

* fix: type fixes

* fix: attempt to fix breadcrumb test

* Two bugfixes

* fix: leaderboard loading state, deprecate useModelHasTimeSeries

* fix: change implementation to use isPending

* Re-generate admin client with `infiniteQueryParams`

* Add `getNextPageParam` functions to admin infinite queries

* chore: update orval to 7.8, regen clients

* fix: type fix

* fix: test retries

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
grahamplata pushed a commit that referenced this pull request Apr 14, 2025
* init commit

* type and api fixes

* chore: remove unused import

* fix: add back gc param

* fix: type signature

* fix: type and api updates

* fix: remove logs

* refac: remove refetchOnMount override

* fix: remove log

* fix: type issue

* fix: type fixes

* fix: attempt to fix breadcrumb test

* Two bugfixes

* fix: leaderboard loading state, deprecate useModelHasTimeSeries

* fix: change implementation to use isPending

* Re-generate admin client with `infiniteQueryParams`

* Add `getNextPageParam` functions to admin infinite queries

* chore: update orval to 7.8, regen clients

* fix: type fix

* fix: test retries

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
grahamplata pushed a commit that referenced this pull request Apr 14, 2025
* init commit

* type and api fixes

* chore: remove unused import

* fix: add back gc param

* fix: type signature

* fix: type and api updates

* fix: remove logs

* refac: remove refetchOnMount override

* fix: remove log

* fix: type issue

* fix: type fixes

* fix: attempt to fix breadcrumb test

* Two bugfixes

* fix: leaderboard loading state, deprecate useModelHasTimeSeries

* fix: change implementation to use isPending

* Re-generate admin client with `infiniteQueryParams`

* Add `getNextPageParam` functions to admin infinite queries

* chore: update orval to 7.8, regen clients

* fix: type fix

* fix: test retries

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
grahamplata pushed a commit that referenced this pull request Apr 15, 2025
* init commit

* type and api fixes

* chore: remove unused import

* fix: add back gc param

* fix: type signature

* fix: type and api updates

* fix: remove logs

* refac: remove refetchOnMount override

* fix: remove log

* fix: type issue

* fix: type fixes

* fix: attempt to fix breadcrumb test

* Two bugfixes

* fix: leaderboard loading state, deprecate useModelHasTimeSeries

* fix: change implementation to use isPending

* Re-generate admin client with `infiniteQueryParams`

* Add `getNextPageParam` functions to admin infinite queries

* chore: update orval to 7.8, regen clients

* fix: type fix

* fix: test retries

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
grahamplata pushed a commit that referenced this pull request Apr 15, 2025
* init commit

* type and api fixes

* chore: remove unused import

* fix: add back gc param

* fix: type signature

* fix: type and api updates

* fix: remove logs

* refac: remove refetchOnMount override

* fix: remove log

* fix: type issue

* fix: type fixes

* fix: attempt to fix breadcrumb test

* Two bugfixes

* fix: leaderboard loading state, deprecate useModelHasTimeSeries

* fix: change implementation to use isPending

* Re-generate admin client with `infiniteQueryParams`

* Add `getNextPageParam` functions to admin infinite queries

* chore: update orval to 7.8, regen clients

* fix: type fix

* fix: test retries

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
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.

3 participants