-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2542 +/- ##
============================================
- Coverage 60.02% 60% -0.02%
+ Complexity 4659 4042 -617
============================================
Files 860 860
Lines 40121 40112 -9
Branches 4070 4070
============================================
- Hits 24081 24069 -12
- Misses 14572 14573 +1
- Partials 1468 1470 +2
Continue to review full report at Codecov.
|
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.
LGTM, one small suggestion. Thanks!
atlasdb-config/readme.md
Outdated
@@ -48,6 +49,7 @@ public void run(AtlasDbServerConfiguration config, Environment env) throws Excep | |||
TransactionManager transactionManager = TransactionManagers.builder() | |||
.config(config.getAtlas()) | |||
.registrar(env.jersey()::register) | |||
.userAgent("user agent") |
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.
Dont we expect products to set useragent as UserAgents.fromStrings("productName", "productVersion")
? Might be a good idea to document that or we will end up with just "productName"s as useragents.
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.
witchcraft will auto-gen the user agent for you, but yea I can update for general best practice.
Goals (and why): Resolves #2528
Implementation Description (bullets): Require the previously optional
userAgent
method in theTransactionManagers
builder. Remove thecallingClass
option.Concerns (what feedback would you like?): Technically this is a breaking change, but we only just introduced this API last release and I doubt anyone is using yet. And either way people really should be doing this no matter what. The old
create
methods still exist and are still deprecated.Where should we start reviewing?:
TransactionManagers
Priority (whenever / two weeks / yesterday):
This change is