-
Notifications
You must be signed in to change notification settings - Fork 25
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
dashboard/templates: Remove graphs from jobs-job{-branch} templates #144
base: main
Are you sure you want to change the base?
Conversation
In the job/<tree>/ and job/<tree>/<branch> views we often get a "Error loading test data" error for the test pass rate graph at the bottom of the page. When viewing an entire tree at this level the build/test pass rate graphs don't provide any useful information anyway, so let's just remove them. If anyone manages to work out what is causing the issues in future we can always restore one or both of the graphs again. Signed-off-by: Chris Paterson <[email protected]>
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.
Please also remove the Javascript code that sends requests to the backend to populate these graphs, otherwise they'll keep doing it and just discarding the data.
$ git grep build-pass-rate
app/dashboard/static/js/app/view-jobs-job-branch.2020.10.js: document.getElementById('build-pass-rate'),
app/dashboard/static/js/app/view-jobs-job-branch.2020.10.js: chart.buildpassrate('build-pass-rate', response);
app/dashboard/static/js/app/view-jobs-job-branch.2020.10.js: document.getElementById('build-pass-rate'),
app/dashboard/static/js/app/view-jobs-job.2020.10.js: document.getElementById('build-pass-rate'),
app/dashboard/static/js/app/view-jobs-job.2020.10.js: chart.buildpassrate('build-pass-rate', response);
app/dashboard/static/js/app/view-jobs-job.2020.10.js: document.getElementById('build-pass-rate'),
Same for test-pass-rate
.
Keep charts/passrate.js for now in case it's useful for someone. Signed-off-by: Chris Paterson <[email protected]>
Hi @gctucker
Thank you for pointing this out. I've gone through and (hopefully) removed the relevant code. Let me know if you also think charts/passrate.js should be removed. I kept it in case someone wants to use it elsewhere in future. |
Adding |
Sorry! Do you have any logs I can look through to work out what went wrong? |
No I just noticed that the frontend was failing to load some data and spinning for ever. I think that should be reproducible locally, but make sure you enable developer mode in your browser and disable all caches and force-reload the pages to get the actual Javascript changes. The developer mode should also show you all the queries that the frontend is doing and which ones are failing. |
In the job// and job// views we often get a "Error
loading test data" error for the test pass rate graph at the bottom of the
page.
When viewing an entire tree at this level the build/test pass rate graphs
don't provide any useful information anyway, so let's just remove them.
If anyone manages to work out what is causing the issues in future we can
always restore one or both of the graphs again.
Signed-off-by: Chris Paterson [email protected]