-
-
Notifications
You must be signed in to change notification settings - Fork 159
fix: hottier in datasets #1519
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
fix: hottier in datasets #1519
Conversation
add hot_tier_enabled = true/false in StreamInfo that fetches the data from stream.json remove redundant key `hottier` from DatasetsResponse as this info is available inside StreamInfo
WalkthroughThis PR refactors StreamInfo construction by introducing a factory method Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (7)📚 Learning: 2025-08-25T01:31:41.786ZApplied to files:
📚 Learning: 2025-08-25T01:32:25.980ZApplied to files:
📚 Learning: 2025-09-18T09:59:20.177ZApplied to files:
📚 Learning: 2025-10-28T02:10:41.140ZApplied to files:
📚 Learning: 2025-02-14T09:49:25.818ZApplied to files:
📚 Learning: 2025-08-18T19:10:11.941ZApplied to files:
📚 Learning: 2025-07-28T17:10:39.448ZApplied to files:
🧬 Code graph analysis (2)src/handlers/http/logstream.rs (1)
src/prism/logstream/mod.rs (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (5)
✏️ Tip: You can disable this entire section by setting Comment |
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 pull request refactors hot tier information handling in datasets by consolidating it into the StreamInfo structure and removing redundant data from the Prism dataset response.
Changes:
- Added
hot_tier_enabledboolean field toStreamInfostruct with data sourced from stream.json metadata - Implemented
from_metadatahelper method onStreamInfoto construct instances fromLogStreamMetadata - Removed redundant
hottierfield fromPrismDatasetResponseand associated logic
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/storage/mod.rs | Added hot_tier_enabled field to StreamInfo and implemented from_metadata factory method |
| src/prism/logstream/mod.rs | Removed unused hot tier imports, deleted get_hot_tier_info method, removed hottier field from PrismDatasetResponse, and replaced manual StreamInfo construction with from_metadata |
| src/handlers/http/logstream.rs | Replaced manual StreamInfo construction with from_metadata method call |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
add hot_tier_enabled = true/false in StreamInfo that fetches the data from stream.json
remove redundant key
hottierfrom DatasetsResponse as this info is available inside StreamInfoSummary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.