Page MenuHomePhabricator

WDCM: Optimize WDCM Shiny Dashboards
Closed, ResolvedPublic

Description

Optimize WDCM Shiny Dashboards:

  • Step 1. Whatever can migrate from dplyr to data.table should.
  • Step 2. Provide user feedback (spinners, etc) whenever possible.
  • Step 3. Continuously monitor all production side "Engine" updates until all CloudVPS side issues (Dashboards) are resolved.

Event Timeline

  • Several bugs discovered during the most recent update after some fixes for security issues (managing SQL passwords from {RMySQL} in the Cloud VPS enviornment).
  • Fixing the bugs for some time already.
  • WDCM Geo Dashboard: (a) production update is broken (timeout exceptions from WDQS; defensive code will be introduced); (b) the Art Gallery category contains no data, checking this out.
  • EngineGeo rework submitted; testing now.
  • Test successfull; Art Gallery data restored.
  • WDCM Semantics Dashboard: {rbokeh} issue detected:
output$overviewPlotDynamic <- renderRbokeh({
        outFig <- figure(width = 1400, height = 900, logo = NULL) %>%
          ly_points(D1, D2, 
                    data = projCatFrame,
                    size = log(Usage), 
                    color = 'Project Type', 
                    hover = list(Project, Usage)) %>% 
          x_axis(visible = F) %>% 
          y_axis(visible = F) %>% 
          theme_grid(which = c("x", "y"), 
                     grid_line_color = "white") %>% 
          theme_plot(outline_line_alpha = 0) %>% 
          set_palette(discrete_color = pal_color(unname(projectTypeColor)))
        outFig
      })

for some categories results in

Error in if (needs_map_fns[[nm]](args[[nm]]) && !is.na(args[[nm]])) attr(args[[nm]],  : 
  missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
2: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
3: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
4: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
5: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
6: In structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.