Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add subscriptions sample #1487

Open
wants to merge 24 commits into
base: development
Choose a base branch
from
Open

Commits on Oct 4, 2024

  1. add subscriptions sample

    jacalata committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    4a3d9a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. feat(exceptions): separate failed signin error (#1478)

    * feat(exceptions): separate failed signin error
    
    Closes #1472
    
    This makes sign in failures their own class of exceptions, while still
    inheriting from NotSignedInException to not break backwards
    compatability for any existing client code. This should allow users
    to get out more specific exceptions more easily on what failed with
    their authentication request.
    
    * fix(error): raise exception when ServerInfo.get fails
    
    If ServerInfoItem.from_response gets invalid XML, raise the error
    immediately instead of suppressing the error and setting an invalid
    version number
    
    * fix(test): add missing test asset
    
    ---------
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b49eac5 View commit details
    Browse the repository at this point in the history
  2. docs: add docstrings to auth objects and endpoints (#1484)

    * docs: add docstrings to auth objects and endpoints
    
    * docs: add parameters and examples to methods
    
    ---------
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    9495fe8 View commit details
    Browse the repository at this point in the history
  3. Set FILESIZE_LIMIT_MB via environment variables (#1466)

    * add TSC_FILESIZE_LIMIT_MB environment variable
    
    * add hard limit for filesize limit at 64MB
    
    * fix formatting
    
    ---------
    
    Co-authored-by: Jac <[email protected]>
    Der-Henning and jacalata authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0af5512 View commit details
    Browse the repository at this point in the history
  4. added PulseMetricDefine cap (#1490)

    Update permissions_item.py
    
    added PulseMetricDefine cap
    
    Co-authored-by: Jac <[email protected]>
    AlbertWangXu and jacalata authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c6dabdd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0efd735 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. docs: docstrings for Server and ServerInfo (#1494)

    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f8728b2 View commit details
    Browse the repository at this point in the history
  2. refactor request_options, add language param (#1481)

    * refactor request_options, add language param
    
    I have refactored the classes to separate options that can be used in querying content, and options that can be used for exporting data. "language" is only available for data exporting.
    jacalata authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    89e1ddf View commit details
    Browse the repository at this point in the history
  3. docs: docstrings for user item and endpoint (#1485)

    * docs: docstrings for user item and endpoint
    
    * docs: add serverresponseerror details
    
    ---------
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1b64987 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. ci: build on python 3.13 (#1492)

    Now that python 3.13 has released, test builds on actual
    3.13 instead of the 3.13-dev build
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9b1b940 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. docs: workbook docstrings (#1488)

    Add detailed docstrings to workbook item and endpoint
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    d880d52 View commit details
    Browse the repository at this point in the history
  2. chore: type hint default permissions endpoints (#1493)

    Resource is not currently an actual type, but an enum-like
    holder for literal values. Added a Union for str types to
    make mypy happy.
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9f59af1 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. fix: handle 0 item response in querysets (#1501)

    * fix: handle 0 item response in querysets
    
    A flaw in the __iter__ logic introduced to handle scenarios
    where a pagination element is not included in the response xml
    resulted in an infinite loop. This PR introduces a few changes
    to protect against this:
    
    1. After running QuerySet._fetch_all(), if the result_cache is
    empty, return instead of performing other comparisons.
    2. Ensure that any non-None total_available is returned from
    the PaginationItem's object.
    3. In _fetch_all, check if there is a PaginationItem that has been
    populated so as to not call the server side endpoint muliple times
    before returning.
    
    * fix: null out PaginationItem._page_number
    
    Tests were failing because the fetch_all method added a second
    check before fetching the next page. This fix will allow the
    next page to be retrieved when used normally
    
    ---------
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    2ff9697 View commit details
    Browse the repository at this point in the history
  2. ci: cache dependencies for faster builds (#1497)

    * ci: cache dependencies for faster builds
    
    * ci: cache for mypy and black
    
    ---------
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    e623511 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Feature: export custom views #999 (#1506)

    Adding custom views PDF & CSV export endpoints
    renoyjohnm authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    c361f8f View commit details
    Browse the repository at this point in the history
  2. chore: remove py2 holdover code (#1496)

    Favor list comprehensions for readability, consistency, and
    performance
    
    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    607fa8b View commit details
    Browse the repository at this point in the history
  3. Update samples for Python 3.x compatibility (#1479)

    * Replace obsolete env package with os.environ
    * Python 2.x to 3.x updates
    * Fix some comments
    * Remove workbook data acceleration; feature was removed in 2022
    * Remove switch_site() example which is confusing in this context of demonstrating login
    bcantoni authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    60dfd4d View commit details
    Browse the repository at this point in the history
  4. chore: support VizqlDataApiAccess capability (#1504)

    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    63ece82 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Remove sample code showing group name encoding (#1486)

    * Remove sample code showing group name encoding
    
    This is no longer needed - ran the sample and verified that it works now.
    jacalata authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    b65d8d4 View commit details
    Browse the repository at this point in the history
  2. Update requests library for CVE CVE-2024-35195 (#1507)

    Update pyproject.toml
    jacalata authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    3e38372 View commit details
    Browse the repository at this point in the history
  3. docs: docstrings for site item and endpoint (#1495)

    Co-authored-by: Jordan Woods <[email protected]>
    jorwoods and jorwoods authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    878d593 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c3ea910 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. add subscriptions sample

    jacalata committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    7195902 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'jac/subscription-sample' of github.com:tableau/server-c…

    …lient-python into jac/subscription-sample
    jacalata committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    7a36873 View commit details
    Browse the repository at this point in the history