-
Notifications
You must be signed in to change notification settings - Fork 0
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
[7571] add ai feedback to comment #14
Conversation
Coverage reportTotal coverage
Report generated by 🧪jest coverage report action from 45d197a |
bc2c081
to
b0cad2d
Compare
8a3853d
to
82d101a
Compare
b0cad2d
to
d0b62c0
Compare
You added I would suggest to rename this field to class CommentWithFeedbackSerializer(a4_serializers.CommentSerializer):
ai_report = AiReportSerializer(read_only=True) because it introduces less vocabulary and renaming when we talk about things. If you want to rename the serialized field you can also specify the source: class CommentWithFeedbackSerializer(a4_serializers.CommentSerializer):
ai_feedback = AiReportSerializer(read_only=True, source="ai_report") |
indeed, but the |
d0b62c0
to
af6a70f
Compare
af6a70f
to
562d44f
Compare
@goapunk can you take over the review on this one, since Hannes is away? |
yes, will do (sorry, closed accidentally) |
562d44f
to
eb613c5
Compare
eb613c5
to
45d197a
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, looks good to me!
to be merged after this one #6
relevant files in this PR:
respective api urls:
need to create an ai_report for testing purposes, see the test i added.
![image](https://private-user-images.githubusercontent.com/5695572/257800268-5130aa73-ce7a-40de-8dfb-361343347eff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTQxMzIsIm5iZiI6MTcyMDU5MzgzMiwicGF0aCI6Ii81Njk1NTcyLzI1NzgwMDI2OC01MTMwYWE3My1jZTdhLTQwZGUtOGRmYi0zNjEzNDMzNDdlZmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZ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mYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ueUCtP1EMvaXUEld3qwBI34sroDi0_-qeKx3oe8zcHc)
@hklarner need help with debugging why ai feedback still not part of the comment serializer, while I can access the ai_feedback api response alone. see screenshots: