Skip to content

Add IndexedDB action to error message #3871

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

Merged
merged 5 commits into from
Oct 1, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

This propagates the action name that we already use in IndexedDbPersistence to SimpleDb, which should give us more insights when users provide IndexedDB stacktraces that do not have a cause associated.

Addresses #3852

@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2020

🦋 Changeset detected

Latest commit: 494f7ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/rules-unit-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 30, 2020

Size Analysis Report

Affected Products

No changes between base commit (0faff4d) and head commit (54bcbed).

Test Logs

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 30, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (0faff4d) Head (54bcbed) Diff
    browser 249 kB 249 kB +77 B (+0.0%)
    esm2017 196 kB 196 kB +78 B (+0.0%)
    main 483 kB 484 kB +165 B (+0.0%)
    module 247 kB 247 kB +77 B (+0.0%)
    react-native 196 kB 197 kB +78 B (+0.0%)
  • @firebase/firestore/exp

    Type Base (0faff4d) Head (54bcbed) Diff
    browser 189 kB 189 kB +78 B (+0.0%)
    main 477 kB 477 kB +165 B (+0.0%)
    module 189 kB 189 kB +78 B (+0.0%)
    react-native 189 kB 189 kB +78 B (+0.0%)
  • firebase

    Type Base (0faff4d) Head (54bcbed) Diff
    firebase-firestore.js 287 kB 287 kB +77 B (+0.0%)
    firebase.js 831 kB 831 kB +77 B (+0.0%)

Test Logs

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -262,6 +264,7 @@ describe('IndexedDbSchema: createOrUpgradeDb', () => {

return withDb(2, db => {
return db.runTransaction(
TEST_ACTION,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to use the current test name, description, or similar here? This would benefit test failures similarly to what you're proposing for end users.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to convert the tests to use proper functions, since they will be associated with Mocha's this context, which then provides the test name. I updated this file and SimpleDbTest.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Sep 30, 2020
@schmidt-sebastian schmidt-sebastian merged commit a10c18f into master Oct 1, 2020
@google-oss-bot google-oss-bot mentioned this pull request Oct 6, 2020
@firebase firebase locked and limited conversation to collaborators Nov 1, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/actionname branch November 9, 2020 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants