Skip to content

D45 docs v06.1 (partial update) #290

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

Merged
merged 3 commits into from
Apr 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions _includes/docs_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<li>
<a href="{{ site.baseurl }}/docs/samples">Samples</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/dev-guide">Developer Guide</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref">API Reference</a>
<ul>
Expand All @@ -40,12 +43,18 @@
<li>
<a href="{{ site.baseurl }}/docs/api-ref#groups">Groups</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#jobs">Jobs</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#projects">Projects</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#requests">Requests</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#schedules">Schedules</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#server">Server</a>
</li>
Expand All @@ -55,6 +64,9 @@
<li>
<a href="{{ site.baseurl }}/docs/api-ref#sort">Sort</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#subscriptions">Subscriptions</a>
</li>
<li>
<a href="{{ site.baseurl }}/docs/api-ref#users">Users</a>
</li>
Expand All @@ -66,8 +78,5 @@
</li>
</ul>
</li>
<li>
<a href="{{ site.baseurl }}/docs/dev-guide">Developer Guide</a>
</li>
</ul>
</div>
2 changes: 1 addition & 1 deletion _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="content .col-xs-12 .col-sm-8 .col-md-9">
<h1>{{ page.title }}</h1>
<div class="edit-container">
<a href="https://github.com/tableau/server-client-python/edit/master/docs/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
<a href="https://github.com/tableau/server-client-python/edit/gh-pages/{{ page.path }}" class="edit-links"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a>
&nbsp;
<a href="https://github.com/tableau/server-client-python/issues" class="edit-links"><span class="glyphicon glyphicon-flag"></span> Submit an issue</a>
</div>
Expand Down
39 changes: 24 additions & 15 deletions docs/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
* TOC
{:toc}

---

## Submit your first patch


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.

### Get the source code and set up your branch

1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)

1. Fork the repository.
Expand All @@ -36,45 +43,47 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
git checkout -b 13-feature-new-stuff
```

1. Code and commit!
### Code and commit

Here's a quick checklist for ensuring a good pull request:
Here's a quick checklist to follow when coding to ensure a good pull request (PR):

- Only touch the minimal amount of files possible while still accomplishing the goal.
- Only touch the fewest number of files possible while still accomplishing the goal.
- Ensure all indentation is done as 4-spaces and your editor is set to unix line endings.
- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle .`
- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle server-client-python test samples`
- Keep commit messages clean and descriptive.
If the PR is accepted it will get 'Squashed' into a single commit before merging, the commit messages will be used to generate the Merge commit message.

1. Add tests.
### Add tests

All of our tests live under the `test/` folder in the repository.
We use `unittest` and the built-in test runner `python setup.py test`.
If a test needs a static file, like a twb/twbx, it should live under `test/assets/`
We use `pytest` and the built-in test runner `python setup.py test`.
If a test needs a static file, like a .twb/.twbx, it should live under `test/assets/`

1. Update the documentation.

Our documentation is written in markdown and built with Jekyll on Github Pages. All of the documentation source files can be found in `docs/docs`.
### Update the documentation

When adding a new feature or improving existing functionality we may ask that you update the documentation along with your code.

If you are just making a PR for documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built in `Edit this file` in the Github UI
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)

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.

1. Submit to your fork.
### Commit changes to your fork and open a PR

1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the 'development' branch.
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.

1. Wait for a review and address any feedback.
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging
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.

1. That's it! When the PR has received :rocket:'s from members of the core team they will merge the PR
1. That's it! When the PR has received ![](https://assets-cdn.github.com/images/icons/emoji/unicode/1f680.png){:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR

---


## Add new features

1. Create an endpoint class for the new feature, following the structure of the other endpoints. Each endpoint usually
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necesssary,
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necessary,
sending the request, and creating the target item object based on the server response.

1. Create an item class for the new feature, following the structure of the other item classes. Each item has properties
Expand Down