-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Simplify Bundling of UI assets #5917
Simplify Bundling of UI assets #5917
Conversation
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5917 +/- ##
=======================================
Coverage 96.81% 96.81%
=======================================
Files 342 343 +1
Lines 16525 16528 +3
=======================================
+ Hits 15998 16001 +3
Misses 340 340
Partials 187 187
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@yurishkuro anything we can do about the failing codecoverage step? |
you could have another test where you swap actualFS for a test fixture, e.g.
|
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
thanks for the suggestion! I added a second test in. |
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Thanks! |
Which problem is this PR solving?
Description of the changes
assets.go
that holds both theplaceholder
andactual
assets.GetStaticFiles
to get the assets based on whether the actual filesystem has anindex.html.gz
. If it does, we return the assets. Otherwise, we return the placeholderindex.html
file.How was this change tested?
Added unit tests and performed the following manual tests
Test 1
Makefile Target
Clearing out the
actual
directory and ranmake run-all-in-one
. Going tohttp://localhost:16686/
renders the placeholder HTML page.Test 2
Makefile Target
Ran
make run-all-in-one
. Going tohttp://localhost:16686/
renders the Jaeger UI.Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test