Bug #11014

[Workbench] Hide the "idle/busy nodes" part of the dashboard if crunch1 APIs are disabled

Added by Tom Clegg 11 months ago. Updated 9 months ago.

Assigned To:
Target version:
Start date:
Due date:
% Done:


Estimated time:
(Total: 0.00 h)
Story points:


Task #11268: Review 11014-hide-node-statusResolvedLucas Di Pentima

Associated revisions

Revision 47178c71
Added by Lucas Di Pentima 9 months ago

Merge branch '11014-hide-node-status'
Closes #11014


#1 Updated by Tom Morris 11 months ago

  • Story points set to 0.5

#2 Updated by Tom Morris 9 months ago

  • Target version set to 2017-03-29 sprint

#3 Updated by Lucas Di Pentima 9 months ago

  • Assigned To set to Lucas Di Pentima

#4 Updated by Lucas Di Pentima 9 months ago

  • Status changed from New to In Progress

#5 Updated by Lucas Di Pentima 9 months ago

Updates on branch 11014-hide-node-status at 73dbf5b
Tests run at: https://ci.curoverse.com/job/developer-run-tests/191/

Used the already existing ArvadosBase.api_exists?() method on the dashboard template partial to decide whether to render or not the compute node status pane.

#7 Updated by Radhika Chippada 9 months ago

  • Rather than executing “PipelineInstance.api_exists?” multiple times, can we declare a variable such as “show_node_status” at line 30?
  • This I am not sure if you would like to address or not, but I’d mention it. If NOT PipelineInstance.api_exists? AND NOT Rails.configuration.show_recent_collections_on_dashboard, the left pane that shows processes is squished to the left half. It looked really bad! Should we declare panel_width = 6 or 12 before line 37 depending on this IF condition and use it at lines 38 and 98?
    div class="col-md-6"
  • test “dashboard compute node status when …” => Can you say something like “dashboard compute nodes not shown when …”

LGTM as you like.

#8 Updated by Lucas Di Pentima 9 months ago

Thanks for the comments, all addressed at bf03dd4

Test run: https://ci.curoverse.com/job/developer-run-tests/193/

#9 Updated by Lucas Di Pentima 9 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:47178c71032b476e34fd0c6b10065e1b96a568f1.

Also available in: Atom PDF