Repository navigation
Conversation
…es-to-decision-lint
…porary-rules-to-decision-lint' into akhilpindiprolu/eng-8873-add-temporary-rules-to-decision-lint
|
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
decision-model-linterapi
decision-model-linter: 17 calls on 6 files, 40,818 input tokens, $0.0017, model typesafe/jev-1.13-20260917 |
|
|
||
| class AssistantSerializer(serializers.Serializer): | ||
| guide = serializers.CharField(required=False) | ||
| guide = serializers.CharField(required=True) |
There was a problem hiding this comment.
required=True on guide rejects documented guide_id-only requests
Making guide required breaks the documented guide_id-only PUT path; keep required=False and enforce the either-or rule in validate().
Evidence
- Hunk sets
guide = serializers.CharField(required=True), so DRF rejects payloads missingguidebeforevalidate()runs. AssistantEndpoint.putdocuments request shape as'guide_id': <guide_id> - OR - 'guide': guide key.AssistantSerializer.validate()still early-returns when onlyguide_idis present and errors only when neither is provided.- Concrete failing input:
{"guide_id": <valid_id>, "status": "viewed"}previously accepted, now returns 400guide: This field is required.
Identified by Warden · sentry-backend-bugs · MN9-U8U
Backend Test FailuresFailures on
|
A PR to test if the added diff changes to decision-lint worked and is accurate