accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lstav <...@git.apache.org>
Subject [GitHub] accumulo pull request #175: Accumulo 1480 Added namespace filtering to table...
Date Mon, 31 Oct 2016 16:40:34 GMT
Github user lstav commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/175#discussion_r85779419
  
    --- Diff: server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java ---
    @@ -143,7 +146,24 @@ public synchronized void generate(HttpServletRequest req, StringBuilder
sb) {
           showLegend = showStr != null && Boolean.parseBoolean(showStr);
         }
     
    -    sb.append("<div>\n");
    +    String redir = BasicServlet.currentPage(req);
    +
    +    if (namespaces != null) {
    +      sb.append("<div id=\"filters\">\n");
    +      String namespace = BasicServlet.getCookieValue(req, "namespaceDropdown." + BasicServlet.encode(page)
+ "." + BasicServlet.encode(tableName) + "."
    +          + "selected");
    +      if (namespace == null) {
    +        namespace = "*";
    +      }
    +      sb.append("<div class='left show'><dl>\n");
    +      doDropdownMenu(redir, page, tableName, sb, namespaces, namespace);
    --- End diff --
    
    Will add a header "Namespaces" that uses a different font than the rest of the list.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message