I also tested:
instance_type = 'testovy/asset_in_asset'
src_sobject = 'testovy/asset?project=testovy&code=ASSET00001'
dst_sobject= 'testovy/asset?project=testovy&code=ASSET00003'
instance = SearchType.create(instance_type)
instance.add_related_connection(src_sobject, dst_sobject, path="child")
instance.commit()
And it is working Good!
May be there is a bug with "add_relationship_filter"?
Looks like Sobject.remove_instance() did not work too
From search.py add_relationship_filter:
if search_type == related_type:
print "WARNING: related type and search type are the same for [%s]" % search_type
my.add_id_filter(sobject.get_id())
return
Looks like it checks for same realtationship, and skip path arg.
May be there should be check for path, before warning?
instance_type = 'testovy/asset_in_asset'
src_sobject = 'testovy/asset?project=testovy&code=ASSET00001'
dst_sobject= 'testovy/asset?project=testovy&code=ASSET00003'
instance = SearchType.create(instance_type)
instance.add_related_connection(src_sobject, dst_sobject, path="child")
instance.commit()
And it is working Good!
May be there is a bug with "add_relationship_filter"?
Looks like Sobject.remove_instance() did not work too
From search.py add_relationship_filter:
if search_type == related_type:
print "WARNING: related type and search type are the same for [%s]" % search_type
my.add_id_filter(sobject.get_id())
return
Looks like it checks for same realtationship, and skip path arg.
May be there should be check for path, before warning?