Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(api): validating of target name in alone metrics #1049

Merged

Conversation

AleksandrMatsko
Copy link
Member

Change regular expession used for validating alone metrics names

Before this PR "alone_metrics" with format like {"t1 t2": true} was treated as valid (valid form is: {"t1": true, "t2": true}). After this PR it will be considered invalid.

@AleksandrMatsko AleksandrMatsko marked this pull request as ready for review July 8, 2024 10:26
@AleksandrMatsko AleksandrMatsko requested a review from a team as a code owner July 8, 2024 10:26
api/dto/triggers.go Outdated Show resolved Hide resolved
api/dto/triggers_test.go Outdated Show resolved Hide resolved
@AleksandrMatsko AleksandrMatsko requested a review from almostinf July 8, 2024 11:16
almostinf
almostinf previously approved these changes Jul 8, 2024
api/dto/triggers.go Outdated Show resolved Hide resolved
@AleksandrMatsko
Copy link
Member Author

/build

1 similar comment
@almostinf
Copy link
Member

/build

@almostinf almostinf merged commit 2ead98b into moira-alert:master Jul 10, 2024
6 checks passed
Copy link

Build and push Docker images with tag: 2024-07-10.2ead98b

1 similar comment
Copy link

Build and push Docker images with tag: 2024-07-10.2ead98b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants