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

Authored and Committed by Pierre-Yves Chibon 7 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></pingou@pingoured.fr>
    
        
file modified
+32 -3
file modified
+1 -1
file modified
+0 -1
file modified
+1 -1