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

Bugfix: Make experiment runner return a 200 success code when no experiments are matched #62

Conversation

deadlycoconuts
Copy link
Contributor

What this PR does / why we need it:
There is a bug in the GetTreatmentForRequest method of the XP plugin that causes it to return a 400 error when no experiments are matched for the given request. This PR introduces a tiny fix to change the response code to 200 when this happens, just like how this case (no experiments matched) is handled by the standalone Treatment Service (see analogous line here)

@deadlycoconuts deadlycoconuts added the bug Something isn't working label Feb 10, 2023
@deadlycoconuts deadlycoconuts requested a review from a team February 10, 2023 02:49
@deadlycoconuts deadlycoconuts self-assigned this Feb 10, 2023
@deadlycoconuts deadlycoconuts changed the title Bugfix: Make experiment runner return a 200 success when no experiments are matched Bugfix: Make experiment runner return a 200 success code when no experiments are matched Feb 10, 2023
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for tracing this!

@deadlycoconuts deadlycoconuts merged commit 4e4b099 into caraml-dev:main Feb 10, 2023
@deadlycoconuts deadlycoconuts deleted the fix_exp_runner_treatment_request_error branch March 9, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants