|
42 | 42 | from sonar.util import types |
43 | 43 |
|
44 | 44 | from sonar import exceptions, errcodes |
45 | | -from sonar import sqobject, components, qualitygates, qualityprofiles, rules, tasks, settings, webhooks, devops, syncer |
| 45 | +from sonar import sqobject, components, qualitygates, qualityprofiles, tasks, settings, webhooks, devops |
46 | 46 | import sonar.permissions.permissions as perms |
47 | 47 | from sonar import pull_requests, branches |
48 | 48 | import sonar.utilities as util |
@@ -799,6 +799,8 @@ def count_third_party_issues(self, filters: dict[str, str] = None) -> dict[str, |
799 | 799 |
|
800 | 800 | def __sync_community(self, another_project: object, sync_settings: types.ConfigSettings) -> tuple[list[dict[str, str]], dict[str, int]]: |
801 | 801 | """Syncs 2 projects findings on a community edition""" |
| 802 | + from sonar import syncer |
| 803 | + |
802 | 804 | report, counters = [], {} |
803 | 805 | log.info("Syncing %s and %s issues", str(self), str(another_project)) |
804 | 806 | (report, counters) = syncer.sync_lists( |
@@ -993,7 +995,7 @@ def export(self, export_settings: types.ConfigSettings, settings_list: dict[str, |
993 | 995 | "taskHistory": [t._json for t in self.task_history()], |
994 | 996 | } |
995 | 997 | json_data["thirdPartyIssues"] = self.count_third_party_issues() |
996 | | - log.info("%s has %d 3rd party issues", str(self), sum(v for v in json_data["thirdPartyIssues"].values())) |
| 998 | + log.debug("%s has %d 3rd party issues", str(self), sum(v for v in json_data["thirdPartyIssues"].values())) |
997 | 999 |
|
998 | 1000 | settings_dict = settings.get_bulk(endpoint=self.endpoint, component=self, settings_list=settings_list, include_not_set=False) |
999 | 1001 | # json_data.update({s.to_json() for s in settings_dict.values() if include_inherited or not s.inherited}) |
|
0 commit comments