nephila / python-taiga

:evergreen_tree: Python module for communicating with the Taiga API
https://python-taiga.readthedocs.io
MIT License
94 stars 41 forks source link

Allow reading/writing default_swimlane in Project (#166) #167

Closed psybers closed 6 months ago

psybers commented 6 months ago

Description

Adds support for reading/writing default_swimlane in Project. Like any other property, you can read it:

print(project.default_swimlane)

or update it:

project.default_swimlane = 5
project.update()

References

Fixes #166

Checklist

Note I did not add any tests specifically, but did add the default_swimlane property to one of the resource JSONs. As far as I can see, there are not tests to see if various parameters are returned when a GET happens. Similarly, there were not docs on reading individual attributes so I did not update those.

coveralls commented 6 months ago

Coverage Status

coverage: 97.964%. remained the same when pulling 6cba46c88a97592fe60f1f381482ee4b0fa040c0 on psybers:feature/166-support-default-swimlane into 09bd0260fa6ebd93b04ed0a98181e6e112488838 on nephila:master.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (09bd026) 96.57% compared to head (6cba46c) 96.57%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #167 +/- ## ======================================= Coverage 96.57% 96.57% ======================================= Files 8 8 Lines 933 933 Branches 69 69 ======================================= Hits 901 901 Misses 19 19 Partials 13 13 ``` | [Flag](https://app.codecov.io/gh/nephila/python-taiga/pull/167/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nephila) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/nephila/python-taiga/pull/167/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nephila) | `96.57% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nephila#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

protoroto commented 6 months ago

@psybers We've just released 1.3.0 version, thanks again for your contribution!