Skip to content
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

Merged
merged 7 commits into from
Dec 6, 2024

Conversation

motm32
Copy link
Contributor

@motm32 motm32 commented Dec 6, 2024

Here is how the button looks:
image

@motm32 motm32 requested a review from a team as a code owner December 6, 2024 18:20
@alexweininger
Copy link
Member

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",
Copy link
Member

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) => {
Copy link
Member

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';
Copy link
Member

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.

Suggested change
_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",
Copy link
Member

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"?

@motm32 motm32 merged commit 66eba91 into main Dec 6, 2024
3 checks passed
@motm32 motm32 deleted the meganmott/addTelemetry branch December 6, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants