azure_policy: Nested-array alias handling drops the unwrapped x level, recording y instead of x.y and leaving the policy field undefined.
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- backend-api-design
Research direction
Start with the linked PR discussion and locate the Azure policy code that handles nested array aliases and the existing regression tests. Trace how accumulated_name is updated for each array level, then add the x[].y[].z case as a regression test. Done when normalization produces properties.x[].y[].properties.z and the policy field is defined.
Written by the indexing model from the issue text.
Description
https://github.com/microsoft/regorus/pull/894#discussion_r4458753751
For x[].y[].z → properties.x[].y[].properties.z, this still records y instead of x.y because accumulated_name skips the unwrapped x level. Normalization then leaves y's properties.z nested, so the policy field becomes undefined. Extend the accumulated path at every array level, condition only the set insertion on wrapping, and add this case as a regression test.
- Dominant language
- Rust
- Stars
- 375
- Forks
- 81
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 78
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
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.
More from microsoft/regorus
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
RVM: errors and conflicts in rule bodies evaluate to undefined, even with strict builtin errorsMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/regorus#932 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
All issues in microsoft/regorus
Similar issues
-
documentation target:powerpoint
Difficulty 1/5 Under an hour Newbie friendliness 76/100
tomast1337/PdfLapas#602 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
SlimeBoyOwO/LingChat#965 ·
Maintainers usually reply within 3 days
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug db/dameng user-priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day