cloudyspells / PsrAzDo-workbooks

Azure Monitor workbooks for Analyzing PSRule.Rules.AzureDevOps results
MIT License
6 stars 1 forks source link

Bug: Query Error when multi-selecting Resources from the "Azure DevOps Rules Hits by Resource" Workbook #20

Closed takis-kapas closed 9 months ago

takis-kapas commented 9 months ago

🐞 Bug Report

Describe the bug

From the Resource Name drop-down multi-select field, if I select more than one resource to be displayed, then I get a query error. Error's Line and Position # differs based on the drop-down resource selection. The "All" and "single-select" checkbox options work.

image

image

image

*


Is this a regression?

This is the first time I am experiencing this since the initial deployment and initial run of the YAML Pipeline


To Reproduce

*


Media prove


Your environment


Additional context

*

webtonize commented 9 months ago

HI, thanks so much for your feedback and time and effort in testing this early version. It really helps to improve the quality of the solution.

I fixed the error by changing the KQL query a little to always expect an array of strings for the filtering. Additionally the parameter configuration setting were changed to make the parameter required, in effect not empty. Bicep deployment in the main branch has been updated with these changes.