Skip to content

fix: Update feature with invalid planningStatus results in 500 #228#271

Open
YuliaMittova wants to merge 1 commit intotoloka-agent/124-autofrom
bugfix/228-update-feature-with-invalid-planningstatus-results-in-500
Open

fix: Update feature with invalid planningStatus results in 500 #228#271
YuliaMittova wants to merge 1 commit intotoloka-agent/124-autofrom
bugfix/228-update-feature-with-invalid-planningstatus-results-in-500

Conversation

@YuliaMittova
Copy link
Copy Markdown

@YuliaMittova YuliaMittova commented Mar 20, 2026

Bug fix for #228

@ElizavetaP ElizavetaP self-requested a review March 22, 2026 20:05
Copy link
Copy Markdown

@ElizavetaP ElizavetaP left a comment

Choose a reason for hiding this comment

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

You fixed the bug, but you did not add test(s) to verify it. The tests are the most important part here. It is not enough to simply reference them; they must actually be present in your branch. This is also the hardest part of the task.
The proposed FAIL_TO_PASS list should be treated as guidance, and in many cases it is not possible to just copy those tests into your solution as-is. First, they come from a different branch. Second, you may need additional tests to cover edge cases. and in some situations, some checks from FAIL_TO_PASS may turn out to be unnecessary for your specific bug. The guidelines explain this in detail: bugfix guidelines.

Also, please do not forget to run ./mvnw spotless:apply, clean verify is currently failing.

FAIL_TO_PASS: FeatureControllerTests#shouldReturnBadRequestForInvalidFeaturePlanningStatus, FeatureControllerTests#shouldReturnBadRequestForBlankFeaturePlanningStatus, FeatureControllerTests#shouldReturnBadRequestForEmptyFeaturePlanningStatus
Copy link
Copy Markdown

@ElizavetaP ElizavetaP left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me.

@github-actions github-actions bot added Verified and removed Review labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants