-
Notifications
You must be signed in to change notification settings - Fork 487
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
Change UI configuration to a Javascript file #677
Change UI configuration to a Javascript file #677
Conversation
@yurishkuro I remember, that we discuss memoization of the |
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io>
0327864
to
2b9dadb
Compare
Codecov Report
@@ Coverage Diff @@
## master #677 +/- ##
=======================================
Coverage 94.23% 94.23%
=======================================
Files 228 228
Lines 5930 5930
Branches 1448 1448
=======================================
Hits 5588 5588
Misses 308 308
Partials 34 34 Continue to review full report at Codecov.
|
Don't know what the use case would be, given that at present the config is static as far as the UI is concerned. Maybe it was envisioning loading (and reloading) the config from the server dynamically? Where is the test? |
Test 'processes deprecations every time |
So from what I understand, there were already some historical config format changes such that certain properties have been renamed or moved to different location, and that's what |
function getJaegerUiConfig() { | ||
if(typeof window.UIConfig === 'function') { | ||
return UIConfig(); |
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.
Should the result be memorized? I see a dozen log lines with the following config:
function UIConfig() {
console.log("loading config");
}
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.
yes - #677 (comment)
@yurishkuro I suggest move the discussion about memoization here #679 |
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Which problem is this PR solving?
Short description of the changes