From: Robert M. <rob...@gm...> - 2010-12-20 13:31:31
|
Hi, I was reviewing some code related to change detection in the SOAP API and noticed that when a bug relationship is added, only the 'source' bug last change date is updated. This seems inconsistent to me, as history is recorded for both bugs ( bug_relationship_add.php ): (snip) # Add the new relationship relationship_add( $f_src_bug_id, $f_dest_bug_id, $f_rel_type ); # Add log line to the history (both bugs) history_log_event_special( $f_src_bug_id, BUG_ADD_RELATIONSHIP, $f_rel_type, $f_dest_bug_id ); history_log_event_special( $f_dest_bug_id, BUG_ADD_RELATIONSHIP, relationship_get_complementary_type( $f_rel_type ), $f_src_bug_id ); (snip) # update bug last updated (just for the src bug) bug_update_date( $f_src_bug_id ); I'm considering adding a bug_update_date call for the target bug as well. Thoughts? Robert -- Sent from my (old) computer |