Skip to content

Conversation

jorwoods
Copy link
Contributor

@jorwoods jorwoods commented Jul 5, 2025

Closes #1592

Calls a VizPortal API to retrieve the detailed product name, and attaches it to the TSC.Server object which will make determining what requests to build for things like subscriptions easier. Adds this functionality into the pre-existing use_server_version function because:

  1. Users of the library will already know to call that method.
  2. Users already aware that method makes API calls.

If the request errors or if the payload doesn't match the expected format, defaults to assuming TSC is talking with an on-prem Server instance.

Co-authored-by: emeric-dsj

@jacalata jacalata self-assigned this Aug 1, 2025
@jorwoods jorwoods force-pushed the jorwoods/detect_server_cloud branch from 2c3bdfb to 2ca2847 Compare August 1, 2025 13:25
Closes tableau#1592

Calls a VizPortal API to retrieve the detailed product name, and
attaches it to the TSC.Server object which will make determining
what requests to build for things like subscriptions easier. Adds
this functionality into the pre-existing `use_server_version`
function because:

1. Users of the library will already know to call that method.
2. Users already aware that method makes API calls.

If the request errors or if the payload doesn't match the
expected format, defaults to assuming TSC is talking with an
on-prem Server instance.

Co-authored-by: emeric-dsj
@jorwoods jorwoods force-pushed the jorwoods/detect_server_cloud branch from 2ca2847 to 52aa4f9 Compare August 5, 2025 11:56
@jorwoods
Copy link
Contributor Author

jorwoods commented Sep 5, 2025

@jacalata Any thoughts regarding this usage of VizPortal to retrieve the product name? It seems to me for some methods, mainly schedules and refreshes, the payload differs substantially enough as to require being handled separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TYPE 3] [More detailed Server Info]
2 participants