def deserialize(self, row: EntityRow) -> Favorite:
     favorite = Favorite(connectedSpaceIds=row.get('connected_space_ids'),
                         dashboardIds=row.get('dashboard_ids'))
     # noinspection PyTypeChecker
     favorite: Favorite = UserBasedTupleShaper.deserialize(row, favorite)
     # noinspection PyTypeChecker
     favorite: Favorite = LastVisitShaper.deserialize(row, favorite)
     return favorite
 def deserialize(self, row: EntityRow) -> ConnectedSpaceGraphic:
     connected_space_graphic = ConnectedSpaceGraphic(
         connectId=row.get('connect_id'),
         topics=row.get('topics'),
         subjects=row.get('subjects'))
     # noinspection PyTypeChecker
     connected_space_graphic: ConnectedSpaceGraphic = UserBasedTupleShaper.deserialize(
         row, connected_space_graphic)
     return connected_space_graphic
예제 #3
0
 def deserialize(self, row: EntityRow) -> PipelineGraphic:
     pipeline_graphic = PipelineGraphic(
         pipelineGraphId=row.get('pipeline_graphic_id'),
         name=row.get('name'),
         topics=row.get('topics'),
         createdAt=row.get('created_at'),
         lastModifiedAt=row.get('last_modified_at'))
     # noinspection PyTypeChecker
     pipeline_graphic: PipelineGraphic = UserBasedTupleShaper.deserialize(
         row, pipeline_graphic)
     return pipeline_graphic
 def deserialize(self, row: EntityRow) -> ObjectiveAnalysis:
     analysis = ObjectiveAnalysis(analysisId=row.get('analysis_id'),
                                  title=row.get('title'),
                                  description=row.get('description'),
                                  perspectives=row.get('perspectives'))
     # noinspection PyTypeChecker
     analysis: ObjectiveAnalysis = UserBasedTupleShaper.deserialize(
         row, analysis)
     # noinspection PyTypeChecker
     analysis: ObjectiveAnalysis = LastVisitShaper.deserialize(
         row, analysis)
     return analysis
 def deserialize(self, row: EntityRow) -> Subject:
     subject = Subject(subjectId=row.get('subject_id'),
                       name=row.get('name'),
                       connectId=row.get('connect_id'),
                       autoRefreshInterval=row.get('auto_refresh_interval'),
                       dataset=row.get('dataset'))
     # noinspection PyTypeChecker
     subject: Subject = AuditableShaper.deserialize(row, subject)
     # noinspection PyTypeChecker
     subject: Subject = UserBasedTupleShaper.deserialize(row, subject)
     # noinspection PyTypeChecker
     subject: Subject = LastVisitShaper.deserialize(row, subject)
     return subject
예제 #6
0
 def deserialize(self, row: EntityRow) -> LastSnapshot:
     last_snapshot = LastSnapshot(
         language=row.get('language'),
         lastDashboardId=row.get('last_dashboard_id'),
         adminDashboardId=row.get('admin_dashboard_id'),
         favoritePin=row.get('favorite_pin'))
     # noinspection PyTypeChecker
     last_snapshot: LastSnapshot = UserBasedTupleShaper.deserialize(
         row, last_snapshot)
     # noinspection PyTypeChecker
     last_snapshot: LastSnapshot = LastVisitShaper.deserialize(
         row, last_snapshot)
     return last_snapshot
 def deserialize(self, row: EntityRow) -> Dashboard:
     dashboard = Dashboard(
         dashboardId=row.get('dashboard_id'),
         name=row.get('name'),
         reports=row.get('reports'),
         paragraphs=row.get('paragraphs'),
         autoRefreshInterval=row.get('auto_refresh_interval'))
     # noinspection PyTypeChecker
     dashboard: Dashboard = AuditableShaper.deserialize(row, dashboard)
     # noinspection PyTypeChecker
     dashboard: Dashboard = UserBasedTupleShaper.deserialize(row, dashboard)
     # noinspection PyTypeChecker
     dashboard: Dashboard = LastVisitShaper.deserialize(row, dashboard)
     return dashboard
예제 #8
0
	def deserialize(self, row: EntityRow) -> Achievement:
		achievement = Achievement(
			achievementId=row.get('achievement_id'),
			name=row.get('name'),
			description=row.get('description'),
			timeRangeType=row.get('time_range_type'),
			timeRangeYear=row.get('time_range_year'),
			timeRangeMonth=row.get('time_range_month'),
			compareWithPreviousTimeRange=row.get('compare_with_prev_time_range'),
			indicators=row.get('indicators')
		)
		# noinspection PyTypeChecker
		achievement: Achievement = UserBasedTupleShaper.deserialize(row, achievement)
		return achievement
예제 #9
0
 def deserialize(self, row: EntityRow) -> ConnectedSpace:
     connected_space = ConnectedSpace(connectId=row.get('connect_id'),
                                      spaceId=row.get('space_id'),
                                      name=row.get('name'),
                                      isTemplate=row.get('is_template'))
     # noinspection PyTypeChecker
     connected_space: ConnectedSpace = AuditableShaper.deserialize(
         row, connected_space)
     # noinspection PyTypeChecker
     connected_space: ConnectedSpace = UserBasedTupleShaper.deserialize(
         row, connected_space)
     # noinspection PyTypeChecker
     connected_space: ConnectedSpace = LastVisitShaper.deserialize(
         row, connected_space)
     return connected_space
예제 #10
0
 def deserialize(self, row: EntityRow) -> Inspection:
     inspection = Inspection(
         inspectionId=row.get('inspection_id'),
         name=row.get('name'),
         indicatorId=row.get('indicator_id'),
         aggregateArithmetics=row.get('aggregate_arithmetics'),
         measureOn=row.get('measure_on'),
         measureOnFactorId=row.get('measure_on_factor_id'),
         measureOnBucketId=row.get('measure_on_bucket_id'),
         timeRangeMeasure=row.get('time_range_measure'),
         timeRangeFactorId=row.get('time_range_factor_id'),
         timeRanges=row.get('time_ranges'),
         measureOnTime=row.get('measure_on_time'),
         measureOnTimeFactorId=row.get('measure_on_time_factor_id'))
     # noinspection PyTypeChecker
     inspection: Inspection = UserBasedTupleShaper.deserialize(
         row, inspection)
     return inspection
예제 #11
0
 def deserialize(self, row: EntityRow) -> Report:
     report = Report(reportId=row.get('report_id'),
                     name=row.get('name'),
                     subjectId=row.get('subject_id'),
                     connectId=row.get('connect_id'),
                     filters=row.get('filters'),
                     funnels=row.get('funnels'),
                     indicators=row.get('indicators'),
                     dimensions=row.get('dimensions'),
                     description=row.get('description'),
                     rect=row.get('rect'),
                     chart=row.get('chart'),
                     simulating=row.get('simulating'),
                     simulateData=row.get('simulate_data'),
                     simulateThumbnail=row.get('simulate_thumbnail'))
     # noinspection PyTypeChecker
     report: Report = AuditableShaper.deserialize(row, report)
     # noinspection PyTypeChecker
     report: Report = UserBasedTupleShaper.deserialize(row, report)
     # noinspection PyTypeChecker
     report: Report = LastVisitShaper.deserialize(row, report)
     return report