Commit Graph

42 Commits (6e13e774d6c1ea35ed1725934413a29b56ad08c7)

Author SHA1 Message Date
David Barragán Merino 6e13e774d6 Upgrade django-pgjson to 0.2.1 2015-02-09 16:11:31 +01:00
Alejandro Alonso da156401b0 Adding name to webhooks and logs_counter to webhooks API 2015-01-22 12:53:01 +01:00
Jesús Espino 47107eb079 US #1678: Add webhooks to the backend 2015-01-14 16:04:22 +01:00
Xavier Julián 4fe73aef52 US #1680: Emails redesign 2015-01-12 18:04:41 +01:00
Alejandro Alonso 55ac4ce664 Fixing bug when deleting comments by project owners 2014-12-02 13:00:26 +01:00
Alejandro Alonso 0fd7142802 US#90 Github webhooks integration 2014-11-11 19:18:18 +01:00
Andrey Antukh bc95282cfd Add proper validation of watchers for issues, tasks and userstories serializers. 2014-10-23 20:45:11 +02:00
Andrey Antukh 81591a6294 [backport] Fix wrong handling patch request with user_stories list on milestone resource. (fix #1163) 2014-10-02 04:19:24 +02:00
David Barragán Merino 7a88df1e08 Change django.db.models.loading.get_model (deprecated in django 1.7) to django.apps.apps.get_model 2014-09-25 11:32:50 +02:00
Andrey Antukh 6224a9d4ce Improve attachments factories and fix tests related to storage refactor. 2014-09-17 15:05:10 +02:00
Andrey Antukh 3061425a67 Improvements and fixes on tests. 2014-09-16 10:48:43 +02:00
Andrey Antukh c1b011fa99 Refactor test factories to new factoryboy version (more compatible with django 1.7) 2014-09-16 10:48:42 +02:00
Jesús Espino 6d78c79018 Adding import api 2014-09-08 12:33:32 +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 47a28cc3dc Create membership for user creating project <=> role exists 2014-08-07 16:30:28 +02:00
Jesús Espino dd7d478d05 Adding permissions and testing for resend-invitation service 2014-07-31 14:09:09 +02:00
Anler Hp 2ca0039852 Fixing commits related to Task #439 2014-07-30 11:43:38 +02:00
Anler Hp 0b02cc4523 Task #422 - Create issues in bulk 2014-07-29 13:43:57 +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
Jesús Espino d97edb464c [HUGE CHANGE] Changed the permissions system 2014-07-24 12:19:06 +02:00
Anler Hp 75cecbed70 Task #349 - API fails when DELETE-ing an userstory
Link - https://kaleidos.taiga.io/#/project/taiga/tasks/349
2014-07-23 11:21:52 +02:00
David Barragán Merino 2e6ddbf98f Merge pull request #55 from taigaio/attachments
Check permissions when accessing attachments
2014-07-22 23:32:54 +02:00
Jesús Espino d32a9562be A lot of refactoring on close us code signals code 2014-07-21 21:23:40 +02:00
Anler Hp 52f476fb34 Check permissions when accessing attachments
Attachment files dispatching is now done through `RawAttachmentView`
view that checks for appropiate permissions.

When using the development server this view just redirects to the real
media path of the file.

When using the production server the special redirection header
`X-Accel-Redirect` is used instead to improve efficiency by instructing
the server to dispatch the file instead of django, but you also need the
following configuration (Nginx):

location /attachment-files {
    internal;
    alias /path/to/taiga/media/attachment-files;
}

It's recommended to also restrict the direct access from outside to the
`attachment-files` directory by using some configuration like this:

location /media/attachment-files {
    deny all;
}
2014-07-04 12:15:48 +02:00
Anler Hp cfc35d5ed2 Required estimated-start/end dates for milestones 2014-06-27 14:07:50 +02:00
Anler Hp c89c6e7c31 Merge pull request #51 from taigaio/tags
Tags using pg arrays
2014-06-23 11:34:02 +02:00
David Barragán Merino 767024d0d5 Add more licenses agreements to the tests module 2014-06-19 22:46:31 +02:00
Anler Hp df8a7fb73c create_membership factory function 2014-06-18 14:13:20 +02:00
Anler Hp ac5e163dc5 Implement tags using pg arrays 2014-06-18 10:14:29 +02:00
David Barragán Merino d6546dc518 Refactor searches module 2014-06-17 15:10:00 +02:00
Andrey Antukh 39bb7bcfcd Add additional factories for tests. 2014-06-12 00:12:15 +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
Anler Hp fcf4747e93 Service for adding, removing and listing votes 2014-05-30 12:43:34 +02:00
Andrey Antukh a998ac0660 Remove global imports from test factories. 2014-05-28 12:55:33 +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
Anler Hp 8003abbbef Moving neighbors logic into standalone module 2014-05-22 18:34:03 +02:00
Andrey Antukh 1f1c313ca6 Add tests for project automatic sequence create/delete operations. 2014-05-21 12:38:29 +02:00
David Barragán Merino d786a1ba95 US #73: Create a user schemaless storage system 2014-05-14 14:01:31 +02:00
ikame ac0345047b Some integration tests for auth api. 2014-04-30 09:07:05 +02:00
ikame d22cbb6538 New tests skeleton and examples using pytest
Instructions (from the project root):
1. pip install -r requirements-devel.txt
2. py.test
2014-04-29 14:02:46 +02:00