-
Notifications
You must be signed in to change notification settings - Fork 34
Bug 1716955: Initial implementation of the rate metric #1006
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
Conversation
|
Hello, |
There's a smoke test here and a schema test here. I believe that given the time pressure, no other test was added. |
Remove beforeEach in the test file of rate metric
4fb68b2 to
1f4b36d
Compare
|
The PR is now ready for review; any suggestion is appreciated! |
chutten
left a comment
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.
This is looking good to me so far. I'll bring in @brizental to make sure I'm not allowing strange patterns in just because I'm unfamiliar with how metric types are implemented in the Glean JS SDK.
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.
Hey @ChinYing-Li this is looking really great. I like the way you implemented the metric, very clean.
I left some comments. Implementation looks really good. I would like to have more tests as well.
Once we are done with these changes we will also need to update the docs. Feel free to simply file a follow up for that if you don't want to work on it.
brizental
left a comment
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.
Thanks for adding the tests! Not much is missing, left some inline commments and through the tests found a bug in the implementation. Easy to fix though.
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.
Some final nits, otherwise, looks god!
Thanks so much for the work here @ChinYing-Li 🎉
|
Oh, yeah. Also, please add a changelog entry for this. |
Remove extra line
b8cc7f2 to
645da93
Compare
Pull Request checklist
glean/folder, run:npm run testRuns all testsnpm run lintRuns all lintersCHANGELOG.mdor an explanation of why it does not need onemozilla/gleanrepository