-
Notifications
You must be signed in to change notification settings - Fork 18
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
By tapping on "refresh score" the user's passport score is changed to 0 on stg #1472
Comments
Could you please assign this issue to a developer? @jainkrati |
@maryjaf does the issue occur always? I tried to reproduce it code wise locally fetching data. But im getting everything correctly. |
I've tested with 2 users on stg and this bug happens Screen.Recording.2024-04-16.at.1.12.22.PM.mov |
@maryjaf It seems the problem is on BE side because it returns zero. |
Yeah and it was assigned to @CarlosQ96 |
@maryjaf lets test it tomorrow in a meeting. My testing didnt lead to the right bug. So something else must be setting it to zero. |
Did you check the above curl that I shared in description ? @CarlosQ96 curl --location 'https://impact-graph.serve.giveth.io/graphql' |
It happens on prod also @CarlosQ96 @jainkrati Screen.Recording.2024-04-22.at.7.15.33.PM.mov |
From my testings. My original score was 10, now it's 0. Seems Gitcoin expired all scores by default and most people went back to 0. @laurenluz @jainkrati in that case I can't do anything about it. People must go inside their profile in gitcoin and get more stamps to increase their score. There seems to be an expiration, but it's hard to tell which, documentation say it may be 3 months. But in https://www.scorer.gitcoin.co/#/dashboard/scorer |
https://docs.passport.gitcoin.co/building-with-passport/major-concepts/expirations docs about expiration |
Refreshing scores POST /registry/submit-passport So ill separate it into two actions. REFRESH then FETCH |
I've tested on prod today, and the problem related to showing 0 for score has been resolved Screen.Recording.2024-04-23.at.11.30.02.AM.mov |
There is a problem On stg for user with passport score 0 @CarlosQ96 but on stg, in the response of "query UserByAddress", passport score is shown null: "passportScore": null, |
@maryjaf We have two users with this wallet address (one of them are lowercase and the other one is not) so it makes this problem, your data is old and now we just save walletAddresses ad lowercase and it's unique so it would not happen for other addresses, now if you want I can change the wallet address of one of your users to another thing if you want to. |
Thanks @mohammadranjbarz I've checked by another user with score 0 and this problem doesn't happen |
By tapping on "refresh score" button, the showing score in my account is changed to 0, but my real score isn't zero on gitcoin passport site
curl 'https://impact-graph.serve.giveth.io/graphql'
-H 'accept: /'
-H 'accept-language: en'
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNBZGRyZXNzIjoiMHhENWRiM0Y4QjBhMjM2MTc2NTg3NDYwZEM4NUYwZkM1NzA1RDc4NDc3IiwiZXhwaXJhdGlvbkRhdGUiOiIyMDI0LTA0LTI2VDA3OjM5OjQ2LjkwN1oiLCJqdGkiOiIxNzExNTI1MTg2OTA0LTI3OGM2MjZjNjMiLCJpYXQiOjE3MTE1MjUxODYsImV4cCI6MTcxNDExNzE4NX0.OBJWdWK7rCbcgs8xXny-eLWWwWQrQzTyMfAvdmjC_Mk'
-H 'authversion: 2'
-H 'content-type: application/json'
-H 'origin: https://staging.giveth.io'
-H 'referer: https://staging.giveth.io/'
-H 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "macOS"'
-H 'sec-fetch-dest: empty'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-site: same-site'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
--data-raw $'{"variables":{"address":"0xd5db3f8b0a236176587460dc85f0fc5705d78477"},"query":"query ($address: String\u0021) {\n refreshUserScores(address: $address) {\n id\n firstName\n lastName\n name\n email\n avatar\n walletAddress\n url\n location\n boostedProjectsCount\n likedProjectsCount\n donationsCount\n projectsCount\n passportScore\n passportStamps\n }\n}"}'
cc: @jainkrati
The text was updated successfully, but these errors were encountered: