-
Notifications
You must be signed in to change notification settings - Fork 14
1304 add items to subset #503
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
| if not response.ok: | ||
| raise AppException(response.json().get("errors", "undefined")) | ||
|
|
||
| reporter.log_info("You've successfully created a new subset - {subset name}.") |
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.
Please move to usecase
|
|
||
| return None | ||
|
|
||
| def create_subset(self, team_id, project_id, subset_name, reporter): |
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.
return created one instead of list
| return self._response | ||
|
|
||
|
|
||
| class AddItemsToSubsetUseCase(BaseUseCase): |
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.
please add validation (like in the get_subsets at your discretion)
| ) | ||
|
|
||
| try: | ||
| queried_items = query_use_case.execute().data |
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.
no exception should be thrown there
you can check if there is any error via UseCase.execute().errors
No description provided.