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

feat(opensearch): refactoring #4244

Merged
merged 62 commits into from
May 2, 2024
Merged

feat(opensearch): refactoring #4244

merged 62 commits into from
May 2, 2024

Conversation

ivor-juspay
Copy link
Contributor

@ivor-juspay ivor-juspay commented Mar 28, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

refactoring opensearch to module structure

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

refactoring

How did you test it?

test cases added below
(verify sanity of all global search endpoints)

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

ivor-juspay and others added 30 commits February 21, 2024 15:54
@ivor-juspay
Copy link
Contributor Author

ivor-juspay commented Apr 3, 2024

curl 'http://localhost:8080/health/ready'
{"database":true,"redis":true,"analytics":true,"opensearch":true,"outgoing_request":true}

crates/analytics/src/opensearch.rs Outdated Show resolved Hide resolved
crates/analytics/src/opensearch.rs Outdated Show resolved Hide resolved
@ivor-juspay ivor-juspay added C-refactor Category: Refactor S-waiting-on-approval Status: Review completed, awaiting for approvals from code-owners labels Apr 8, 2024
SanchithHegde
SanchithHegde previously approved these changes Apr 10, 2024
Comment on lines +180 to +185
#[cfg(feature = "olap")]
let opensearch_client = conf
.opensearch
.get_opensearch_client()
.await
.expect("Failed to create opensearch client");
Copy link
Member

Choose a reason for hiding this comment

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

do we not start the application if opensearch is not set up? Only if this is enabled via a config, then we can fail the application startup

@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit 22cb01a May 2, 2024
13 of 15 checks passed
@Gnanasundari24 Gnanasundari24 deleted the feat/opensearch branch May 2, 2024 10:37
@SanchithHegde SanchithHegde removed the S-waiting-on-approval Status: Review completed, awaiting for approvals from code-owners label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Analytics C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GLOBALSEARCH] - modular code refactoring with health check
6 participants