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 data models to be generic to data storage #2687

Merged
merged 3 commits into from
May 22, 2024

Conversation

ykmr1224
Copy link
Collaborator

Description

  • Refactor data models to be generic to data storage
  • Replaced OpenSearch specific attributes with generic metadata map
  • Replaced some constructor with builder (mainly for readability)

Issues Resolved

n/a

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tomoyuki Morita <[email protected]>
@@ -90,7 +88,7 @@ void testCreateAsyncQuery() {
.storeJobMetadata(
AsyncQueryJobMetadata.builder()
.queryId(QUERY_ID)
.applicationId(APPLICATION_ID)
.applicationId(EMRS_APPLICATION_ID)
.jobId(EMR_JOB_ID)
.build());
Copy link
Collaborator

Choose a reason for hiding this comment

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

now this can be getAsyncQueryJobMetadata()

Signed-off-by: Tomoyuki Morita <[email protected]>
Copy link
Collaborator

@seankao-az seankao-az left a comment

Choose a reason for hiding this comment

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

thanks!

@ykmr1224 ykmr1224 merged commit 3a28d2a into opensearch-project:main May 22, 2024
20 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 22, 2024
* Refactor data models to be generic to data storage

Signed-off-by: Tomoyuki Morita <[email protected]>

* Address review comments

Signed-off-by: Tomoyuki Morita <[email protected]>

* Reduce redundancy

Signed-off-by: Tomoyuki Morita <[email protected]>

---------

Signed-off-by: Tomoyuki Morita <[email protected]>
(cherry picked from commit 3a28d2a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ykmr1224 pushed a commit that referenced this pull request May 23, 2024
* Refactor data models to be generic to data storage



* Address review comments



* Reduce redundancy



---------


(cherry picked from commit 3a28d2a)

Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@ykmr1224 ykmr1224 deleted the dqs/refactor-dbgeneric branch May 24, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x maintenance Improves code quality, but not the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants