Skip to content

Comments#21

Open
casakawa-jama wants to merge 2 commits into
masterfrom
comments
Open

Comments#21
casakawa-jama wants to merge 2 commits into
masterfrom
comments

Conversation

@casakawa-jama

@casakawa-jama casakawa-jama commented Apr 23, 2020

Copy link
Copy Markdown
Contributor

Implements GET all comments endpoint

Returns: A single comment
"""
resource_path = 'comments/' + str(comment_id)
comments = self.__get_all(resource_path)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be a single entity fetch

baseline_items = self.__get_all(resource_path)
return baseline_items

def get_comments(self):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lets add a boolean param for rootCommentsOnly

JamaClient.__handle_response_status(response)
return response.json()['meta']['id']

def post_comment(self, item_id: int, message: str, in_reply_to: int = None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need param to post to item or project. we should also add a field for comment type

@nmchale-jama nmchale-jama left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See comments for requested updates

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.

2 participants