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

bug: votes query return null value #760

Open
ChaituVR opened this issue Nov 27, 2023 · 4 comments
Open

bug: votes query return null value #760

ChaituVR opened this issue Nov 27, 2023 · 4 comments
Assignees

Comments

@ChaituVR
Copy link
Member

ChaituVR commented Nov 27, 2023

Try the following query

query Votes {
    votes(first: 1000, where: { voter: "0x24F15402C6Bb870554489b2fd2049A85d75B982f" }) {
      proposal {
        id
        space {
          id
        }
        ipfs
      }
    }
  }

It will return a response that contains this
image

@ChaituVR ChaituVR self-assigned this Nov 27, 2023
@ChaituVR ChaituVR changed the title votes query return null value bug: votes query return null value Nov 27, 2023
@wa0x6e
Copy link
Contributor

wa0x6e commented Nov 28, 2023

I am not getting the same graphql response. Was the DB cleaned up in the meantime ?

@ChaituVR
Copy link
Member Author

No change. can try again?

It is bit down in response, search for null
image

@wa0x6e
Copy link
Contributor

wa0x6e commented Dec 3, 2023

How is that possible when we use DELETE FROM votes WHERE proposal = ?; when deleting proposals ?

Is it just bug, which can be resolve by consolidating the votes database ?

@wa0x6e
Copy link
Contributor

wa0x6e commented Feb 1, 2024

This is a an issue with orphan proposals, where the proposals are not linked to a valid space anymore.

Either the space has been renamed, deleted, or something's wrong happened during the migration.

You can see the list of proposals without any valid space with

SELECT space from proposals where space NOT IN (select id from spaces) group by space;

There are currently 81 proposals in that situation

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

2 participants