Commit Graph

101 Commits (5b39052ca26301c42ee7fac10707646842c117eb)

Author SHA1 Message Date
Alejandro Alonso 05bf0cab45 Adding name validation to task status serializer and issue status serializer 2014-11-11 19:18:18 +01:00
Alejandro Alonso 88d11aba85 Adding API support for project modules configurations 2014-11-11 19:18:18 +01:00
Alejandro Alonso 9016e48ff6 Total milestones must never be null 2014-10-30 09:46:52 +01:00
Alejandro Alonso 8593b82f8b Adding support for extra text in invitation 2014-10-22 12:53:22 +02:00
Andrey Antukh 2d81188a52 Fix wrong assignation of invited_by field on invitation creation process (fix #958)
Additionally it replaces the hack (django < 1.7) of double foreign key
on intermediate table (n2m relation) with trully foreign key (django 1.7
now supports it) adding corresponding migrations for conseve all previous
data.
2014-09-17 13:39:48 +02:00
Jesús Espino 6eacee8ce0 More razonable ux on memberships email showing 2014-09-15 18:14:26 +02:00
Jesús Espino 1578f4352c Fix bug #783: Verify email existence on membership objects 2014-09-03 18:57:33 +02:00
David Barragán Merino 2e141eae0a Fix #830: Remove token of endpoint memberships 2014-09-02 12:50:47 +02:00
Jesús Espino 195bdd2523 Adding colorize tags on server functionality 2014-08-11 11:51:08 +02:00
Jesús Espino 26e462e182 Fixed issue #298: Now permissions on API listings works 2014-08-08 13:43:07 +02:00
Anler Hp 3428a0bd01 Fix validation of fields in partial updates
For some reason validation of fields in partial updates wasn't
triggered. Investigating I found that in the case of partial updates
every field is marked as not-required when constructing the serializer:

rest_framework/fields.py:173
        if self.partial:
            self.required = False

but I couldn't a find where the place (if such a place exists) where the
fields that came in the PATCH request are marked as required again in
order to trigger their validation.

Basically this hotfix does that, mark as required every field present in
the PATCH request so their validation is performed.
2014-08-07 16:30:34 +02:00
Jesús Espino f71102d929 Added i_am_owner to project serializer 2014-08-05 10:29:46 +02:00
Jesús Espino 3bd022e0e8 Adding my_permissions field on project serializer 2014-08-05 10:06:13 +02:00
David Barragán Merino 0bbe0b5697 Bamedized some unnecessary attrs of ProjectDetailSerializer and fix a bug in front 2014-08-04 17:31:04 +02:00
Anler Hp 55a5abec73 Refactoring bulk members creation 2014-07-31 14:23:31 +02:00
Jesús Espino e55acc11c2 Adding test for create of membership 2014-07-31 10:45:59 +02:00
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