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(flagd): add flag metadata #1151

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

beeme1mr
Copy link
Member

@beeme1mr beeme1mr commented Jan 7, 2025

This PR

  • adds flag metadata

Related Issues

Fixes #1115

Notes

The RPC implementation still needs to be updated.

Follow-up Tasks

How to test

@beeme1mr beeme1mr linked an issue Jan 7, 2025 that may be closed by this pull request
@github-actions github-actions bot requested a review from toddbaert January 7, 2025 22:09
Signed-off-by: Michael Beemer <[email protected]>
@beeme1mr beeme1mr force-pushed the 1115-flagd-update-in-process-resolver-to-support-flag-metadata branch from 76ae337 to e6653d9 Compare January 7, 2025 22:10
@@ -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
Copy link
Member Author

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"
Copy link
Member Author

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',
Copy link
Member Author

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();
Copy link
Member Author

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}`);
Copy link
Member Author

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]>
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: review this change

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.

[flagd] Update in-process resolver to support flag metadata
2 participants