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
Refactor listPath
API for size node API in #1272
#1297
Conversation
…irebase/firebase-tools into wyszynski/list-remote-refactor
…irebase/firebase-tools into wyszynski/list-remote-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits. Really close.
…m/firebase/firebase-tools into wyszynski/list-remote-refactor-v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple nits, but looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good!
I think this was ready a few days ago, but did not catch my attention.
Could you add me to the assignee so I get notified?
path: string, | ||
numSubPath: number, | ||
startAfter?: string, | ||
timeout?: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's name this timeoutMs
to indicate what the semantics are
path: string, | ||
numChildren: number, | ||
startAfter?: string, | ||
timeout?: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeoutMs
keys = keys.slice(0, numChildren); | ||
return keys; | ||
} | ||
return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can reduce complexity by saying let keys = Object.keys(d || {})
(or by switching this to an early return)
This change is both
npm test
andnpm install
clean.Description
This is a refactor that #1239 depends on.
Scenarios Tested
Modified tests and existing test suite pass.
Sample Commands