Change event detection
Change event detection

Beforehand we relyed on https://github.com/google/ggrc-core/commit/613d1ca05e6bfb63855f6e1171cdc140daa94a69#diff-e23d70a7b8c3224ad819171e507a743aL729 to trigger flush event that would mark
an object for deletion. However, after deleting, we no longer
can use that approach, and unless we trigger flush only for DELETE
we have to rely on secondary approach. If we would add flush into
handle_relationship, detection of PUT events stops working because
changes get marked as "unchanged" and are no longer marked as
"deletion"/"addition".

j0gurt/ggrc-core,andrei-karalionak/ggrc-core,VinnieJohns/ggrc-core,edofic/ggrc-core,edofic/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,NejcZupec/ggrc-core,kr41/ggrc-core,josthkko/ggrc-core,josthkko/ggrc-core,VinnieJohns/ggrc-core,kr41/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,kr41/ggrc-core,andrei-karalionak/ggrc-core,j0gurt/ggrc-core,selahssea/ggrc-core,kr41/ggrc-core,selahssea/ggrc-core,josthkko/ggrc-core,VinnieJohns/ggrc-core,NejcZupec/ggrc-core,NejcZupec/ggrc-core,plamut/ggrc-core,josthkko/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,edofic/ggrc-core,j0gurt/ggrc-core,selahssea/ggrc-core,VinnieJohns/ggrc-core,NejcZupec/ggrc-core,plamut/ggrc-core,edofic/ggrc-core