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

Convert FirebaseError to TypeScript #1521

Merged
merged 16 commits into from
Jul 23, 2019
Merged

Conversation

merlinnot
Copy link
Contributor

Description

This PR coverts an existing FirebaseError utility from JavaScript to TypeScript. It also changes the way it's exported, where it's now a named export.

This PR is split in two commits for easier review: one with implementation and one with conversion to named imports.

Documentation of fields and interfaces is not added. I was willing to do so, but unfortunately it wasn't really clear to me what most of the options mean. It was not documented previously, so it's not a regression, so I hope it won't be a blocker for this PR and someone with a better understanding of the codebase could help with this. Since I don't understand the meaning of some of the properties, I didn't rename any fields, that would be a material for a separate PR anyway.

Scenarios Tested

Only unit tests.

Sample Commands

Not relevant.

@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label Jul 17, 2019
@merlinnot merlinnot changed the title Error ts Convert FirebaseError to TypeScript Jul 17, 2019
@coveralls
Copy link

coveralls commented Jul 17, 2019

Coverage Status

Coverage increased (+0.009%) to 61.694% when pulling c4a0d61 on merlinnot:error-ts into 7c67993 on firebase:master.

Copy link
Contributor

@bkendall bkendall left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on. I'm pretty sure I have at least one of these branches doing this work, but this is definitely the first that is actually being reviewed 🙂

A couple suggestions for you in src/err.ts

src/error.ts Show resolved Hide resolved
src/error.ts Outdated Show resolved Hide resolved
src/error.ts Outdated Show resolved Hide resolved
src/error.ts Outdated Show resolved Hide resolved
src/error.ts Outdated Show resolved Hide resolved
@merlinnot
Copy link
Contributor Author

@bkendall This should now be ready for another review.

src/error.ts Outdated Show resolved Hide resolved
src/test/error.ts Outdated Show resolved Hide resolved
src/error.ts Show resolved Hide resolved
src/test/error.ts Outdated Show resolved Hide resolved
@merlinnot
Copy link
Contributor Author

@bkendall This should now be ready for another review. I'm pinging you because I can't request a review on GitHub as I don't have permissions, is it fine with you? Maybe you prefer some other way?

@bkendall
Copy link
Contributor

@merlinnot in the top right of the PR view, is there not a little circle to click to re-request a review? That would make me sad if that's the case... replying to the PR is fine as it puts it into my email and that puts it into my heap of things to do :)

image

@bkendall
Copy link
Contributor

Note: Pull request authors can't request reviews unless they are either a repository owner or collaborator with write access to the repository.

https://help.github.com/en/articles/requesting-a-pull-request-review

Dang. That's sad. Replying is fine, I'll get to them!

(Though, disclosure, no timeframe is guaranteed and I have other things to get done as well, so know that it's usually somewhere in my heap but other things can take priority...)

@merlinnot
Copy link
Contributor Author

No worries, I totally understand :) I'll also ping @thechenky next time, she agreed to help with reviews of my PRs, as I'm working towards adding two functionalities: firebase/firebase-functions#425, #1372.

@merlinnot
Copy link
Contributor Author

@bkendall And a friendly ping to make sure it ends up in your inbox :)

@bkendall bkendall merged commit 15a582c into firebase:master Jul 23, 2019
@merlinnot merlinnot deleted the error-ts branch July 23, 2019 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants