-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sandbox old api #120
Sandbox old api #120
Conversation
c97cd73
to
7ac93cd
Compare
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.
Reviewable status: 0 of 1 LGTMs obtained
annotator-ss.yaml, line 4 at r2 (raw file):
env: flex service: annotatorss
Add a note to indicate that we need to do perf tuning for this one when we modify the annotator.yaml
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.
Reviewable status: 0 of 1 LGTMs obtained
handler/handler.go, line 185 at r2 (raw file):
} } else { responseMap = make(map[string]*api.GeoData)
if length of input request is 0, we can just return here.
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.
Reviewable status: 0 of 1 LGTMs obtained
handler/handler.go, line 179 at r2 (raw file):
// For old request format, we use empty date. date := time.Time{} responseMap, _, err = AnnotateLegacy(date, dataSlice)
It is not necessary to pass date as input param here. If I read the code correctly, it is useless at all.
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.
Reviewable status: 0 of 1 LGTMs obtained
handler/handler.go, line 112 at r2 (raw file):
var ErrNoAnnotator = errors.New("no Annotator found") // TODO move to annotatormanager package soon.
Add doc for input/output params
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.
Reviewable status:
complete! 1 of 1 LGTMs obtained
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.
Reviewed 3 of 4 files at r1, 1 of 2 files at r2, 3 of 3 files at r3.
Reviewable status:complete! 1 of 1 LGTMs obtained
annotator-ss.yaml, line 4 at r2 (raw file):
Previously, yachang wrote…
Add a note to indicate that we need to do perf tuning for this one when we modify the annotator.yaml
Done.
handler/handler.go, line 112 at r2 (raw file):
Previously, yachang wrote…
Add doc for input/output params
Done.
handler/handler.go, line 179 at r2 (raw file):
Previously, yachang wrote…
It is not necessary to pass date as input param here. If I read the code correctly, it is useless at all.
Oops. That is remnant of code before I pulled out AnnotateLegacy.
handler/handler.go, line 185 at r2 (raw file):
Previously, yachang wrote…
if length of input request is 0, we can just return here.
We still have to encode the empty response map.
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.
Reviewable status:
complete! 1 of 1 LGTMs obtained
This fixes the encoded date, broken in the last merge to master.
It seems to have a large impact on throughput, so we should try to understand that ASAP, but also should try to get the breakage fixed as soon as we understand.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)