-
Notifications
You must be signed in to change notification settings - Fork 26
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
govern public api fixes #261
govern public api fixes #261
Conversation
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.
few comments and lgtm, I will update integration test with these changes
@@ -203,6 +206,10 @@ def __init__(self, blueprint_ids=None): | |||
self.blueprint_ids = blueprint_ids if blueprint_ids is not None else [] | |||
|
|||
def build(self): | |||
""" |
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.
Should this method be documented ? The user should not use it in theory
to create blueprint version ids from blueprint ids and versions ids. | ||
""" | ||
super(GovernArtifactSearchSourceBlueprintVersions, self).__init__(search_source_type="blueprintVersions") | ||
self.blueprint_version_ids = blueprint_version_ids if blueprint_version_ids is not None else [] | ||
|
||
def build(self): | ||
""" | ||
:returns: the search source definition as a dict | ||
:rtype: dict |
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.
ditto
@@ -239,17 +250,20 @@ def __init__(self, artifact_ids=None): | |||
self.artifact_ids = artifact_ids if artifact_ids is not None else [] | |||
|
|||
def build(self): | |||
""" | |||
:returns: the search source definition as a dict |
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.
ditto
""" | ||
super(GovernArtifactSearchSortName, self).__init__(artifact_search_sort_type="name", direction=direction) | ||
|
||
def build(self): | ||
""" | ||
:returns: the search sort definition as a dict |
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.
ditto
""" | ||
super(GovernArtifactSearchSortWorkflow, self).__init__(artifact_search_sort_type="workflow", direction=direction) | ||
|
||
def build(self): | ||
""" | ||
:returns: the search sort definition as a dict |
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.
ditto
No description provided.