Skip to content

Conversation

@michael-richey
Copy link
Collaborator

What does this PR do?

Resolves #399 using the solution suggested in the issue.

Note: I was unable to replicate because sync-cli always creates composite queries with spaces after the monitor ids (i.e. 123 && ( 456 && 789 ) never 123 && (456 && 789) However, if someone had hand edited the json or made some other change to the query but kept it technically valid it does fail in the way described.

Description of the Change

Used the match value, it was probably always intended to be used otherwise there's no reason for the parentheses in the regular expression.

@michael-richey michael-richey marked this pull request as ready for review October 23, 2025 19:10
@michael-richey michael-richey requested a review from a team as a code owner October 23, 2025 19:10
@michael-richey michael-richey merged commit 98a4a26 into main Oct 23, 2025
22 of 24 checks passed
@michael-richey michael-richey deleted the michael.richey/monitor_query_tweak branch October 23, 2025 20:27
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.

Monitors.connect_id drops closing parentheses from composite queries (400 invalid query)

3 participants