bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Having a means of collecting more targeted and easy-to-triage type issues

Open anthony-c-martin opened this issue 2 years ago • 1 comments

It's getting pretty hard to look through and triage #784 with the volume of comments coming through.

It might be worth thinking about a way to collect more targeted feedback - e.g. a form with fields like:

  • Resource Type
  • Property Path
  • Issue Type (dropdown here)
  • Other Comments

EDIT: I've created an issue template here: https://github.com/Azure/bicep-types-az/issues/new?assignees=&labels=inaccuracy&template=types_inaccuracy.yml

We should be able to generate a link to it programmatically within Bicep, with some fields even filled out - e.g.:

https://github.com/Azure/bicep-types-az/issues/new?template=types_inaccuracy.yml&title=[Microsoft.Compute%2FvirtualMachines%202020-01-01]%20Azure%20types%20inaccuracy&resourceType=Microsoft.Compute%2FvirtualMachines&apiVersion=2020-01-01&repro=bicep%0Aresource%20foo%20%27Microsoft.Compute/virtualMachines@2020-01-01%27%20=%20{%0A%20%20...%0A}%0A

anthony-c-martin avatar Jun 17 '22 18:06 anthony-c-martin

Connected to #6206

alex-frankel avatar Jun 22 '22 19:06 alex-frankel

Did some experimentation on this branch.

It's possible to write a code action which opens a URL if invoked - this works pretty nicely and feels like a viable approach. Here's a demo with my VSCode & browser window side by side. As you can see, most of the fields in the issue report are pre-filled with data from the resource I have selected:

https://user-images.githubusercontent.com/38542602/194199097-78655b6f-70ea-4745-ac29-907481d6615d.mov

anthony-c-martin avatar Oct 06 '22 02:10 anthony-c-martin

This is really cool!

majastrz avatar Oct 07 '22 02:10 majastrz

I assume it is ok if two issues have the exact same title? Would be cool if we can have automation that identifies and auto-closes duplicates.

alex-frankel avatar Oct 07 '22 20:10 alex-frankel