Commit Graph

110 Commits (ab56f1a772d94daf270b279110ff3b4ef3d061a0)

Author SHA1 Message Date
Alejandro Alonso e7b963a674 Adding member stats to the API 2014-11-25 18:51:57 +01:00
Alejandro Alonso 88d11aba85 Adding API support for project modules configurations 2014-11-11 19:18:18 +01:00
David Barragán Merino 77d03c000f Remove api/v1/projects/XX/tags call (Not necessary) 2014-10-27 18:11:17 +01:00
Alejandro Alonso 8593b82f8b Adding support for extra text in invitation 2014-10-22 12:53:22 +02:00
Andrey Antukh bcd87114cf [backport] Fix wrong handling moveTo parameter on role destroy. 2014-10-15 23:54:12 +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 f27cac8c2a More robust membership bulk validation 2014-09-15 17:59:25 +02:00
Jesús Espino 2b36375b6b Fix bug 738 2014-09-08 12:25:04 +02:00
David Barragán Merino d8e79afdc9 Shorten some long lines 2014-08-14 23:53:27 +02:00
Jesús Espino 2e21db3553 Allowing delete project 2014-08-14 10:08:07 +02:00
Jesús Espino 7b2349b366 Allowing destroy roles with move memberships to other role 2014-08-12 17:44:38 +02:00
Jesús Espino 31d6185dd0 On delete choices set correctly a new choice value for all objects, and a default value for the project 2014-08-12 17:17:46 +02:00
Jesús Espino 3c6310007e Adding destroy mixin for delete choices with a previous move of all the items with this value 2014-08-12 15:12:51 +02:00
Jesús Espino b317c7521e This reverts commit d9246b1ec0. 2014-08-12 09:17:58 +02:00
Jesús Espino 2817b3b120 Adding pre_save to the bulk actions 2014-08-11 20:19:38 +02:00
Jesús Espino d9246b1ec0 Fixed bug #355 and other minor errors 2014-08-11 20:03:37 +02:00
Jesús Espino e1ea8d498c Adding tags-colors to the project api 2014-08-11 11:56:21 +02:00
Anler Hp 55a5abec73 Refactoring bulk members creation 2014-07-31 14:23:31 +02:00
Jesús Espino dd7d478d05 Adding permissions and testing for resend-invitation service 2014-07-31 14:09:09 +02:00
Jesús Espino 883fd81d06 Adding bulk_create membership tests 2014-07-31 13:46:51 +02:00
Anler Hp cb66dc168f Change projectId param to project_id bulk members 2014-07-31 13:04:13 +02:00
Anler Hp 724087e26d Create memberships in bulk on the same project 2014-07-31 12:19:51 +02:00
Jesús Espino e55acc11c2 Adding test for create of membership 2014-07-31 10:45:59 +02:00
David Barragán Merino aae3d12dfa Minor fix in memberships api 2014-07-28 00:42:01 +02:00
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