feat: AI review proposal editing, confidence/template fields, and filters#514
Merged
feat: AI review proposal editing, confidence/template fields, and filters#514
Conversation
…action filters Add PUT endpoint for AI review to update existing proposals. Add proposed_confidence and proposed_template fields to SubmittedContribution model. Validate template_id with PrimaryKeyRelatedField to prevent 500 on invalid input. Add proposal:accept/reject search filter for stewards. Display confidence badges in CRM notes panel. Clear new proposal fields on steward review to prevent stale filter results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
proposed_confidenceandproposed_templatefields to SubmittedContribution model with migrationtemplate_idwithPrimaryKeyRelatedFieldin all serializers to return 400 instead of 500 on invalid template IDsproposal:accept/reject/more-infosearch filter for stewards to filter by proposed action typeproposed_confidenceandproposed_templateon steward review to prevent stale filter resultsTest plan
/api/v1/ai-review/{id}/propose/creates a proposal; second POST returns 409/api/v1/ai-review/{id}/propose/updates an existing proposal; PUT without existing proposal returns 404template_idreturns 400 validation error (not 500)proposal:rejectin steward search bar filters to reject proposals onlyproposal:accept confidence:highcomposes correctlyproposed_confidenceandproposed_templateare cleared