Skip to content

project: change get_timeline() item_count param #146

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

Merged
merged 1 commit into from
Apr 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dataikuapi/dss/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ def get_interest(self):
"""
return self.client._perform_json("GET","/projects/%s/interest" % self.project_key)

def get_timeline(self, itemCount=100):
def get_timeline(self, item_count=100):
"""
Get the timeline of this project. The timeline consists of information about the creation of this project
(by whom, and when), the last modification of this project (by whom and when), a list of contributors,
and a list of modifications. This list of modifications contains a maximum of itemCount elements (default: 100).
If itemCount is greater than the real number of modification, itemCount is adjusted.
and a list of modifications. This list of modifications contains a maximum of `item_count` elements (default: 100).
If `item_count` is greater than the real number of modification, `item_count` is adjusted.

:return: a dict object containing a timeline where the top-level fields are :
- allContributors: all contributors who have been involve in this project
Expand All @@ -277,7 +277,7 @@ def get_timeline(self, itemCount=100):
:rtype: dict
"""
return self.client._perform_json("GET", "/projects/%s/timeline" % self.project_key, params = {
"itemCount": itemCount
"itemCount": item_count
})

########################################################
Expand Down