-
Notifications
You must be signed in to change notification settings - Fork 36
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
proposal query should not return duplicate votes #583
Comments
@ben-kaufman Maybe this is a malformed query, by arc.js. Maybe you can let us know? Thanks! |
Hi @dkent600, it's quite hard to understand what is the issue you have from such a long query... can you please remove everything but the relevant part, or specify where is the issue you are having? |
@ben-kaufman It is easy to observe the issue if you simply run the query and see the |
@dkent600 it is not easy to see what you are doing in this query at all. Anyway if I just run a simple query like so I get no duplicated votes. So I assume that something is wrong with the query.
|
@ben-kaufman Or something is wrong with the engine that is running the query. Suggestions welcome. If you don't get to figuring it out by tomorrow (Monday), I will take a look. |
@ben-kaufman OK, it is unclear to me where is the bug because I am not very familiar with GraphQL: This produces duplicates:
This does not:
My naive opinion is that these should return identical results, one way or the other. |
I created a ticket against subgraph: graphprotocol/graph-node#1816 |
This query is returning proposals with their votes arrays containing votes each duplicated once. This is the query executed by the Alchemy DAO History page.
The results (when run locally against ganache, but note this happens on kovan as well):
The text was updated successfully, but these errors were encountered: