Skip to content

Conversation

hiranya911
Copy link
Contributor

  • Migrated the RTDB implementation off the deprecated APIs in internal.
  • Implement platform error handling for RTDB API calls.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM!

if err == nil || err.Error() != want {
t.Errorf("GetOrdered() = %v; want = %v", err, want)
if result != nil || err == nil || err.Error() != want {
t.Fatalf("GetOrdered() = (%v, %v); want = (nil, %v)", result, err, want)
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, why use Fatal here instead Error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rest of the test should not run if this assertion fails.

@hiranya911 hiranya911 merged commit 3c1a8e3 into v4 Mar 10, 2020
@hiranya911 hiranya911 deleted the hkj-rtdb-errors branch March 10, 2020 17:26
hiranya911 added a commit that referenced this pull request May 6, 2020
hiranya911 added a commit that referenced this pull request Jun 11, 2020
* Renamed WebpushFcmOptions to WebpushFCMOptions (#334)

* Added modules support; Added semantic import versioning (#336)

* feat: New error handling APIs (#342)

* fix: Error handling revamp basic structure

* Added more documentation and tests

* Updated docs

* Exhaustive unit tests; Updated integration test

* Fixed some typos in comments

* Renamed function in comment

* FCM error handling revamp (#343)

* FCM error handling revamp

* Updated unit tests

* RTDB error handling revamp (#345)

* Error handling revamp of Auth APIs (#348)

* Error handling revamp for Auth APIs

* Minor code clean up

* Error handling support in the token verification APIs (#349)

* New error handling scheme for token verification APIs

* Make InvalidToken condition conjunctive

* Removing deprecated HTTP and error handling utils (#350)

* Removed deprecated APIs from internal

* Made HasSuccessStatus the default error checking function

* Added unit test for error response handling

* Handling timeouts, connection and other network errors (#353)

* Handling timeouts, connection and other network errors

* Handling wrapped errors

* Updated comment

* Apply suggestions from code review

* Removing old release workflow files

* Removing an erroneous import

* Fixed bad merge

* Fixed failing test due to old dependency

* chore: Updated release flow for modules support (#378)

* chore: Updated release flow for modules support

* Fixed failing unit test

* Removed GOPATH from release workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants