mattia / pagure

Forked from pagure 3 years ago
Clone

c27d610 Return the flag UID when adding or updating a flag on a PR not in fedmsg

Authored and Committed by pingou 6 years ago
    Return the flag UID when adding or updating a flag on a PR not in fedmsg
    
    The UID of a flag is what allows to update it, so it shouldn't be part
    of the fedmsg message we sent.
    However, if the user is not specifying the UID, then they have no way to
    know it unless we return it, so when adding or updating a flag, return
    the JSON representation of that flag object.
    
    Adjust the unit-tests accordingly.
    
    Fixes https://pagure.io/pagure/issue/1588
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+32 -3
file modified
+1 -1
file modified
+0 -1
file modified
+1 -1