8000 Support for Certified Data Sources in the REST API by t8y8 · Pull Request #189 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Support for Certified Data Sources in the REST API #189

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 5 commits into from
Jun 27, 2017

Conversation

t8y8
Copy link
Collaborator
@t8y8 t8y8 commented May 11, 2017

No description provided.

all_datasource_items.append(datasource_item)
return all_datasource_items

@staticmethod
def _parse_element(datasource_xml):
id = datasource_xml.get('id', None)
blorp = datasource_xml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops, debug line

name = datasource_xml.get('name', None)
datasource_type = datasource_xml.get('type', None)
content_url = datasource_xml.get('contentUrl', None)
created_at = parse_datetime(datasource_xml.get('createdAt', None))
updated_at = parse_datetime(datasource_xml.get('updatedAt', None))
certification_note = datasource_xml.get('certificationNote', None)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you have a certification note without being certified? Just curious?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Technically yes. The UI may choose to not display them (yet) but it's not expressly forbidden. We may also add UI support for this anywho.

@graysonarts
Copy link
Contributor

🚀 🍦

@@ -65,6 +65,13 @@ def update_req(self, datasource_item):
if datasource_item.owner_id:
owner_element = ET.SubElement(datasource_element, 'owner')
owner_element.attrib['id'] = datasource_item.owner_id

if datasource_item.certified:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wait, there's a bug.

I think this won't unset

#rusty

Copy link
Contributor
@graysonarts graysonarts left a comment

Choose a reason for hiding this comment

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

🍬 🚀 🐰

Copy link
Contributor
@LGraber LGraber left a comment

Choose a reason for hiding this comment

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

rocket. I can't wait to get some generated code for the xml parsing. :)

@t8y8 t8y8 merged commit b2b8593 into tableau:development Jun 27, 2017
@t8y8 t8y8 deleted the 188-feature-certification branch June 27, 2017 17:21
t8y8 added a commit to t8y8/server-client-python that referenced this pull request Jun 28, 2017
* Support for Certified Data Sources in the REST API
t8y8 added a commit to t8y8/server-client-python that referenced this pull request Jun 28, 2017
* Support for Certified Data Sources in the REST API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0