rest-data-connector
rest-data-connector copied to clipboard
Data does not update when extract is refreshed
Shouldn't data be updated when extract is refreshed?
If I connect to the WDC with GET and https://qrng.anu.edu.au/API/jsonI.php?length=1&type=uint8 I get a random number in the data variable.
But when I refresh the extract in Tableau Desktop the data variable is not updated.
Is this abandoned?
+1 on this issue
@niranjan94 Have you had a chance to look at this?
Hi @sepodele. I took a look into this today.
- Currently RDC does the data loading outside of the connector's
getData
inside the respective components powering the REST-API/Swagger/OpenAPI interfaces. - This is done to make the Export Data UI possible allowing you to customize the data before import into Tableau
- But the downside of this approach is, since the actual request is done only once, any other future calls to
getData
return the stale data. And the Refresh button inside Tableau calls this function - Moving the network request login into
getData
is going to take a fair amount of effort as evengetSchema
needs the data before hand to generate a schema from the data.
Unfortunately, I don't have the bandwidth at the moment to make changes of this level. And can't commit to a specific timeline for this either. But if anyone is willing to take a stab and it and contribute a PR, I'm more than happy to review it and give my comments until it is merge-able.