Skip to content
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

Merged

Conversation

spicquenot
Copy link
Contributor

No description provided.

@spicquenot spicquenot added this to the V 11.0.3 milestone Aug 29, 2022
@spicquenot spicquenot requested a review from ldelille August 29, 2022 16:14
@spicquenot spicquenot self-assigned this Aug 29, 2022
Copy link
Contributor

@ldelille ldelille left a 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):
"""
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@ldelille ldelille merged commit 085eca7 into feature/dss1102-govern-public-api Aug 30, 2022
@ldelille ldelille deleted the perso/spic/govern-public-api branch August 30, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants