def fill_report_id(report: Report) -> None:
		report.reportId = report_service.generate_storable_id()
		report.subjectId = subject_id_map[report.subjectId] \
			if report.subjectId in subject_id_map else report.subjectId
		report.connectId = connected_space_id_map[report.connectId] \
			if report.connectId in connected_space_id_map else report.connectId
		if report.filters is not None:
			report.filters = ParameterJoint(**replace_ids(report.filters.dict(), replace_topic_and_factor_ids))
Exemple #2
0
 def set_storable_id(self, storable: Report,
                     storable_id: ReportId) -> Report:
     storable.reportId = storable_id
     return storable