-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[WEB-4628] chore: return 200 response for work item comment #7532
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
Conversation
WalkthroughA single line was updated in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant APIEndpoint
participant Serializer
participant BackgroundTask
Client->>APIEndpoint: POST new comment
APIEndpoint->>Serializer: Validate and save comment
Serializer-->>APIEndpoint: serializer.instance.id available
APIEndpoint->>BackgroundTask: model_activity.delay(model_id=serializer.instance.id)
BackgroundTask-->>APIEndpoint: Acknowledge task
APIEndpoint-->>Client: Return response
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: in the plane codebase serializers, workspace_id is not consistently passed in serializer context, so...Applied to files:
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Pull Request Overview
This PR fixes a bug where the API was not returning a proper 200 response when submitting work item comments by correcting how the model ID is passed to the activity tracking system.
- Fixes incorrect model ID reference in the activity tracking delay call
- Changes from using serializer data to serializer instance for the model ID
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
Description
this pull request fixes the issue where a 200 response was not returned when submitting a work item comment.
Type of Change
Summary by CodeRabbit