-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[WEB-3513] fix: return cycle start and end dates in project's timezone #6723
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
WalkthroughThis pull request enhances the cycle handling functionality by introducing project-specific timezone support. The changes update the serializer to initialize date fields based on the project's timezone, pass project details in serializer contexts within the API views, and adjust the timezone conversion in cycle view methods. These modifications ensure that all date fields across cycle retrieval and updates are consistently converted using the project’s timezone. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant A as API View
participant P as Project Lookup
participant S as CycleSerializer
U->>A: Request cycle data
A->>P: Retrieve project using project_id/slug
P-->>A: Return project with timezone info
A->>S: Instantiate serializer with project in context
S->>S: Initialize serializer, setting timezone for dates via pytz
S-->>A: Return serialized cycle data
A-->>U: Deliver cycle data (timezone converted)
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (16)
✨ Finishing Touches
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:
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 (
|
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
Description
Updated the API responces to return the start_date and end_date in the project's timezone instead of user's timezone
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References
Summary by CodeRabbit