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

feature/161 - Add duplicate() method to Project (#161) #163

Closed psybers closed 6 months ago

psybers commented 6 months ago

Description

This PR adds a duplicate() method to the Project model, which will duplicate the project on Taiga when called. This causes Taiga to make a new project using the newly specified name/description/is_private/users, but copying the original project's settings, including color names, priorities, etc. It does not duplicate any user stories or tasks.

References

Fix #161

Checklist

codecov[bot] commented 6 months ago

Codecov Report

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

Comparison is base (380660e) 96.49% compared to head (df5c3ab) 96.51%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #163 +/- ## ========================================== + Coverage 96.49% 96.51% +0.01% ========================================== Files 8 8 Lines 914 918 +4 Branches 69 69 ========================================== + Hits 882 886 +4 Misses 19 19 Partials 13 13 ``` | [Flag](https://app.codecov.io/gh/nephila/python-taiga/pull/163/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/163/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nephila) | `96.51% <100.00%> (+0.01%)` | :arrow_up: | 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.

coveralls commented 6 months ago

Coverage Status

coverage: 97.93% (+0.009%) from 97.921% when pulling df5c3abd1b54991b87fdf20f27aef6730d766637 on psybers:feature/161-add-duplicate into 380660ea50439f1b30a2fd3750a4783ef8c179ab on nephila:master.

protoroto commented 6 months ago

@psybers Thank you very much for this! It looks good, I'll have @yakky have a look at it after Christmas to merge and release a new version!

yakky commented 6 months ago

@psybers awesome, thanks a lot :+1: