Skip to content

update_data_source and get_data_source_name removed from Report class without replacement #252

Description

@cctvaldm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions