Skip to content

Conversation

@TumanyanV
Copy link
Contributor

No description provided.

if not response.ok:
raise AppException(response.json().get("errors", "undefined"))

reporter.log_info("You've successfully created a new subset - {subset name}.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move to usecase


return None

def create_subset(self, team_id, project_id, subset_name, reporter):
Copy link
Contributor

Choose a reason for hiding this comment

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

return created one instead of list

return self._response


class AddItemsToSubsetUseCase(BaseUseCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

please add validation (like in the get_subsets at your discretion)

)

try:
queried_items = query_use_case.execute().data
Copy link
Contributor

Choose a reason for hiding this comment

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

no exception should be thrown there
you can check if there is any error via UseCase.execute().errors

@VaghinakDev VaghinakDev merged commit 03b2952 into friday Sep 22, 2022
@VaghinakDev VaghinakDev deleted the 1304_add_items_to_subset branch September 22, 2022 12:42
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