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

    https://github.com/apache/metron/pull/1010#discussion_r189066511
  
    --- Diff: 
metron-interface/metron-alerts/src/app/service/elasticsearch-localstorage-impl.ts
 ---
    @@ -47,6 +51,18 @@ export class ElasticSearchLocalstorageImpl extends 
DataSource {
         new ColumnMetadata('alert_status', 'string')
       ];
     
    +  getSourceTypeFromLocalstorage() {
    +    let sourceType: string;
    +    if (localStorage['metron-alerts-saved-search']) {
    +      let columnHeaders = 
JSON.parse(localStorage['metron-alerts-saved-search']);
    +      sourceType = columnHeaders[0]['tableColumns'].filter(colName => 
colName.name === 'source.type');
    +      if (sourceType && !this.defaultColumnMetadata['source.type']) {
    +        this.defaultColumnMetadata = 
this.defaultColumnMetadata.filter(colName => colName.name !== 'source:type');
    --- End diff --
    
    Same as https://github.com/apache/metron/pull/1010/files#r189060226


---

Reply via email to