-
Notifications
You must be signed in to change notification settings - Fork 406
Add AppMetadata interface, declared unimplemented methods to ProjectManagement #541
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
Add AppMetadata interface, declared unimplemented methods to ProjectManagement #541
Conversation
…ent class (#12) * Added AppMetadata type * Declare setDisplayName and listAppMetadata (unimplemented)
…te/firebase-admin-node into tc-projectScopedOperations-list
… tc-projectScopedOperations-list
|
@hiranya911, I have a question for interface AppMetadata {
public readonly appId: string;
public readonly displayName?: string;
public readonly platform: AppPlatform;
}
class AndroidAppMetadata implements AppMetadata {
constructor(
appId: string,
displayName: string,
readonly resourceName: string,
readonly projectId: string,
readonly packageName: string) {
super(appId, displayName, AppPlatform.ANDROID);
}
}And would either of those options be considered a breaking change in the Admin SDK? There should be no reason for users of the SDK to ever construct an instance of AndroidAppMetadata themselves, but our public interface makes it possible to do so. |
|
Is there an API proposal for these changes? I don't think what you've proposed above will actually work. Because |
|
@hiranya911, I'd like to re-pose @TrCaM's question after replacing Basically, the question is "Can we change |
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 pretty good. Just a couple of nits.
As for declaring the platform field, I like how it's currently done in the PR. It doesn't require us to make any drastic changes (some of which could be potentially breaking for some users), and gives enough type safety for the problem at hand.
hiranya911
left a comment
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.
LGTM.
Please make sure @nbegley signs off on this before merging.
nbegley
left a comment
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.
LGTM, with a small requested change.
f7ba7af to
b9bf631
Compare
nbegley
left a comment
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.
LGTM, thanks Tri!
Description
Extend project scoped operations in the NodeJS Admin SDK with the addition of
AppMetadatainterface and 2 new methods intoProjectManagementclass (unimplemented):listAppMetadata(): Lists summary of all apps belongs to the projectsetDisplayName(): Update display name of the projectIn this pull request
AppMetadatainterface in AppMetadata.tsAndroidAppMetadataandIosAppMetadatadeclaration into AppMetadata.tsAndroidAppMetadataandIosAppMetadatainherited from AppMetadatalistAppMetadata()andsetDisplayName()which currently just throw errors.