FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Storage Emulator "Fast-Follow" Bug Fixes by abeisgoat · Pull Request #3403 · firebase/firebase-tools · GitHub

Storage Emulator "Fast-Follow" Bug Fixes - #3403

Merged
abeisgoat merged 7 commits into
masterfrom
ah/storage-emu-ff-bugfixes
May 26, 2021
Merged

Storage Emulator "Fast-Follow" Bug Fixes#3403
abeisgoat merged 7 commits into
masterfrom
ah/storage-emu-ff-bugfixes

Conversation

abeisgoat commented May 25, 2021
edited by samtstern
Loading

Copy link
Copy Markdown
Contributor

google-cla Bot added the cla: yes Manual indication that this has passed CLA. label May 25, 2021
abeisgoat force-pushed the ah/storage-emu-ff-bugfixes branch from 2bfecd2 to ec366f8 Compare May 25, 2021 16:59
abeisgoat requested review from samtstern and yuchenshi May 26, 2021 14:36
}

private deleteFieldsSetAsNull() {
const deletableFields: (keyof this)[] = [

samtstern May 26, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I just learned a new trick!


if (this.customMetadata) {
Object.keys(this.customMetadata).map((key: string) => {
if (!this.customMetadata) return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This if seems to conflict with the outer if(this.customMetadata) ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

it doesn't conflict cause it's saying "if I have custom metadata do this" then "if I dont have custom metadata dont do this" but it is weird cause it's like a double check. I had to add this cause typescript was getting confused and ignoring my explicit check of this.customMetadata in the outer if thinking it could still be undefined in the inner one so I had to check again.

Tho it occurs to me that if I use a for look it'll probably fix this so I'll probably just do that.

abeisgoat merged commit a012838 into master May 26, 2021
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
bkendall deleted the ah/storage-emu-ff-bugfixes branch March 18, 2022 23:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

2 participants


Back | FazBrowse Home | New Git URL