ramonvermeulen commented on issue #50529: URL: https://github.com/apache/airflow/issues/50529#issuecomment-2939322147
I am also interested in this functionality, and might do an implementation for this in the future. Some places that most likely require slight changes to enable this functionality when I take a glance at the code: https://github.com/apache/airflow/blob/5248f0e81dc21267fbefe42da4fb511a6fdfa032/providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/powerbi.py#L61 And https://github.com/apache/airflow/blob/5248f0e81dc21267fbefe42da4fb511a6fdfa032/providers/microsoft/azure/src/airflow/providers/microsoft/azure/triggers/powerbi.py#L38 And https://github.com/apache/airflow/blob/5248f0e81dc21267fbefe42da4fb511a6fdfa032/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/powerbi.py#L192 Add `request_args` as optional argument, allowing to set any of the [DatasetRefreshRequest](https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset#datasetrefreshrequest) arguments that are passed in the request body. (Possibly Pydantic class, pure json e.g. Python dict is also an option, but less resilient and user-friendly). Then pass data as argument, since `self.run` in the context of `PowerBIHook` is inherited from: https://github.com/apache/airflow/blob/5248f0e81dc21267fbefe42da4fb511a6fdfa032/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py#L398 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
