Skip to content

feat(zones): PPT-2649 search every zone the user can reach - #449

Merged
camreeves merged 1 commit into
masterfrom
PPT-2649-zone-search-reach
Oct 6, 2026
Merged

camreeves merged 1 commit into
masterfrom
PPT-2649-zone-search-reach

Conversation

@camreeves

Copy link
Copy Markdown
Contributor

Unfiltered zone listings and searches now return the zones a non-support user can reach through signage or support Read groups. Users with no reach still get 403. Existing tags, parent and support listings keep their behaviour.

Adds descendants=true to group_id queries, expanding anchors in SQL and excluding denied subtrees. Regenerates OpenAPI.

Validation: focused zone specs, 55 examples with no failures. Crystal formatting passes. Ameba has the same 212 findings as the unchanged base, with no new findings.

Open question for Steve

With a group selected, Signage Manager needs to search inside that group's zones, not only its anchors. I added an explicit descendants=true option to the group_id filter for that, so existing callers are unaffected. If you would rather group_id with q simply searched the whole subtree, that is a small change. Callers who are not support and pass no filter now get the zones they can reach through signage or support groups, where they used to get a 403.

@github-actions github-actions Bot added the type: enhancement new feature or request label Oct 2, 2026
@camreeves
camreeves marked this pull request as ready for review October 6, 2026 02:23
@camreeves
camreeves merged commit d3663e8 into master Oct 6, 2026
11 checks passed
@camreeves
camreeves deleted the PPT-2649-zone-search-reach branch October 6, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant