-
Notifications
You must be signed in to change notification settings - Fork 34
Bug 1716956: Initial attempt to implement metric type "StringList" #614
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
|
Hey @ChinYing-Li , just FYI I am on PTO this week and will come back to review this PR on Monday! Thank you for seding this in and sorry for the delayed response 👋 |
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.
Great work here @ChinYing-Li ! This is definitely on the right path, nothing major is wrong and the apporach is correct. Left a few comments, let me know if you have any questions.
Heh, just saw this comment. Left a review anyways, hope it is helpful. Regarding the schema test, it's possible it is failing because of the |
|
Without truncatedValule = "";
const truncatedValuePromise = truncateStringAtBoundaryWithError(this, value, MAX_STRING_LENGTH);
truncatedValuePromise.then((v) => {
truncatedValue = v;
});However the code above led to failure of unit test case |
5b48d50 to
823c410
Compare
By wrapping the whole function body in a The dispatcher orchestrates Glean's async tasks, so that they are run in the order the user called them. But that all happens in the background, without the user having to
They failure is probably happening because the code is not using the dispatcher, so at the time the assertion is called the action that should precede has not completed yet. |
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.2.0 to 10.2.1. - [Release notes](https://github.com/TypeStrong/ts-node/releases) - [Commits](TypeStrong/ts-node@v10.2.0...v10.2.1) --- updated-dependencies: - dependency-name: ts-node dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [geckodriver](https://github.com/vladikoff/node-geckodriver) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/vladikoff/node-geckodriver/releases) - [Commits](webdriverio-community/node-geckodriver@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: geckodriver dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.6.1 to 16.6.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
53e1a61 to
44ba6f3
Compare
|
@brizental I've addressed all the issues, and would be great if you can take a look. Thank you so much for the guidance! |
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.
This is looking great, I left a few nits, but nothing major. Once these are adressed this should be good to go.
Thanks for the work here @ChinYing-Li !
44ca77e to
1c1ed76
Compare
|
Hey @ChinYing-Li I see you addressed the review comments, but there are three still missing :) Would you mind addressing those and rebasing this PR so I can merge? Thank you so much :) Also, the |
ed616e6 to
3091685
Compare
|
Hi @brizental , sorry for the delay! Please review and let me know if anything else needs to be fixed. Thank you. |
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.
This is looking perfect. Thanks so much for the great work here @ChinYing-Li .
Would you like to also take on the documentation updates over on the Glean book, for the string list metric type? That means adding the JavaScript examples to this page. If not, that is no problem, just let me know so I can file a follow up bug for that work.
Also, let me know if you want help to find a next bug, I am always happy to assist. Note that I will be on vacation next week. During that time, you can reach out to @Dexterp37 .
|
Hi @brizental , Sure, I can update the Glean book! |
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/gleanrepositoryCurrently one unit test case and schema test fails. Opening a draft and is not ready for review.EDIT: PR now ready for review; For
StringMetricType, I have to declareaddas async.