-
Notifications
You must be signed in to change notification settings - Fork 711
fix: use timezone offset for cron based derived streams #4458
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
WalkthroughThe changes in the Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/src/components/pipeline/StreamRouting.vue (2 hunks)
Additional comments not posted (2)
web/src/components/pipeline/StreamRouting.vue (2)
205-205: LGTM!The import statement change is approved. The addition of the
getTimezoneOffsetfunction aligns with the PR objective of introducing timezone offset support.
509-509: Excellent work on adding the timezone offset support! 🌍⏰The inclusion of the
tz_offsetproperty in the emitted data payload using thegetTimezoneOffsetfunction is a crucial change that directly addresses the PR objective. By providing the timezone offset information, the cron expressions can now be accurately adjusted based on the user's browser timezone, ensuring precise scheduling of tasks in the local time context.This change enhances the usability and reliability of the cron-based derived streams feature, aligning it with the expected behavior from the user's perspective.
d6cac39 to
a5c56f3
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/src/components/pipeline/StreamRouting.vue (2 hunks)
Additional comments not posted (2)
web/src/components/pipeline/StreamRouting.vue (2)
205-205: LGTM!The import statement change looks good. The
getTimezoneOffsetfunction is being imported from the@/utils/zincutilsmodule, which suggests that timezone offset functionality is being introduced in the component.
509-509: LGTM!The addition of the
tz_offsetproperty to the emitted data payload looks good. It aligns with the PR objective of introducing thetz_offsetfield to allow cron expressions to be adjusted based on the user's browser timezone.To ensure the
tz_offsetproperty is being utilized correctly, please verify that the emitted data is being processed and applied to the cron expressions as intended in the backend. You can use the following script to search for the usage of thetz_offsetproperty in the backend code:
a5c56f3 to
1888ca9
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/src/components/pipeline/StreamRouting.vue (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- web/src/components/pipeline/StreamRouting.vue
1888ca9 to
7bcfffb
Compare
7bcfffb to
31df6d2
Compare
Currently for cron-based derived streams, we don't use timezone offset. Hence by default the cron expressions are assumed to be for UTC timezone. This PR sets the
tz_offsetfield so that the cron expression works as per the browser timezone.Summary by CodeRabbit
New Features
Bug Fixes