-
Notifications
You must be signed in to change notification settings - Fork 2
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 ApiClient#getEvaluations #13
Conversation
284dc6d
to
e51b319
Compare
9dce0f3
to
e9350d6
Compare
src/internal/model/SourceID.ts
Outdated
UNKNOWN: 0, | ||
ANDROID: 1, | ||
IOS: 2, | ||
WEB: 3, | ||
GOAL_BATCH: 4, | ||
GO_SERVER: 5, | ||
NODE_SERVER: 6, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cre8ivejp Is it ok to assume that SourceID is still a number type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e9350d6
to
0d6d52f
Compare
src/internal/remote/ApiClient.ts
Outdated
tag: this.featureTag, | ||
user, | ||
user_evaluations_id: userEvaluationsId, | ||
source_id: SourceID.ANDROID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use SourceID.JAVASCRIPT
.
https://github.com/bucketeer-io/bucketeer/blob/main/proto/event/client/event.proto#L69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const errorBody: ErrorResponse | null = await response.json() | ||
const error = errorBody?.error | ||
|
||
switch (response.status) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The server errors have changed a little. Also, the latency and size metrics have changed.
bucketeer-io/android-client-sdk#56
Let me know if you prefer to do this in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it. updated in 801b304
(#13)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!
No description provided.