microsoft / microsoft/vscode-azureresourcegroups

Cannot group by resource group if I have access to a resource but not its resource group

Open
#831 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
78
Forks
55
Avg merge
16h 49m
Merged PRs (30d)
139

Description

Hi, I have a "tricky" case that is not well handled by the extension.

In a subscription, I have access to an App Service but not its resource group. So, when I tried to group by resource group, I got the following error:

Internal error: Expected value to be neither null nor undefined: resourceGroup for grouping item

The error is thrown by this line (src/tree/azure/grouping/AzureResourceGroupingManager.ts#164)

It is possible to display the resource group even if we don't have access to it? We will not be able to do action on it, of course.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/tree/azure/grouping/AzureResourceGroupingManager.ts line 164 and reproduce grouping by resource group with access to an App Service but not its resource group. Trace how the grouping item is built when resourceGroup is unavailable; done means grouping no longer throws the reported null-or-undefined error and handles the inaccessible resource group case appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript, vscode
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.