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

chore: add leaderboards code snippets and example program #407

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Apr 9, 2024

Adds a leaderboard example file as well as dev docs code snippets for each leaderboard method

@anitarua anitarua marked this pull request as ready for review April 9, 2024 17:33
@anitarua anitarua requested review from a team and bruuuuuuuce April 9, 2024 17:34
panic(err)
} else {
switch r := getRankResponse.(type) {
case *responses.LeaderboardFetchSuccess:
Copy link
Contributor

Choose a reason for hiding this comment

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

what other types are available here? Or is it just Success?

Is this how we modeled other Fetch APIs? or are they like, Hit + Miss?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's only FetchSuccess, no Hit/Miss.

We'd waffled on Success/Error vs Found/NotFound/Error and settled on Success/Error after the bug bash: momentohq/client-sdk-javascript#966

@anitarua anitarua requested a review from pgautier404 April 11, 2024 16:43
Copy link
Contributor

@pgautier404 pgautier404 left a comment

Choose a reason for hiding this comment

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

LGTM!

@anitarua anitarua merged commit b53824c into main Apr 11, 2024
6 checks passed
@anitarua anitarua deleted the leaderboards-examples branch April 11, 2024 17:54
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.

3 participants