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(elasticsearch): remove hard-coded port 9200, validate URL input #941

Merged

Conversation

clavinjune
Copy link
Contributor

@clavinjune clavinjune commented Feb 2, 2024

This PR enables a flexible ES endpoints by removing hard-coded ES port in the endpoints section. This PR also sanitize/validate whether user input a valid URL or not by utilizing url.Parse. I'm wondering whether we do need to have a test or not since url.Parse function already have their own test

Please advise if we need more test cases

This PR will close #940

Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
@clavinjune clavinjune requested a review from a team as a code owner February 2, 2024 09:05
@clavinjune clavinjune changed the title feat: remove hard-coded port 9200, validate URL input feat(elasticsearch): remove hard-coded port 9200, validate URL input Feb 2, 2024
Copy link
Collaborator

@blumamir blumamir left a comment

Choose a reason for hiding this comment

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

Thank you for adding support for it and adding tests 🙏 Odigos should support any port and not only the default.

Add few minor comments

Copy link
Collaborator

@blumamir blumamir left a comment

Choose a reason for hiding this comment

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

Looks great.

Thank you for adding support for this and addressing the comments 🙏

@clavinjune
Copy link
Contributor Author

please help to merge if all's good since I don't have any write access 🙇

@blumamir blumamir merged commit 3b72dd1 into odigos-io:main Feb 5, 2024
9 checks passed
@clavinjune clavinjune deleted the feat/introduce-flexible-es-endpoints branch February 5, 2024 07:56
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.

Remove Hardcoded Elasticsearch Port
2 participants