-
Notifications
You must be signed in to change notification settings - Fork 210
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
Validate labels for profiles received from agent #842
Conversation
@brancz, Should I have sanitized the labels instead? |
I think when this happens we should just fail the request and tell the user that they were trying to write invalid data. |
24bdeb9
to
c2fa27e
Compare
413e491
to
6ef645b
Compare
6ef645b
to
2636d11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Yes, this is pretty much exactly what I was thinking. Just a few style choices to be consistent with the rest of the codebase.
Add a test for the same as well.
2636d11
to
1167c6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! lgtm 🎉
Fixes #817