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

As the snippets gets more star it duplicates on the dashboard #200

Open
imrishabh18 opened this issue Nov 13, 2024 · 9 comments
Open

As the snippets gets more star it duplicates on the dashboard #200

imrishabh18 opened this issue Nov 13, 2024 · 9 comments

Comments

@imrishabh18
Copy link
Member

Image

The motor-driver-breakout appears twice on the list

cc: @seveibar

@ahmedhalac
Copy link
Contributor

is this list of snippets hardcoded?

@imrishabh18 imrishabh18 changed the title Increasing the star duplicates on the dashboard As the snippets gets more star it duplicates on the dashboard Nov 13, 2024
@imrishabh18
Copy link
Member Author

@ahmedhalac No, the trending snippets list is not hardcoded

@Abse2001
Copy link
Contributor

Abse2001 commented Nov 21, 2024

@imrishabh18 I can't repro in local works fine
Image

@imrishabh18
Copy link
Member Author

@Abse2001 It is still getting duplicated as you can test in the https://tscircuit.com

@Abse2001
Copy link
Contributor

@imrishabh18 ya I was asking if you now if we can repro in local.

@Abse2001
Copy link
Contributor

when you are signed out there is no duplicate https://tscircuit.com
Image
when signed in there is.
Image

@Abse2001
Copy link
Contributor

@seveibar on local repo it does not get duplicated either if you are signed in or not idk how to repro this one.

@imrishabh18
Copy link
Member Author

Even I am not sure, probably it's a production api issue

@seveibar
Copy link
Contributor

@imrishabh18 yep it's a production API issue, @Abse2001 has figured out it's related to a join with user data because of the auth token

Internal issue w/ prod api filed here: https://github.com/tscircuit/registry-api/issues/36

Inside getSnippetsQuery function used here https://github.com/tscircuit/registry-api/blob/main/routes/snippets/list_trending.ts

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

No branches or pull requests

4 participants