Commit Graph

865 Commits (c4a504dc90abfd00d3f2cb9481c6adecf01ed697)

Author SHA1 Message Date
Andrey Antukh c4a504dc90 Remove old notification mixin. 2014-06-12 00:12:15 +02:00
Andrey Antukh 3083b7f232 Notifications & History: modify all related models and resources for work with new api. 2014-06-12 00:12:15 +02:00
Andrey Antukh 9ee7335ff0 Notifications: add test for notifications app. 2014-06-12 00:12:15 +02:00
Andrey Antukh cfce68d586 Notifications: move all notificatications related emails to notifcations app. 2014-06-12 00:12:15 +02:00
Andrey Antukh 1507ee43f2 Notifications: new notification application. 2014-06-12 00:12:15 +02:00
Andrey Antukh a4e8bcbe12 History: add tests. 2014-06-12 00:12:15 +02:00
Andrey Antukh cd3cb7db62 History: improvements on history app
- Handle deleted objects.
- Add project to freezers.
- Make values implementation optional.
- Split choices to separated module.
- Add own mixin.
2014-06-12 00:12:15 +02:00
Andrey Antukh 38cd770c9b Cosmetic fixes on references services and user form. 2014-06-12 00:12:15 +02:00
Andrey Antukh 9c5c9bc094 Minor fix on project creation. 2014-06-12 00:12:15 +02:00
Andrey Antukh 671cc0fcbc Increment djmail version to 0.6 2014-06-12 00:12:15 +02:00
Andrey Antukh e3b07c4999 Add helper import on __init__ of mdrender. 2014-06-12 00:12:15 +02:00
Andrey Antukh 88608144bc Add some utils function for text management for query. 2014-06-12 00:12:15 +02:00
Andrey Antukh 39bb7bcfcd Add additional factories for tests. 2014-06-12 00:12:15 +02:00
David Barragán Merino 61c20354bf Update travis.yml (add -v option to py.test command) 2014-06-11 20:24:37 +02:00
David Barragán Merino 102f376854 Fix import 2014-06-06 09:16:00 +02:00
Jesús Espino c9706122a2 Removing things from the votes __init__ file 2014-06-05 17:51:52 +02:00
Jesús Espino 813239c601 Now emails are sended with wiki rendering information 2014-06-05 12:32:52 +02:00
Jesús Espino 236d037770 Fixed problem with verbose_name template function registration 2014-06-05 12:31:56 +02:00
Jesús Espino a16143d915 Adding django_jinja to installed apps 2014-06-05 11:43:09 +02:00
Jesús Espino fcf8f5d3ca Fixed typo 2014-06-05 11:43:09 +02:00
David Barragán Merino 28c408ce17 Update dev requirements 2014-06-05 10:36:22 +02:00
David Barragán Merino 68a79a4b1e Update requirements and fix some errors 2014-06-05 10:20:25 +02:00
Jesús Espino ae52d43a6a Adding plpython to travis install process 2014-06-05 10:30:47 +02:00
David Barragán Merino a6e4a7ef33 Merge pull request #45 from taigaio/timeline
Timeline service implementation
2014-06-05 10:28:49 +02:00
Jesús Espino 262776043f Timeline service implementation 2014-06-05 10:08:42 +02:00
David Barragán Merino 613f84b31a Update requirements 2014-06-04 20:22:24 +02:00
Jesús Espino 165b247c6d splitted tests of mdrender in integration and unit tests 2014-06-04 17:27:01 +02:00
Andrey Antukh 1a1114a8dd Merge pull request #44 from taigaio/votes
Generic voting application
2014-06-03 09:53:57 +02:00
Anler Hp aa7ca6e3fc Reconnect disconnected signals in integration tests 2014-06-02 16:57:48 +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 baeab00e28 Fix stars tests. 2014-05-28 18:30:41 +02:00
Andrey Antukh ea683056a7 Remove unnecesary Response usage on wiki page api resource. 2014-05-28 18:30: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 4a4fb30779 Improved get_queryset methods on project api resources.
Attaching stars count to querysets.
2014-05-28 18:28:29 +02:00
Andrey Antukh 1531dcea02 Cosmetic changes on stars __init__.py file. 2014-05-28 18:27:20 +02:00
Andrey Antukh 64185e6890 Add method for attach stars count to projects queryset. 2014-05-28 18:26:53 +02:00
Andrey Antukh 21e5280eec Improve queries and transaction management for better testability. 2014-05-28 18:26:05 +02:00
Andrey Antukh 61aec4676d Remove global project import from stars service. 2014-05-28 18:25:12 +02:00
Andrey Antukh fc26190d03 Cosmetic fixes on project serializers. 2014-05-28 18:23:56 +02:00
Andrey Antukh 0644ffa5cd Minor changes/improvements on exceptions tree. 2014-05-28 18:23:11 +02:00
Andrey Antukh fa42a08da6 Remove unnecesary userstory model import from project models. 2014-05-28 12:55:44 +02:00
Andrey Antukh a998ac0660 Remove global imports from test factories. 2014-05-28 12:55:33 +02:00
Andrey Antukh cefbcda91d Load tags sql on connection is created on tests. 2014-05-28 12:51:44 +02:00
Andrey Antukh dc6e510628 Minor fixes on tags sql file. 2014-05-28 12:51:34 +02:00
Andrey Antukh 051f9d6966 Remove wrong usage of BASE_DIR on settings. 2014-05-28 12:51:19 +02:00
Jesús Espino 13ec5c3d0b Merge pull request #43 from taigaio/stars
Star projects
2014-05-27 18:05:17 +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
Anler Hp a4bb6e7eee Moving neighbors tests to tests/integration 2014-05-27 13:30:02 +02:00