@@ -574,31 +574,42 @@ def execute(self):
574574 )
575575 annotation_classes_entity_mapping = defaultdict (AnnotationClassEntity )
576576 annotation_classes_created = False
577- if self ._include_annotation_classes :
577+ if self ._include_settings :
578578 self .reporter .log_info (
579- f"Cloning annotation classes from { self ._project .name } to { self ._project_to_create .name } ."
579+ f"Cloning settings from { self ._project .name } to { self ._project_to_create .name } ."
580580 )
581581 try :
582- self ._copy_annotation_classes (
583- annotation_classes_entity_mapping , project
584- )
585- annotation_classes_created = True
582+ self ._copy_settings (project )
586583 except (AppException , RequestException ) as e :
587584 self .reporter .log_warning (
588- f"Failed to clone annotation classes from { self ._project .name } to { self ._project_to_create .name } ."
585+ f"Failed to clone settings from { self ._project .name } to { self ._project_to_create .name } ."
589586 )
590587 self .reporter .log_debug (str (e ), exc_info = True )
591588
589+ if self ._include_contributors :
590+ self .reporter .log_info (
591+ f"Cloning contributors from { self ._project .name } to { self ._project_to_create .name } ."
592+ )
593+ try :
594+ self ._copy_include_contributors (project )
595+ except (AppException , RequestException ) as e :
596+ self .reporter .log_warning (
597+ f"Failed to clone contributors from { self ._project .name } to { self ._project_to_create .name } ."
598+ )
599+ self .reporter .log_debug (str (e ), exc_info = True )
592600
593- if self ._include_settings :
601+ if self ._include_annotation_classes :
594602 self .reporter .log_info (
595- f"Cloning settings from { self ._project .name } to { self ._project_to_create .name } ."
603+ f"Cloning annotation classes from { self ._project .name } to { self ._project_to_create .name } ."
596604 )
597605 try :
598- self ._copy_settings (project )
606+ self ._copy_annotation_classes (
607+ annotation_classes_entity_mapping , project
608+ )
609+ annotation_classes_created = True
599610 except (AppException , RequestException ) as e :
600611 self .reporter .log_warning (
601- f"Failed to clone settings from { self ._project .name } to { self ._project_to_create .name } ."
612+ f"Failed to clone annotation classes from { self ._project .name } to { self ._project_to_create .name } ."
602613 )
603614 self .reporter .log_debug (str (e ), exc_info = True )
604615
@@ -626,17 +637,6 @@ def execute(self):
626637 f"Failed to workflow from { self ._project .name } to { self ._project_to_create .name } ."
627638 )
628639 self .reporter .log_debug (str (e ), exc_info = True )
629- if self ._include_contributors :
630- self .reporter .log_info (
631- f"Cloning contributors from { self ._project .name } to { self ._project_to_create .name } ."
632- )
633- try :
634- self ._copy_include_contributors (project )
635- except (AppException , RequestException ) as e :
636- self .reporter .log_warning (
637- f"Failed to clone contributors from { self ._project .name } to { self ._project_to_create .name } ."
638- )
639- self .reporter .log_debug (str (e ), exc_info = True )
640640
641641 self ._response .data = self ._projects .get_one (
642642 uuid = project .id , team_id = project .team_id
0 commit comments