Skip to content
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

refactor: utils/time parsing #1024

Merged
merged 11 commits into from
Dec 17, 2024
Merged

refactor: utils/time parsing #1024

merged 11 commits into from
Dec 17, 2024

Conversation

de-sh
Copy link
Contributor

@de-sh de-sh commented Dec 6, 2024

Fixes #XXXX.

TimeRange is a new type to de-serialize strings into start and end Datetime and store it for representing a time range elsewhere in code. Currently usage is mainly in query.

Description


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

@de-sh de-sh marked this pull request as ready for review December 6, 2024 11:21
Copy link
Member

@nitisht nitisht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're refactoring - can you add comments as well?

if let Ok(mut batches) = run_do_get_rpc(im, out_ticket.clone()).await {
minute_result.append(&mut batches);
}
let event = if send_to_ingester(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the following is not my change, it is a side effect of cargo fmt

@de-sh de-sh requested a review from nitisht December 7, 2024 21:45
@coveralls
Copy link

coveralls commented Dec 12, 2024

Pull Request Test Coverage Report for Build 12368131068

Details

  • 77 of 113 (68.14%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.4%) to 11.591%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/query/mod.rs 0 4 0.0%
src/handlers/http/query.rs 0 5 0.0%
src/handlers/airplane.rs 0 27 0.0%
Files with Coverage Reduction New Missed Lines %
src/handlers/http/query.rs 2 0.0%
Totals Coverage Status
Change from base Build 12367758952: 0.4%
Covered Lines: 2111
Relevant Lines: 18212

💛 - Coveralls

@nitisht nitisht merged commit f1af947 into parseablehq:main Dec 17, 2024
5 checks passed
@de-sh de-sh deleted the time-parsing branch December 17, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants