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

feat: added GetSnapVotes endpoint #3

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

matthew-hagemann
Copy link
Collaborator

Returns all votes a user has cast against a specific snap_id for various snap_revisions

Chatted to Dennis and he feels that for the time being getting the users votes against a snap on demand when we load the details page is better than trying to cache and manage vote state for MVP.

Undecided on the endpoint name. Not sure if GetVotes is more concise but ambiguous what the difference between that and ListMyVotes? WDYT?

Returns all votes a user has cast against a specific snap_id for various snap_revisions
Copy link
Contributor

@tim-hm tim-hm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@matthew-hagemann matthew-hagemann merged commit 815fe7d into ubuntu:dev Sep 15, 2023
1 of 2 checks passed
@matthew-hagemann matthew-hagemann deleted the get-user-vote branch September 15, 2023 08:57
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

Successfully merging this pull request may close these issues.

2 participants