Skip to content

feat(monitors): skip monitors with restricted roles - #672

Open
riyazsh wants to merge 1 commit into
mainfrom
riyazsh/spans-metrics-409-fallback
Open

feat(monitors): skip monitors with restricted roles#672
riyazsh wants to merge 1 commit into
mainfrom
riyazsh/spans-metrics-409-fallback

Conversation

@riyazsh

@riyazsh riyazsh commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add --skip-monitors-with-restricted-roles to the sync command
  • Filter out source monitors with non-empty restricted_roles when the flag is enabled
  • Preserve existing filter behavior and default monitor sync behavior when the flag is unset

Context

Paxos DDR US1 -> US5 currently has one monitor carrying restricted_roles while the destination role exists with zero effective active users. This causes the monitor API create to fail. The flag gives managed-sync an explicit short-term escape hatch that records the resource as filtered instead of attempting an unsafe create/update.

Testing

  • python -m pytest tests/unit/test_monitors.py

@riyazsh
riyazsh requested a review from a team as a code owner August 25, 2026 19:55
@riyazsh
riyazsh force-pushed the riyazsh/spans-metrics-409-fallback branch from 915ac23 to 7d5f18f Compare August 25, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant