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

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

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

    https://github.com/apache/metron/pull/1077#discussion_r197804645
  
    --- Diff: 
metron-interface/metron-alerts/src/app/alerts/alert-details/alert-details.component.ts
 ---
    @@ -223,21 +222,23 @@ export class AlertDetailsComponent implements OnInit {
     
       onAddComment() {
         let alertComment = new AlertComment(this.alertCommentStr, 
this.authenticationService.getCurrentUserName(), new Date().getTime());
    -    let tAlertComments = this.alertCommentsWrapper.map(alertsWrapper => 
alertsWrapper.alertComment);
    -    tAlertComments.unshift(alertComment);
    -    this.patchAlert(new Patch('add', '/comments', tAlertComments));
    +    let newComments = this.alertCommentsWrapper.map(alertsWrapper => 
alertsWrapper.alertComment);
    --- End diff --
    
    and this is the alertComments extracted from the commentWrappers.


> Alerts UI add comment doesn't immediately show up.
> --------------------------------------------------
>
>                 Key: METRON-1634
>                 URL: https://issues.apache.org/jira/browse/METRON-1634
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Ryan Merriman
>            Priority: Major
>
> For ES (and potentially Solr), when the Alerts UI adds a comment to an alert, 
> it calls the update, then immediately calls a findOne to retrieve it. This 
> comment might not immediately be available, so it doesn't show the new 
> comment.
> Instead of running a findOne, assuming the update responds appropriately, we 
> should probably just add it directly in the UI.
> Also applies to removing a comment



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

Reply via email to