Closed psybers closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
e175d86
) 96.51% compared to head (ddb862f
) 96.57%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
awesome @psybers thanks a lot
Wait, I think I forgot one thing: setting the default swimlane on a project.
@psybers I'm not very familiar with swimlanes, so I don't really understand the problems of not setting the default swimlane on a project. Will you open another pr to address this, or should we release a new version without it?
I think it is a super small change. There just needs to be one method in Project to set the default swimlane. The API calls /projects/#
with a PATCH and sets a single value, default_swimlane
. This was the hack I put in to get it working on my side (without this PR):
def set_default_swimlane(self, id, **attrs):
attrs.update({"default_swimlane": id})
response = self.requester.patch("/projects/" + str(self.id), payload=attrs)
return response.json()
I can get another PR in later today.
I added PR #167 (referencing issue #166) to fix this issue.
@protoroto Note that it is not a huge problem, if you release without this additional PR they can still read/write/update swimlanes, they just can't set the default. I'm not sure what Taiga does with no default set, but I suspect the UI would just default to the 'first' (based on order) when adding a new user story.
Description
Adds support for swimlanes. This adds two new models:
SwimLane
andSwimLanes
. It updates the API client to supportclient.swimlanes.list()
and adds aproject.swimlanes
attribute. You can add new swimlanes viaproject.add_swimlane('name')
.References
Fixes #162
Checklist
inv lint
changes
file included (see docs)