-
Notifications
You must be signed in to change notification settings - Fork 349
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
Update UI documentation link if is present #1290
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1290 +/- ##
==========================================
- Coverage 87.32% 87.30% -0.03%
==========================================
Files 89 89
Lines 4947 4970 +23
==========================================
+ Hits 4320 4339 +19
- Misses 464 466 +2
- Partials 163 165 +2
Continue to review full report at Codecov.
|
ef00bc3
to
96db555
Compare
Signed-off-by: Ruben Vargas Palma <[email protected]>
96db555
to
bf0fcfa
Compare
if !ok { | ||
return false, 0 | ||
} | ||
if itemLabel, ok := itemMap["label"]; ok && itemLabel == "Documentation" { |
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 set this initially, or is it only set by users? Can we somehow check whether the value was set by us? We should really avoid changing a value that was set by users.
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.
As this issue is related to the doc URL being supplied via CLI flag, can we just provide a fix for that situation (i.e. check if the CLI flag has been defined)?
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.
@jpkrohling TBH I don't like this either, unfortunately there is not a way to know if this was set by us or, not that I'm aware of. :(
@objectiser This code is only executed if the documentation flag is set, See: https://github.com/jaegertracing/jaeger-operator/pull/1290/files#diff-8be2eee66bfcb8efd08e4b1fe2795663a53935ff150187ad426d371534045b01R258
The update of the doc will be only executed if the CLI flag is set, there is something on the menu, and the menu structure and labels match.
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.
@jpkrohling In this situation, if the doc URL is specified via CLI, could we just take that as the true value - so not overridden by user defined value?
Fixes #1292
Signed-off-by: Ruben Vargas Palma [email protected]