-
Notifications
You must be signed in to change notification settings - Fork 32
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 Tenant view telemetry and sign in button on tenant view #979
Conversation
We can merge, but I think the button icon needs discussion. I don't think that icon is clear, I might prefer using no icon and just using text that says "Add Account". |
package.json
Outdated
@@ -105,6 +105,12 @@ | |||
"title": "%azureResourceGroups.logIn%", | |||
"category": "Azure" | |||
}, | |||
{ | |||
"command": "azureResourceGroups.logInButton", |
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.
Should we prefix this command like: azureTenantsView.logInButton
?
} else { | ||
const subscriptionProvider = await getAzureSubscriptionProvider(this); | ||
const children: ResourceGroupsItem[] = await OnGetChildrenBase(subscriptionProvider); | ||
return await callWithTelemetryAndErrorHandling('tenantResourceTreeDataProvider.onGetChildren', async (context: IActionContext) => { |
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.
Nathan might have input here, but do we want to expose our implementation details in telemetry?
A better name might be azureTenantsView.getChildren
?
@@ -56,8 +56,10 @@ async function updateTenantsSetting(_context: IActionContext, tenants: vscode.Tr | |||
|
|||
for (const [tenantTreeItem, state] of tenants.items) { | |||
if (state === vscode.TreeItemCheckboxState.Unchecked) { | |||
_context.telemetry.properties.uncheckedTenant = 'true'; |
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.
We use this now so remove the underscore.
_context.telemetry.properties.uncheckedTenant = 'true'; | |
context.telemetry.properties.uncheckedTenant = 'true'; |
package.json
Outdated
@@ -106,10 +106,10 @@ | |||
"category": "Azure" | |||
}, | |||
{ | |||
"command": "azureResourceGroups.logInButton", | |||
"title": "%azureResourceGroups.logInButton%", | |||
"command": "azureTenantsView.logInButton", |
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.
Should the title now be "addAccount"?
Here is how the button looks: