Skip to content

Fix storage compat task bug #4171

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 1 commit into from
Jan 5, 2021
Merged

Fix storage compat task bug #4171

merged 1 commit into from
Jan 5, 2021

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Dec 4, 2020

UploadTaskCompat was using a static _snapshot generated in the constructor but it won't update the state. The original UploadTask has a snapshot() getter that actually inserts the current state whenever it is called, so I'm changing the compat version to call its delegate's getter to get one with an updated state, and then wrap it in a Compat snapshot.

Fixes #4158 I think.

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2020

⚠️ No Changeset found

Latest commit: 3d44eba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

Size Analysis Report

Affected Products

No changes between base commit (3754371) and head commit (9ca9315).

Test Logs

@hsubox76 hsubox76 merged commit 6d4d2b6 into master Jan 5, 2021
@hsubox76 hsubox76 deleted the ch-snapshotfix branch January 21, 2021 20:28
@firebase firebase locked and limited conversation to collaborators Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firebase storage uploadTask snapshots not progressing
3 participants