You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev-guide.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,11 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
12
12
13
13
## Submit your first patch
14
14
15
-
16
15
This section will get you started with the basic workflow, describing how to create your own fork of the repository and how to open a pull request (PR) to add your contributions to the **development** branch.
17
16
18
17
### Get the source code and set up your branch
19
18
20
-
1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)
19
+
1. Make sure you have [signed the CLA](https://tableau.github.io/contributing.html)
21
20
22
21
1. Fork the repository.
23
22
@@ -40,9 +39,11 @@ This section will get you started with the basic workflow, describing how to cre
40
39
It is recommended to use the format issue#-type-description (e.g. 13-fix-connection-bug) like so:
41
40
42
41
```shell
43
-
git checkout -b 13-feature-new-stuff
42
+
git checkout -b 13-feature-new-stuff development
44
43
```
45
44
45
+
For documentation changes, see the documentation section below.
46
+
46
47
### Code and commit
47
48
48
49
Here's a quick checklist to follow when coding to ensure a good pull request (PR):
@@ -65,21 +66,20 @@ This section will get you started with the basic workflow, describing how to cre
65
66
66
67
Our documentation is written in markdown and built with Jekyll on GitHub Pages. All of the documentation source files can be found in `/docs` folder in the **gh-pages** branch. The docs are hosted on the following URL: [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python)
67
68
68
-
If you are just making documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built-in `Edit this file` feature right in GitHub (click the pencil icon). If you are viewing one of the pages on [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python), clicking the **Edit this page** link at the top of the page will take you to the same place.
69
+
If you are just making documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built-in `Edit this file` feature right in GitHub (click the pencil icon). If you are viewing one of the pages on [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python), clicking the **Edit this page** link at the top of the page will take you to the same place.
69
70
70
71
### Commit changes to your fork and open a PR
71
72
72
-
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the **development** branch for code changes, or against **gh-pages** for documentation updates.
73
+
1. Make a PR as described [here](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) against the **development** branch for code changes, or against **gh-pages** for documentation updates.
73
74
74
75
1. Wait for a review and address any feedback.
75
76
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging
76
77
the PR after a few days with no response is OK, we'll try and respond with a timeline as soon as we are able.
77
78
78
-
1. That's it! When the PR has received {:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR
79
+
1. That's it! When the PR has received {:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR.
79
80
80
81
---
81
82
82
-
83
83
## Add new features
84
84
85
85
1. Create an endpoint class for the new feature, following the structure of the other endpoints. Each endpoint usually
Copy file name to clipboardExpand all lines: docs/index.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ with server.auth.sign_in(tableau_auth):
83
83
print("\nThere are {} datasources on site: ".format(pagination_item.total_available))
84
84
print([datasource.name for datasource in all_datasources])
85
85
```
86
+
86
87
> `SERVER_URL` is the URL of your Tableau server without subpaths. For local Tableau servers, an example would be: `https://www.MY_SERVER.com`. For Tableau Online, an example would be: `https://10ax.online.tableau.com/`.
87
88
88
-
>`SITENAME` is the subpath of your full site URL (also called `contentURL` in the REST API). `MYSITE` would be the site name of `https://10ax.online.tableau.com/MYSITE`. This parameter can be omitted when signing in to the Default site of a on premise Tableau server.
89
+
>`SITENAME` is the subpath of your full site URL (also called `contentURL` in the REST API). `MYSITE` would be the site name of `https://10ax.online.tableau.com/MYSITE`. This parameter can be omitted when signing in to the Default site of a on premise Tableau server.
Copy file name to clipboardExpand all lines: docs/samples.md
+22-37Lines changed: 22 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,47 +32,32 @@ publish.
32
32
33
33
The following list describes the samples available in the repository:
34
34
35
-
*`create_group.py`Create a user group.
36
-
35
+
*`add_default_permission.py`Adds workbook default permissions for a given project.
36
+
*`create_group.py` Creates a user group.
37
37
*`create_project.py` Creates a project in a site.
38
-
39
-
*`create_schedules.py` Create schedules for extract refreshes and subscriptions.
40
-
41
-
*`download_view_image.py` Downloads an image of a specified view.
42
-
38
+
*`create_schedules.py` Creates schedules for extract refreshes and subscriptions.
39
+
*`download_view_image.py` Downloads an image of a specified view.
43
40
*`explore_datasource.py` Queries datasources, selects a datasource, populates connections for the datasource, then updates the datasource.
44
-
41
+
*`explore_webhooks.py` Explores webhook functions supported by the Server API.
45
42
*`explore_workbook.py` Queries workbooks, selects a workbook, populates the connections and views for a workbook, then updates the workbook.
46
-
47
-
*`export.py` Exports a view as an image, pdf, or csv.
48
-
49
-
*`export_wb.py` Exports a pdf containing all views in a workbook.
50
-
51
-
*`filter_sort_groups.py` Demonstrates selecting user groups as filters.
52
-
53
-
*`initialize_server.py` Sets up an existing server instance with site, workbooks and datasources.
54
-
55
-
*`kill_all_jobs.py` Kills all running jobs.
56
-
57
-
*`list.py` Lists all datasources or workbooks of a site.
58
-
59
-
*`move_workbook_projects.py` Updates the properties of a workbook to move the workbook from one project to another.
60
-
43
+
*`export.py` Exports a view as an image, PDF, or CSV.
44
+
*`export_wb.py` Exports a PDF containing all views in a workbook.
45
+
*`filter_sort_groups.py` Demonstrates filtering and sorting user groups.
46
+
*`filter_sort_projects.py` Demonstrates filtering and sorting projects.
47
+
*`initialize_server.py` Sets up an existing server instance with site, workbooks and datasources.
48
+
*`kill_all_jobs.py` Kills all running jobs.
49
+
*`list.py` Lists all datasources or workbooks of a site.
50
+
*`login.py` Demonstrates logging in to the server with either username/password or personal access token.
51
+
*`move_workbook_projects.py` Moves a workbook from one project to another.
61
52
*`move_workbook_sites.py` Downloads a workbook, stores it in-memory, and uploads it to another site.
62
-
63
-
*`pagination_sample.py` Use the Pager generator to iterate over all the items on the server.
64
-
65
-
*`publish_workbook.py` Publishes a Tableau workbook.
66
-
53
+
*`pagination_sample.py` Uses the Pager generator to iterate over all the items on the server.
54
+
*`publish_datasource.py` Publishes a datasource to a server.
55
+
*`publish_workbook.py` Publishes a workbook to a server.
56
+
*`query_permissions.py` Queries permissions of a given resource.
67
57
*`refresh.py` Refreshes a datasource or workbook.
68
-
69
58
*`refresh_tasks.py` Lists and runs configured tasks on a server.
59
+
*`set_http_options.py` Demonstrates HTTP options for the server and specifically for downloading workbooks.
60
+
*`set_refresh_schedule.py` Sets the schedule to refresh a workbook or datasource.
61
+
*`update_connection.py` Updates and embeds connection credentials of a datasource.
70
62
71
-
*`set_http_options.py` Sets HTTP options for the server and specifically for downloading workbooks.
72
-
73
-
*`set_refresh_schedule.py` Sets the schedule to refresh a datasource or workbook.
74
-
75
-
*`update_connection.py` Updates and embeds connection credentials of a datasource.
76
-
77
-
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources.
78
-
63
+
**Note**: For all of the samples, ensure that your Tableau Server user account has permission to access the resources. Also keep in mind that some example operations (like create group) are not allowed on Tableau Online.
0 commit comments