-
Notifications
You must be signed in to change notification settings - Fork 72
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(core-clp): Advance to the next message when a message has an out-of-range timestamp when searching archives (fixes #659). #660
Conversation
WalkthroughThe changes modify the Changes
Sequence DiagramsequenceDiagram
participant Reader as File Reader
participant Query as Query Matcher
Reader->>Query: find_message_matching_query()
Query-->>Reader: Track message indices
Reader->>Reader: Update curr_msg_ix
Reader->>Reader: Calculate vars_begin_ix
Reader->>Query: Check message match
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
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.
I validated the changes in the WebUI with steps specified in #659 and the issue is now no longer observed.
I understand the source of the bug, and the changes look right to me, but someone with more experience with the CLP core code should also take a look.
Co-authored-by: kirkrodrigues <[email protected]>
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.
For the PR title, how about:
fix(core-clp): Advance to the next message when a message has an out-of-range timestamp when searching archives (fixes #659).
Description
#426 introduced a refactoring for querying messages in archive files. This refactoring has a bug that doesn't increment the message index when the message's timestamp is out of the query's timestamp range.
This PR fixes the issue by incrementing the message indices before any loop branching that could lead to the next loop iteration.
Validation performed
Summary by CodeRabbit
Summary by CodeRabbit
These changes enhance the clarity and correctness of the message search process, ensuring a more straightforward experience for users without altering the external interface.