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: remote graphite trigger validation #1127

Merged
merged 13 commits into from
Dec 10, 2024

Conversation

AleksandrMatsko
Copy link
Member

@AleksandrMatsko AleksandrMatsko commented Nov 27, 2024

PR Summary

Before this PR when you tried to create/update trigger on graphite-remote metric source, you received response with status code 503 on any error from graphite.

Now you will get 503 only if graphite returns 401, 502, 503, 504. Otherwise, you will get 400.

Affects endpoints:

  • PUT /api/trigger
  • PUT /api/trigger/check
  • PUT /api/trigger/{triggerID}

Relates to #1085
Closes #620

Also fixed swagger spec for:

  • endpoint DELETE /api/notification/all
  • dto ScheduleDataDay
  • feature flag CelebrationMode

@AleksandrMatsko AleksandrMatsko marked this pull request as ready for review November 27, 2024 07:56
@AleksandrMatsko AleksandrMatsko requested a review from a team as a code owner November 27, 2024 07:56
kissken
kissken previously approved these changes Nov 27, 2024
api/handler/triggers.go Outdated Show resolved Hide resolved
Tetrergeru
Tetrergeru previously approved these changes Nov 28, 2024
Co-authored-by: Tetrergeru <[email protected]>
@AleksandrMatsko AleksandrMatsko dismissed stale reviews from Tetrergeru and kissken via 7e6648f November 29, 2024 06:02
kissken
kissken previously approved these changes Dec 4, 2024
@AleksandrMatsko
Copy link
Member Author

/build

@AleksandrMatsko AleksandrMatsko merged commit 83c63a0 into master Dec 10, 2024
7 checks passed
@AleksandrMatsko AleksandrMatsko deleted the refactor/remote-graphite-trigger-validation branch December 10, 2024 11:04
Copy link

Build and push Docker images with tag: 2024-12-10.83c63a0

1 similar comment
Copy link

Build and push Docker images with tag: 2024-12-10.83c63a0

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.

Trigger target validation return 500 on wrong function names
3 participants