Commit Graph

85 Commits (b5fed8e65b783e9ce8cfdfd7b06de0e40b896dd1)

Author SHA1 Message Date
Jesús Espino c0bf954d46 Adding count of members to roles list 2014-07-28 18:36:11 +02:00
Anler Hp 33fac4b43a Auto generate slug for projects 2014-07-25 14:19:37 +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
Alejandro Alonso 4e043762bf Fixing small typo 2014-07-22 10:41:07 +02:00
Alejandro Alonso 136eb02cae Validating name on userstory status 2014-07-22 10:12:12 +02:00
David Barragán Merino e0c75c13ea Add project_slug to Membership serializer 2014-07-13 15:31:29 +02:00
David Barragán Merino 9d54f34ad7 Add project_name to Membership serializer 2014-07-13 15:31:15 +02:00
Anler Hp fac84dae7c Store info of user that created an invitation 2014-07-10 14:15:39 +02:00
Anler Hp 558ac79c5d Validate project slug to be unique 2014-07-07 13:47:12 +02:00
Anler Hp 11564a95a6 Return members' photo in project detail api 2014-07-02 14:51:29 +02:00
Anler Hp 95a708dd59 Project api should return all roles 2014-06-27 12:22:41 +02:00
Anler Hp ac5e163dc5 Implement tags using pg arrays 2014-06-18 10:14:29 +02:00
David Barragán Merino f9327c7069 Fix User model: delete first_name, last_name, permisions and groups, add full_name, and github_id, change description to bio 2014-06-12 12:16:36 +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 2333e0e22d Fix unhandled not found exceptions on get starscount on project serializer...
... using annotated stars count value instead of obtaining stars object.
2014-05-28 18:29:10 +02:00
Andrey Antukh fc26190d03 Cosmetic fixes on project serializers. 2014-05-28 18:23:56 +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
Andrey Antukh 2b087678b9 Remove domains. 2014-05-26 17:33:12 +02:00
Jesús Espino 97943ee5ed Removing list_of_milestones from project api 2014-05-22 18:05:26 +02:00
Jesús Espino 7634ab5078 Some optimization on get project from the api 2014-05-19 16:47:59 +02:00
David Barragán Merino e8a2b9fbb3 Refactor attachments 2014-05-09 12:09:49 +02:00
David Barragán Merino 1a9ef0fe04 Remove code of questions and documents 2014-05-09 09:42:14 +02:00
David Barragán Merino b087127d6b Add order to the model Attachment 2014-04-28 16:28:39 +02:00
David Barragán Merino 5daffd2e5d Fix an indentation error 2014-04-28 16:19:05 +02:00
David Barragán Merino 406518823e Added fields description and is_deprecated to Attachment model 2014-04-28 15:44:50 +02:00
Jesús Espino 9cda1b5700 US#45: Testing and adding migrations on project templates 2014-04-25 07:13:17 +02:00
Jesús Espino ee75818a18 US#45: Working the base of the proyect template system 2014-04-25 07:13:17 +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
Jesús Espino f1347f0a0b Bug#189: The membership are sorted by first_name, last_name and username 2014-03-06 10:47:48 +01:00
Jesús Espino 7393ecbf03 some fixes on roles service 2014-02-28 14:26:35 +01:00
Jesús Espino 0779f5f447 US#12: Roles per project 2014-02-18 16:42:49 +01:00
David Barragán Merino 791f8fe592 Add active memberships to the project detail serializer 2014-02-05 14:21:28 +01:00
Jesús Espino 99b9066965 US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00