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: Parseable as the main interface #1143

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

de-sh
Copy link
Contributor

@de-sh de-sh commented Jan 29, 2025

Fixes #XXXX.

Description

Refactors code to share a Parseable object that is the interface to perform all operations in parseable, instead of having distinct interfaces such as CONFIG, StreamInfo, etc.


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 draft January 29, 2025 10:08
@de-sh de-sh marked this pull request as ready for review February 1, 2025 16:57
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.

some comments

src/parseable.rs Outdated Show resolved Hide resolved
src/parseable.rs Outdated Show resolved Hide resolved
src/parseable.rs Outdated Show resolved Hide resolved
src/parseable.rs Outdated Show resolved Hide resolved
src/analytics.rs Outdated Show resolved Hide resolved
@de-sh de-sh requested a review from nitisht February 1, 2025 18:35
src/parseable.rs Outdated Show resolved Hide resolved
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.

One small comment otherwise LGTM

@de-sh de-sh marked this pull request as draft February 3, 2025 08:15
// use the id that was generated/found in the staging and
// generate the path for the object store
let path = ingestor_metadata_path(None);
let path = meta.file_path();

// we are considering that we can always get from object store
if let Some(mut store_data) = storage_ingestor_metadata {
Copy link
Contributor

Choose a reason for hiding this comment

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

test initialising multiple ingestors setup / delete ingestor for distributed

src/lib.rs Outdated Show resolved Hide resolved
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