-
Notifications
You must be signed in to change notification settings - Fork 83
Fix: Correct package_name_with_version
construction
#1753
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
base: main
Are you sure you want to change the base?
Conversation
@seveibar Please review this |
@seveibar @imrishabh18 Please review this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if it's the right fix. Last time I was looking at the issue, it looked something related to react-query
cache
@imrishabh18 You are correct. The issue was that react-query was holding onto stale data. Here's the sequence My newest commit targets this caching problem:
|
is there any proof this fixes the issue? |
@seveibar I will create a test to prove it now |
@seveibar I have added a test for it now |
don't tag me for this one |
@imrishabh18 @ArnavK-09 Please review this |
bun-tests/fake-snippets-api/routes/packages/update-and-refetch.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Rishabh Gupta <[email protected]>
Co-authored-by: Rishabh Gupta <[email protected]>
@imrishabh18 Please try to review again/ Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't run the playwright test in the ci anymore. Do you have a video which shows this has fixed it?
Will add it |
@imrishabh18 {"error":{"error_code":"invalid_next_url","message":"The next url is not approved "https://tscircuit-abhog3qy0-tscircuit.vercel.app/authorize?redirect=https%3A%2F%2Ftscircuit-abhog3qy0-tscircuit.vercel.app%2Feditor%3Fpackage_id%3Dd2c1c529-97b0-41de-96fa-2cc0c84ba342\"","next":"https://tscircuit-abhog3qy0-tscircuit.vercel.app/authorize?redirect=https%3A%2F%2Ftscircuit-abhog3qy0-tscircuit.vercel.app%2Feditor%3Fpackage_id%3Dd2c1c529-97b0-41de-96fa-2cc0c84ba342"}} @imrishabh18 I cannot get demo video like this |
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
it is not stale |
/claim #1717
/closes #1717
PR Description:
This PR fixes a bug where the
package_name_with_version
was being constructed incorrectly inuseUpdatePackageFilesMutation.ts
andedit-package-details-dialog.tsx
. This caused issues with saving packages and managing package files. This PR corrects the construction ofpackage_name_with_version
in both files, ensuring that the API receives the correctly formatted package name and version.