Skip to content

Conversation

loechel
Copy link
Contributor

@loechel loechel commented Feb 28, 2017

Update time_entry.rst to fix doc issue #165, the hour param should not be only integer it should be integer or float, I do not see any limitation on that and Redmine takes also floats for the time entries.
Addusted also doctests to test and reflect changes

the hour param should be float, I do not see any limitaion on that and Redmien takes floats for the time entries. 
Addusted also doctests to test and reflect changes
@maxtepkeev maxtepkeev self-requested a review March 1, 2017 13:25
@maxtepkeev maxtepkeev added the docs label Mar 1, 2017
@maxtepkeev
Copy link
Owner

Thanks. Actually Redmine accepts both integer and float for hour parameter. Can you please adjust your pull request for this. After that I will be happy to merge it.

@loechel loechel changed the title Update time_entry.rst to fix doc issue 165 Update time_entry.rst to fix doc issue #165 Mar 1, 2017
@loechel loechel changed the title Update time_entry.rst to fix doc issue #165 Update time_entry.rst to fix doc issue 165 Mar 1, 2017
@loechel
Copy link
Contributor Author

loechel commented Mar 1, 2017

adjusted to fix #165


:param integer issue_id or project_id: (required). The issue id or project id to log time on.
:param integer hours: (required). The number of spent hours.
:param integer or float hours: (required). The number of spent hours.
Copy link
Owner

Choose a reason for hiding this comment

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

Won't work this way, have a look at the definition of spent_on param below

:param integer resource_id: (required). Time entry id.
:param integer issue_id or project_id: (optional). The issue id or project id to log time on.
:param integer hours: (optional). The number of spent hours.
:param integer or float hours: (optional). The number of spent hours.
Copy link
Owner

Choose a reason for hiding this comment

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

Won't work this way, have a look at the definition of spent_on param below

@coveralls
Copy link

coveralls commented Mar 2, 2017

Coverage Status

Changes Unknown when pulling 6775f81 on loechel:patch-1 into ** on maxtepkeev:master**.

@maxtepkeev
Copy link
Owner

Yes, this is good, thank you. Will merge it a little bit later today.

@maxtepkeev maxtepkeev merged commit af97ac7 into maxtepkeev:master Mar 2, 2017
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.

3 participants