simonprydden commented on issue #49670: URL: https://github.com/apache/airflow/issues/49670#issuecomment-2826646281
The tableau SDK, only triggers the tableau server / tableau online to run a refresh job on a data source, the username/password have to be embedded into the data source to work. Could there be multiple data sources with the same name in different folders on tableau? As the SDK need to resolve the name to an id, which could be picking a different data source? Here the link where is resolve the name to id, this will pick the 1st one https://github.com/apache/airflow/blob/1b27c3b5d5d0b20508e5bc174797613aa85064af/providers/tableau/src/airflow/providers/tableau/operators/tableau.py#L138 https://tableau.github.io/server-client-python/docs/api-ref#data-sources ```python # import tableauserverclient as TSC # server = TSC.Server('https://SERVERURL') # sign in ... # get the data source item to update datasource = server.datasources.get_by_id('1a2a3b4b-5c6c-7d8d-9e0e-1f2f3a4a5b6b') # call the refresh method with the data source item refreshed_datasource = server.datasources.refresh(datasource) ```` -- 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]
