Skip to content

BUG: Adding Issues with Copying Attribute Resources

  1. Attribute Resource Associations are now copied in copyFinalized()

  2. Attribute Active Categories are now copied in copyInitialized()

  3. Attribute Resource Analyses are now copied in copyInitialized() Also added assignment method to Analyses class.

  4. Properties on Resources (in particular with Attribute and Graph Resources are now copied) The issue was that source and copied resource uuids were not being added to the object mapping in their clone methods. Note: All Resources that can be cloned will need to do this.

  5. Removed undefinedRole as the default role type when creating links. This lead to mistakes where specified roles were not being used when creating between resources.This role type has been removed. Resource based Links now use the same value to represent an Link with an invalid role type. Also by default, links with invalid role types will no longer be copied when a resource is copied.

smtk/resource/testing/python/testCloneResources.py has been updated to verify these changes.

Also replaced all std::cerr and std::cout statements in smtk/attribute/Resource.cxx with Logger messages.

Addresses Issues: #538 (closed) #536 #537 #535 #534

Edited by Robert M. O'Bara

Merge request reports

Loading