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: add data client support for list api calls #64

Merged
merged 19 commits into from
Jan 9, 2024

Conversation

bruuuuuuuce
Copy link
Collaborator

@bruuuuuuuce bruuuuuuuce commented Jan 5, 2024

closes #26
closes #70
closes #71

@bruuuuuuuce bruuuuuuuce marked this pull request as ready for review January 9, 2024 18:31
expect(fetchResp2.errorCode,
MomentoErrorCode.invalidArgumentError,
reason:
"listFetch should not accept empty cache name");
Copy link
Collaborator

Choose a reason for hiding this comment

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

should say should not accept empty list name right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

and similar fix for the other strings in this group

// this is expected
return;
case ListFetchError():
fail('Expected Miss but got Error');
Copy link
Collaborator

Choose a reason for hiding this comment

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

fail statements should probably print error code and message too

case ListFetchMiss():
fail('Expected Hit but got Miss');
case ListFetchError():
fail('Expected Hit but got Error');
Copy link
Collaborator

Choose a reason for hiding this comment

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

fail statements in helper functions should also include error code and message

Copy link
Collaborator

@anitarua anitarua left a comment

Choose a reason for hiding this comment

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

🛳️

@bruuuuuuuce bruuuuuuuce merged commit 566b3fe into main Jan 9, 2024
2 checks passed
@bruuuuuuuce bruuuuuuuce deleted the feat/listApiCalls branch January 9, 2024 21:15
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.

list length validator listRetain and listRemoveValue bug CacheClient list collection type
2 participants