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

QF bug - telling me I already donated but I did not. #4728

Open
laurenluz opened this issue Sep 12, 2024 · 11 comments
Open

QF bug - telling me I already donated but I did not. #4728

laurenluz opened this issue Sep 12, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@laurenluz
Copy link
Member

UI is teling me I already donated to public nouns operatios in the round, but I didn't!!

See?
image

My donations:
image

I donated well before this round started.

Are we using the round "start time" to consider if the user donated? or the round "Active time? @CarlosQ96

@divine-comedian
Copy link
Contributor

@CarlosQ96 coulnd't reproduce this issue @laurenluz

@divine-comedian divine-comedian moved this from New Issues to Dev Research in All-Devs Sep 30, 2024
@divine-comedian divine-comedian added the bug Something isn't working label Sep 30, 2024
@divine-comedian
Copy link
Contributor

@HrithikSampson do you mind investigating this one with guidance from @CarlosQ96

@HrithikSampson
Copy link
Collaborator

Sure @divine-comedian . I will investigate this.

@HrithikSampson
Copy link
Collaborator

HrithikSampson commented Oct 3, 2024

@laurenluz , it seems that the round for the project needs to be active and it needs to be within the beginDate and endDate of the round and needs to be on an eligible network for the round.

@HrithikSampson
Copy link
Collaborator

@laurenluz , I think that there were no rounds on September 3, when the donation was made

Image

@laurenluz
Copy link
Member Author

yes @HrithikSampson - there was no QF round on Sept 3 (when I did donate)... yet (when the QF round was active & live) the dapp was telling me that I already donated to that project during this QF round, so my estimated matching will be wrong

I should not have seen this prompt at all, so there is a bug, which is why I created this issue.

@CarlosQ96
Copy link
Collaborator

@HrithikSampson did you manage to replicate the issue? Can DM the details and ill continue.

@HrithikSampson
Copy link
Collaborator

@CarlosQ96 I couldn't replicate the issue

@CarlosQ96 CarlosQ96 moved this from Dev Research to In Progress in All-Devs Nov 7, 2024
@CarlosQ96
Copy link
Collaborator

CarlosQ96 commented Nov 7, 2024

@laurenluz @divine-comedian It's really weird this issue occured as looking at the query there is no way that message should happen by mistake.
The message is triggered if you have already donated to a project during the round, so you have 1 marked donation already on that project.

This function takes into account userId, projectId, qfroundId and that the donation is verified.

However it does not take into account startTime. I can add that.

Reasons it could have happened it's too hard to debug atm and no way to tell from the backend. I checked the 3rd of september donation and its not marked in the round, so the function shouldn't have triggered that. Not sure if it could have been some cache of sorts in the frontend.

But to be sure it doesnt happen ill add the starttime condition

Also, been unable to reproduce it like Hithrik.

@CarlosQ96
Copy link
Collaborator

@divine-comedian Fix is ready to be merged on staging, approved by Ramin. But I am not sure how to replicate/test the issue. Not sure even QA can replicate it.

For now it's a band aid fix that forces checking the DATES too on top of the other conditions, to prevent the alert to show when it shouldn't.

Should we merge and release a hotfix? Then call it done but monitor it on the next round? What do you think?

@laurenluz
Copy link
Member Author

this sounds good to me! I can keep an eye on it next round, since I experienced the original bug.

@CarlosQ96 CarlosQ96 moved this from Code Review/PR to Done in All-Devs Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants