Skip to content

Support for Certified Data Sources in the REST API#189

Merged
t8y8 merged 5 commits intotableau:developmentfrom
t8y8:188-feature-certification
Jun 27, 2017
Merged

Support for Certified Data Sources in the REST API#189
t8y8 merged 5 commits intotableau:developmentfrom
t8y8:188-feature-certification

Conversation

@t8y8
Copy link
Collaborator

@t8y8 t8y8 commented May 11, 2017

No description provided.

@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

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

🚀 🍦

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