microsoft / microsoft/vscode-azureresourcegroups
Cannot group by resource group if I have access to a resource but not its resource group
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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