Commit Graph

136 Commits (3e555de7c4d1d1c511ef7d87da76ac557030e84d)

Author SHA1 Message Date
Anler Hp 3f8af102ab Task #400 - Autolink user to membership if exists
When inviting an user to a project, if the user is already registered,
link her directly to the membership.
2014-07-25 12:57:06 +02:00
Anler Hp 8eed0d03e5 Task #399 - Memberships' resend-invitation handler
In order to resend and invitation email you just POST to detail-url
`memberships-resend-invitation`
2014-07-25 10:50:30 +02:00
Anler Hp 95e636b856 Task #406 - Create members in bulk
Example:

        POST /memberships/bulk-create

        [{"project_id": <project id>,
          "role_id": <role id>,
          "email": <member email>}, ...]
2014-07-24 13:06:50 +02:00
Jesús Espino d97edb464c [HUGE CHANGE] Changed the permissions system 2014-07-24 12:19:06 +02:00
David Barragán Merino 953e1e9f55 Add is_admin to memberships, some filters to the api and some fields to the serializer 2014-07-22 12:28:09 +02:00
David Barragán Merino a9453b97b7 Minor fixes in auth services and invitations API 2014-07-21 14:35:44 +02:00
Anler Hp fac84dae7c Store info of user that created an invitation 2014-07-10 14:15:39 +02:00
Jesús Espino c9706122a2 Removing things from the votes __init__ file 2014-06-05 17:51:52 +02:00
Anler Hp 9923e50603 Generic voting application
The stars application has been removed in favor of a more generic voting
application that works with any model. Starring a project is just a
special case of voting a project.

Usage.

Add a vote:

    votes.add_vote(<model instance>, user)

Remove a vote:

    votes.remove_vote(<model instance>, user)

Get the queryset of users that voted an object:

    votes.get_voters(<model instance>)

Get the number of votes an object has:

    votes.get_votes(<model instance>)

Get the objects of type <model> voted by an user:

    votes.get_voted(user, <model>)

The issues application is already making use of the votes application
through the following urls:

        /api/v1/issues/<id>/upvote      <- url name is "issues-upvote"
        /api/v1/issues/<id>/downvote    <- url name is "issues-downvote"
2014-06-02 12:03:09 +02:00
Andrey Antukh 4a4fb30779 Improved get_queryset methods on project api resources.
Attaching stars count to querysets.
2014-05-28 18:28:29 +02:00
Anler Hp 34f0dd6f76 List fans and starred projects
List project fans:

     /projects/<project id>/fans
     /projects/<project id>/fans/<user id>

List user starred projects:

     /users/<user id>/starred
     /users/<user id>/starred/<project id>

Also a "star" field with the stars count of a project is included in the
project detail and list responses.
2014-05-27 17:24:57 +02:00
Anler Hp b56dfe7cf5 Star/Unstar projects 2014-05-27 14:40:56 +02:00
Andrey Antukh 2b087678b9 Remove domains. 2014-05-26 17:33:12 +02:00
Jesús Espino 9496f4e2fb Two small performance improvements 2014-05-19 20:55:29 +02:00
David Barragán Merino 06170b868f Replace 'ir' for 'is' 2014-05-16 13:45:00 +02:00
David Barragán Merino 1a9ef0fe04 Remove code of questions and documents 2014-05-09 09:42:14 +02:00
Jesús Espino 39e0e2dcf7 Adding tests for create_from_project on ProjectTemplate api 2014-04-28 17:19:12 +02:00
Jesús Espino fb580e90b2 Working create_from_project template list_route 2014-04-28 16:31:03 +02:00
Jesús Espino ee75818a18 US#45: Working the base of the proyect template system 2014-04-25 07:13:17 +02:00
Jesús Espino 71479e415c removed unnecesary line 2014-04-21 18:11:50 +02:00
Andrey Antukh b7df530546 Refactorized auth controllers.
Now controllers only have presentation logic. All domain
logic is moved to separate transactional service functions.
2014-04-21 17:31:40 +02:00
Andrey Antukh deaec99eff Replace license on taiga.projects module. 2014-04-21 16:34:02 +02:00
Andrey Antukh 5aa4a8a784 Unify aggregates and project services. 2014-04-20 04:01:26 +02:00
Andrey Antukh 2ad28a56c7 Convert bulk update services classes to simple functions.
Because we are using python and not java ;)
2014-04-20 01:10:08 +02:00
Jesús Espino b3989298d4 Refactored the bulk_update_order function of project api 2014-03-26 14:00:20 +01:00
Jesús Espino a7b584bdf2 Bug#226: Now owners can be visualized on the users list of a project 2014-03-26 13:28:57 +01:00
Jesús Espino b06db9b603 Bug#226: Now owners has permissions to do restricted actions 2014-03-26 11:02:05 +01:00
David Barragán Merino ac6a40e25b Fix some probles with the web API 2014-03-23 13:33:56 +01:00
David Barragán Merino 686e79ccb5 Merge pull request #32 from taigaio/domains-alias
Domains alias
2014-03-22 19:36:28 +01:00
Andrey Antukh 04fa6f6715 Downgrade to djangorestframework 2.3.13 and backport some usefull routers and decorators. 2014-03-22 18:38:30 +01:00
Andrey Antukh 3d932ba569 Fix domains module imports due to previous module relocation. 2014-03-22 18:09:29 +01:00
Jesús Espino 3343ebec8f Fixed small bug on templates selection 2014-03-03 22:53:22 +01:00
Jesús Espino 518c97d989 Initially working templates on back 2014-03-03 22:48:08 +01:00
Jesús Espino 4c9b7dbcc5 Filtering the projects by active domain 2014-03-03 10:32:42 +01:00
Jesús Espino 0779f5f447 US#12: Roles per project 2014-02-18 16:42:49 +01:00
Jesús Espino 99b9066965 US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00