In previous versions of mstrio-py, the Report class included update_data_source() and get_data_source_name() methods which allowed programmatic remapping of datasource instances on freeform SQL and transaction reports.
These methods are no longer present in the current version (11.6.4.101) and there is no documentation indicating what replaced them or the recommended migration path.
Use case: After migrating objects between projects/environments, freeform SQL reports need their datasource instances updated to point to the correct target environment datasource. This was previously handled with:
reports = list_reports(connection=conn, project_id=project.id)
for report in reports:
if report.ext_type == ExtendedType.CUSTOM_SQL_FREE_FORM:
datasource_name = report.get_data_source_name()
report.update_data_source(
new_datasource_id=new_instance.id,
new_datasource_name=new_instance.name
)
Request: Please either restore these methods, provide equivalent functionality, or document the recommended approach using the current API.
In previous versions of mstrio-py, the Report class included update_data_source() and get_data_source_name() methods which allowed programmatic remapping of datasource instances on freeform SQL and transaction reports.
These methods are no longer present in the current version (11.6.4.101) and there is no documentation indicating what replaced them or the recommended migration path.
Use case: After migrating objects between projects/environments, freeform SQL reports need their datasource instances updated to point to the correct target environment datasource. This was previously handled with:
reports = list_reports(connection=conn, project_id=project.id)
for report in reports:
if report.ext_type == ExtendedType.CUSTOM_SQL_FREE_FORM:
datasource_name = report.get_data_source_name()
report.update_data_source(
new_datasource_id=new_instance.id,
new_datasource_name=new_instance.name
)
Request: Please either restore these methods, provide equivalent functionality, or document the recommended approach using the current API.