[ 
https://issues.apache.org/jira/browse/METRON-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367596#comment-16367596
 ] 

ASF GitHub Bot commented on METRON-1337:
----------------------------------------

Github user mmiklavc commented on a diff in the pull request:

    https://github.com/apache/metron/pull/853#discussion_r168809125
  
    --- Diff: 
metron-platform/metron-indexing/src/main/java/org/apache/metron/indexing/dao/search/SearchRequest.java
 ---
    @@ -101,16 +99,16 @@ public void setSort(List<SortField> sort) {
         this.sort = sort;
       }
     
    -  public Optional<List<String>> getFields() {
    -    return fields == null || fields.size() == 0 ? Optional.empty() : 
Optional.of(fields);
    +  public List<String> getFields() {
    +    return fields;
       }
     
       public void setFields(List<String> fields) {
         this.fields = fields;
       }
     
    -  public Optional<List<String>> getFacetFields() {
    -    return facetFields == null || facetFields.size() == 0 ? 
Optional.empty() : Optional.of(facetFields);
    +  public List<String> getFacetFields() {
    +    return facetFields;
    --- End diff --
    
    If we're going to change the interface, what about
    ```
    return facetFields == null ? new ArrayList() : facetFields;
    ```
    so it's not null.


> List of facets should not be hardcoded
> --------------------------------------
>
>                 Key: METRON-1337
>                 URL: https://issues.apache.org/jira/browse/METRON-1337
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Ryan Merriman
>            Assignee: Ryan Merriman
>            Priority: Major
>
> Currently the facet fields shown in the left panel of the Alerts UI is hard 
> coded in a javascript file.  This should be configurable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to