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: improve contrib guide #863

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Mar 22, 2024

This PR

Fixes #858 and removes a long-running deprecation notice OpenFeatureClient constructor.

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.53%. Comparing base (fb57fab) to head (fa60f75).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #863      +/-   ##
============================================
+ Coverage     95.30%   95.53%   +0.23%     
- Complexity      370      371       +1     
============================================
  Files            34       34              
  Lines           852      852              
  Branches         52       52              
============================================
+ Hits            812      814       +2     
+ Misses           21       20       -1     
+ Partials         19       18       -1     
Flag Coverage Δ
unittests 95.53% <ø> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Kavindu-Dodan Kavindu-Dodan force-pushed the chore/misc-improvements branch 2 times, most recently from eeeb1c5 to 0fc710a Compare March 26, 2024 15:52
Comment on lines 37 to 43
* Create an OpenFeature client. For internal use only.
*
* @param openFeatureAPI Backing global singleton
* @param name Name of the client (used by observability tools).
* @param version Version of the client (used by observability tools).
* @deprecated Do not use this constructor. It's for internal use only.
* Clients created using it will not run event handlers.
* Use the OpenFeatureAPI's getClient factory method instead.
*/
@Deprecated() // TODO: eventually we will make this non-public
public OpenFeatureClient(OpenFeatureAPI openFeatureAPI, String name, String version) {
OpenFeatureClient(OpenFeatureAPI openFeatureAPI, String name, String version) {
Copy link
Member

Choose a reason for hiding this comment

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

This has bee deprecated for a while, but technically is a breaking change. I think we need to wait for a 2.0 for this.

@thomaspoignant @lukas-reining @kinyoklion is there any reason we should make this an exception?

Copy link
Member

Choose a reason for hiding this comment

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

My expectation would be to wait until 2.0. We should probably be tracking this with an issue and "breaking-change" or other label (or project/mileston). So when we want to do 2.0 we can go through that list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @toddbaert @kinyoklion for feedback. I will document this and revert the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created tracking issue #872 and reverted this change

Copy link
Member

Choose a reason for hiding this comment

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

May want to update PR title. Aside from that LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kinyoklion ahh good one, thanks 👍

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.

Blocking for now for this.

Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Copy link

sonarcloud bot commented Mar 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Kavindu-Dodan Kavindu-Dodan changed the title chore: improve contrib guide and remove deprecation notice by removing public chore: improve contrib guide Mar 27, 2024
@toddbaert toddbaert self-requested a review March 28, 2024 13:45
@toddbaert toddbaert merged commit 46d04fe into open-feature:main Mar 28, 2024
9 checks passed
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.

CONTRIBUTING.md doesn't have accurate steps
4 participants