Skip to content

feat: ofrep provider #1429

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

Merged
merged 13 commits into from
Jul 17, 2025
Merged

Conversation

Rahul-Baradol
Copy link
Member

@Rahul-Baradol Rahul-Baradol commented Jun 18, 2025

This PR

  • Adds OFREP provider

Related Issues

Fixes #1413

Follow-up Tasks

  • Dev testing
  • Added tests
  • Docs

@Rahul-Baradol Rahul-Baradol requested a review from a team as a code owner June 18, 2025 11:31
Copy link
Member

@liran2000 liran2000 left a comment

Choose a reason for hiding this comment

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

thanks for this 😃 added some comments

@liran2000 liran2000 requested a review from thomaspoignant June 19, 2025 12:41
@Rahul-Baradol Rahul-Baradol force-pushed the ofrep-provider branch 4 times, most recently from bae4f4f to 5ea2826 Compare June 20, 2025 11:48
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
@Rahul-Baradol Rahul-Baradol requested a review from liran2000 June 22, 2025 12:12
Copy link
Member

@liran2000 liran2000 left a comment

Choose a reason for hiding this comment

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

I see the review comments were addressed, thanks.
Added some more review comments on last commits, approving, can wait for others to review as well.

Copy link
Member

@aepfli aepfli 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 this looks good to me. I am just questioning if we should maybe more often use the @Value lombok annotation to generate record like objects. I think this could reduce some of the boilderplate even more here. Thank you

Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
@Rahul-Baradol
Copy link
Member Author

How can we proceed here?

@aepfli
Copy link
Member

aepfli commented Jul 8, 2025

from my perspective this is good to go, but I would love to have somebody from the OFREP sig also as part of the reviewers @thomaspoignant @lukas-reining (or maybe somebody else)

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
*/
public OfrepApi(Duration requestTimeout, Duration connectTimeout, ProxySelector proxySelector, Executor executor) {
httpClient = HttpClient.newBuilder()
.connectTimeout(connectTimeout)
Copy link
Member

Choose a reason for hiding this comment

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

We could possibly add keepAlive settings, but by default I think there's a 30s pooled connection so I think that's good for now.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert self-requested a review July 16, 2025 19:19
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

@Rahul-Baradol I made a few very small changes:

  • used a ParseError instead of a GeneralError where I thought it made sense
  • updated the parent pom dependency requiring latest SDK version
  • added myself to the owners

If that's all OK with you, don't do anything! I will merge tomorrow. If not, please say so!

@toddbaert toddbaert merged commit a33ef58 into open-feature:main Jul 17, 2025
5 checks passed
@Rahul-Baradol
Copy link
Member Author

Ohh no issues!
You merged it already 😄

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.

[FEATURE] Create OFREP provider
5 participants