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

Use absinthe query to find a vote by user email & proposal url #87

Open
davefrey opened this issue Apr 2, 2021 · 0 comments
Open

Use absinthe query to find a vote by user email & proposal url #87

davefrey opened this issue Apr 2, 2021 · 0 comments

Comments

@davefrey
Copy link
Member

davefrey commented Apr 2, 2021

In api_client.rb there is a private method user_voted?(participant_email, proposal_url) that currently retrieves all LV votes and then filters locally on mail and url.

Instead we need a parameterized query to just return the vote(s) of interest. Once this is repaired, we can probably pull up the private into the public method used to expose the call. The api-side of this problem is in issue liquidvotingio/api#230.

This same exact problem for finding a delegate is in issue #21 (api_client.rb) and liquidvotingio/api#163 (api side).

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

1 participant