Github user justinleet commented on the issue:

    https://github.com/apache/metron/pull/1077
  
    What happens in the case where two comments are optimistically added, then 
the first one fails?
    
    e.g.
    1. User adds comment_1
    2. User adds comment_2
    3. Some failure occurs and comment_1 fails, but comment_2 succeeds.
    
    I'd expect the state of this to be just comment_2. Since the UI stores the 
previousComments, does this get overwritten by adding comment_2?  In this case, 
and correct me if I'm wrong, the comments will be  reset to the UI's belief of 
the previous version (comment_1) and therefore out of sync with the store until 
the comments are reloaded.
    
    Admittedly, I'd expect this to be pretty rare (and require the user to 
rapidly add a couple comments)


---

Reply via email to