-
Notifications
You must be signed in to change notification settings - Fork 40
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(flagd): add flag metadata #1151
base: main
Are you sure you want to change the base?
feat(flagd): add flag metadata #1151
Conversation
Signed-off-by: Michael Beemer <[email protected]>
76ae337
to
e6653d9
Compare
@@ -107,6 +107,8 @@ For general information on events, see the [official documentation](https://open | |||
|
|||
### Flag Metadata | |||
|
|||
TODO: Add message about flag metadata and how it's merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extend this description to describe the new functionality.
"scripts": { | ||
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi", | ||
"current-version": "echo $npm_package_version" | ||
}, | ||
"peerDependencies": { | ||
"@grpc/grpc-js": "~1.8.0 || ~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0", | ||
"@openfeature/server-sdk": "^1.13.0" | ||
"@openfeature/server-sdk": "^1.17.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check with @toddbaert to see if flagd-core needs to be set here.
@@ -15,22 +14,13 @@ import { InProcessService } from './service/in-process/in-process-service'; | |||
|
|||
export class FlagdProvider implements Provider { | |||
metadata = { | |||
name: 'flagd Provider', | |||
name: 'flagd', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get events() { | ||
return this._events; | ||
} | ||
readonly events = new OpenFeatureEventEmitter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove status handling since the SDK takes care of that for us now.
); | ||
this.logger?.debug(`${this.metadata.name}: ready`); | ||
} catch (err) { | ||
this.logger?.error(`${this.metadata.name}: error during initialization: ${(err as Error)?.message}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to leave this as log level error?
Signed-off-by: Michael Beemer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: review this change
This PR
Related Issues
Fixes #1115
Notes
The RPC implementation still needs to be updated.
Follow-up Tasks
How to test