FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

#72 Add description to the field object by graysonarts · Pull Request #73 · tableau/document-api-python · GitHub

#72 Add description to the field object - #73

Merged
graysonarts merged 2 commits into
tableau:developmentfrom
graysonarts:72-add-desc-to-field-reading
Aug 23, 2016
Merged

#72 Add description to the field object#73
graysonarts merged 2 commits into
tableau:developmentfrom
graysonarts:72-add-desc-to-field-reading

Conversation

Copy link
Copy Markdown
Contributor

Partial implementation of #72 (only implements reading)
Pull in the description if it exists on a <column> tag.
This change returns the entire <desc> tag including all subtags.
e.g.:

<desc>
  <formatted-text>
    <run>Total number of people in a country</run>
  </formatted-text>
</desc>

Pull in the description if it exists on a `<column>` tag.
This change returns the entire `<desc>` tag including all subtags.
e.g.:

```
<desc>
  <formatted-text>
    <run>Total number of people in a country</run>
  </formatted-text>
</desc>
```
Comment thread test/test_datasource.py Outdated
def test_datasource_field_description(self):
actual = self.ds.fields['[a]'].description
self.assertIsNotNone(actual)
contains_string = actual.index(u'muted gray')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
contains_string = u'muted gray' in actual
self.assertTrue(contains_string)

t8y8 commented Aug 22, 2016
edited
Loading

Copy link
Copy Markdown
Contributor

🚀 just a minor nit

graysonarts merged commit 202acea into tableau:development Aug 23, 2016
graysonarts deleted the 72-add-desc-to-field-reading branch August 23, 2016 16:20
graysonarts modified the milestone: 2016.08 release Aug 29, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL