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

chore(opensearchserverless): refactor cdk construct #797

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

Conversation

erdemayyildiz
Copy link
Contributor

@erdemayyildiz erdemayyildiz commented Nov 12, 2024

Fixes #737

refactor for opensearchserverless constructs that follows best practices https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md

created interface for VectorCollection extended from IResource - https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md#construct-interface
created VectorCollectionBase implements IVectorCollection - https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md#abstract-base
created default metrics - https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md#metrics
created import methods fromCollectionName, fromCollectionAttributes - https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md#imports

developed additional test cases for refactored lines.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

@krokoko
Copy link
Collaborator

krokoko commented Nov 13, 2024

Thanks @erdemayyildiz ! Could you please run a full build locally, it seems the build was failing because of a mutation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(opensearch): module refactoring to follow best practices from CDK
3 participants