8000 Merge pull request #422 from tableau/development · rshide/server-client-python@f6d4d35 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6d4d35

Browse files
author
Russell Hay
authored
Merge pull request tableau#422 from tableau/development
Release 0.8
2 parents b7b544e + 8fd8d78 commit f6d4d35

35 files changed

+714
-64
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 0.8 (8 Apr 2019)
2+
3+
* Added Max Age to download view image request (#360)
4+
* Added Materialized Views (#378, #394, #396)
5+
* Added PDF export of Workbook (#376)
6+
* Added Support User Role (#392)
7+
* Added Flows (#403)
8+
* Updated Pager to handle un-paged results (#322)
9+
* Fixed checked upload (#309, #319, #326, #329)
10+
* Fixed embed_password field on publish (#416)
11+
12+
113
## 0.7 (2 Jul 2018)
214

315
* Added cancel job (#299)

CONTRIBUTORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ The following people have contributed to this project to make it possible, and w
1616
* [Jim Morris](https://github.com/jimbodriven)
1717
* [BingoDinkus](https://github.com/BingoDinkus)
1818
* [Sergey Sotnichenko](https://github.com/sotnich)
19+
* [Bruce Zhang](https://github.com/baixin137)
20+
* [Bumsoo Kim](https://github.com/bskim45)
21+
* [daniel1608](https://github.com/daniel1608)
1922

2023
## Core Team
2124

@@ -27,3 +30,5 @@ The following people have contributed to this project to make it possible, and w
2730
* [Jared Dominguez](https://github.com/jdomingu)
2831
* [Jackson Huang](https://github.com/jz-huang)
2932
* [Brendan Lee](https://github.com/lbrendanl)
33+
* [Ang Gao](https://github.com/gaoang2148)
34+
* [Priya R](https://github.com/preguraman)

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ anyone can add to an issue:
4848
## Fixes, Implementations, and Documentation
4949

5050
For all other things, please submit a PR that includes the fix, documentation, or new code that you are trying to contribute. More information on
51-
creating a PR can be found in the [Development Guide](docs/docs/dev-guide.md)
51+
creating a PR can be found in the [Development Guide](https://tableau.github.io/server-client-python/docs/dev-guide)
5252

5353
If the feature is complex or has multiple solutions that could be equally appropriate approaches, it would be helpful to file an issue to discuss the
5454
design trade-offs of each solution before implementing, to allow us to collectively arrive at the best solution, which most likely exists in the middle

samples/download_view_image.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def main():
2525
parser.add_argument('--view-name', '-v', required=True,
2626
help='name of view to download an image of')
2727
parser.add_argument('--filepath', '-f', required=True, help='filepath to save the image returned')
28+
parser.add_argument('--maxage', '-m', required=False, help='max age of the image in the cache in minutes.')
2829
parser.add_argument('--logging-level', '-l', choices=['debug', 'info', 'error'], default='error',
2930
help='desired logging level (set to error by default)')
3031

@@ -55,8 +56,12 @@ def main():
5556
raise LookupError("View with the specified name was not found.")
5657
view_item = all_views[0]
5758

58-
# Step 3: Query the image endpoint and save the image to the specified location
59-
image_req_option = TSC.ImageRequestOptions(imageresolution=TSC.ImageRequestOptions.Resolution.High)
59+
max_age = args.maxage
60+
if not max_age:
61+
max_age = 1
62+
63+
image_req_option = TSC.ImageRequestOptions(imageresolution=TSC.ImageRequestOptions.Resolution.High,
64+
maxage=max_age)
6065
server.views.populate_image(view_item, image_req_option)
6166

6267
with open(args.filepath, "wb") as image_file:

0 commit comments

Comments
 (0)
0