Skip to content

Conversation

@BehnamMozafari
Copy link
Contributor

[ ]

Behnam Mozafari added 29 commits December 16, 2024 14:35
…edConfig method rather than storing config
…e in UIDOperatorVerticleTest

"identity_token_expires_after_seconds", "max_bidstream_lifetime_seconds", "max_sharing_lifetime_seconds" and "sharing_token_expiry_seconds" now are retrieved from RoutingContext in handlers.
…nfigService

Moved validation logic from UIDOperatorVerticle and UIDOperatorService to ConfigValidatorUtil
configValidationHandler is set as a config processor for configRetriever in ConfigService
…datorUtilTest to test handling null values
ConfigService returns a Future when created and takes ConfigRetriever in "create" method
"run()" method in Main waits for ConfigService Future to complete before creating UIDOperatorVerticle
Removed use of reflection to access private attributes/methods
Removed unnecessary tests
Updated remaining tests to inject ConfigRetriever into ConfigService
…ication

# Conflicts:
#	src/main/java/com/uid2/operator/Main.java
#	src/main/java/com/uid2/operator/service/UIDOperatorService.java
Set http store to optional
Added default value for max_bidstream_lifetime_seconds
ConfigServiceManager handles switching between dynamic and static config
StaticConfigService implements IConfigService, serving config from static files
Main creates new ConfigServiceManager instance and injects it into UIDOperatorVerticle
Also Added feature flag config value to local-config.json, Made create method static in ConfigServiceManager
Removed ConfigServiceManager from constructor
Allows for switches between static and dynamic config services without having to change UIDOperatorVerticle
ConfigRetriever in Main listens for feature flag changes and publishes to eventbus
ConfigServiceManager listens to eventbus and updates DelegatingConfigService active ConfigService
Added tests to verify config changes are reflected in endpoints
static config values are set from main config rather than ConfigService
- removed bootstrap config as a store from ConfigRetrieverFactory
- exclusive config retriever to listen to changes in mounted configmap
- listener directly interacts with ConfigServiceManager rather than publishing to EventBus

Vertx vertx = createVertx();
VertxUtils.createConfigRetriever(vertx).getConfig(ar -> {
ConfigRetriever configRetriever = VertxUtils.createConfigRetriever(vertx);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

undo

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.

2 participants