-
Notifications
You must be signed in to change notification settings - Fork 436
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
Conversation
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
🚀 🍦 |
@@ -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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍬 🚀 🐰
There was a problem hiding this 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. :)
* Support for Certified Data Sources in the REST API
* Support for Certified Data Sources in the REST API
No description provided.