Commit Graph

320 Commits (stable)

Author SHA1 Message Date
David Barragán Merino cc8e5f39b7 Change membership.is_owner to membership.is_admin 2016-02-17 19:21:13 +01:00
Alejandro Alonso 26d10ca7a3 Fixing attachments with long names 2016-02-17 10:55:03 +01:00
Alejandro Alonso 6553ad34e4 Fixing deadlock and condition race errrors 2016-02-15 15:18:27 +01:00
Amine Zyad c22036f4c6 Removed 'load url from future' for compatibility with Django 1.9 2016-02-13 21:52:22 +00:00
David Barragán Merino 7b7548b47d Update django to 1.9 and the rest of requirements 2016-02-11 19:35:29 +01:00
Alejandro Alonso 02013f6222 Detecting invalid values when filtering by watchers 2016-02-10 20:30:56 +01:00
Jesús Espino e43ea107ed Remove rest framework deprecated decorators 2016-02-10 19:45:34 +01:00
Alejandro Alonso 57cf32c56d Adding transfer_token to project model 2016-02-04 19:52:30 +01:00
Alejandro Alonso 5b39052ca2 Blocking projects: updating project model and related viewsets 2016-02-02 16:44:47 +01:00
David Barragán Merino 2a970c0205 Fix some license messages 2016-01-21 18:44:18 +01:00
David Barragán Merino ab56f1a772 Task #3526: Filter projects by text query (order by ranking name > tags > description 2016-01-21 18:44:18 +01:00
David Barragán Merino 0b7fe02a6f Task #3515: Add logo field to project model 2016-01-21 18:44:18 +01:00
Alejandro Alonso 50e00b6d45 Task #3517 #3516: Order by fans and activity (last week/moth/year/all time) 2016-01-21 18:44:18 +01:00
Andrey Antukh 11b0051e1e Add alejandro.alonso copyright preamble to js sources. 2016-01-08 16:11:03 +02:00
Andrey Antukh fe30371e2c Add alejandro.alonso copyright preamble to main python sources. 2016-01-08 16:06:57 +02:00
Andrey Antukh 028e45fa5e Add proper drf license preamble on related source files. 2016-01-08 15:58:30 +02:00
Andrey Antukh 2ad5fda864 Fix my email on copyright preamble on main source files. 2016-01-08 15:58:24 +02:00
Alejandro Alonso 4ea2262400 Issue #3492: Search fails if using quotating marks 2016-01-04 13:58:59 +01:00
David Barragán Merino f992d372df Update license message 2016-01-04 08:51:06 +01:00
Xavier Julián 7e23b5978f Logo color is blurry 2015-12-23 09:11:58 +01:00
David Barragán Merino fefd0b06d3 Add 'x-lazy-pagination' to COORS_ALLOWED_HEADERS 2015-12-11 13:13:29 +01:00
Alejandro Alonso 067ce86478 Improving neighbor calculation 2015-12-11 11:48:43 +01:00
David Barragán Merino 97edb6e3fb Merge pull request #536 from taigaio/task/3538/add_tribe_git_field_to_user_stories
Task #3538: Add tribe_gig PickledObjectField attribute to UserStory model
2015-12-09 12:07:45 +01:00
Alejandro Alonso e977c82427 Improving API performance 2015-12-02 19:55:25 +01:00
David Barragán Merino fd12f84969 Task #3538: Add tribe_gig PickledObjectField attribute to UserStory model 2015-11-30 14:56:00 +01:00
David Barragán Merino cd45aa5cbf Fix some imports mistakes 2015-11-18 17:33:45 +01:00
Alejandro Alonso 448cc19185 Fixing ts_query function 2015-11-04 09:04:07 +01:00
Alejandro Alonso bd83aa64ea Issue 3427: fix failing searchs containing : 2015-11-03 10:05:55 +01:00
David Barragán Merino 9b56a414f0 Fix dates in license messages. Change 2014 to 2014-2015 2015-10-13 11:27:15 +02:00
David Barragán Merino a7a6bd3a1c Migrate to django 1.8 and make taiga compatible with python 3.5 2015-10-13 11:27:14 +02:00
Alejandro Alonso cde9b77c0d Improving memory usage on project export 2015-09-24 20:36:04 +02:00
Alejandro Alonso 275b2950ef Refactoring search system 2015-09-16 11:45:34 +02:00
Alejandro Alonso bd09e23b61 External applications support 2015-09-09 09:39:54 +02:00
David Barragán Merino 70901fd28b Remove 'taiga-info-has-closed-milestones' from userstories resource and added 'taiga-info-total-opened-milestones' and 'taiga-info-total-closed-milestones' to milestones resource 2015-09-01 19:11:54 +02:00
David Barragán Merino 1b5775e15e Add 'taiga-info has-closed-milestones' to Access-Control-Expose-Headers 2015-09-01 11:02:47 +02:00
Alejandro Alonso f3641f5cfb Refactoring and improving watchers 2015-08-26 15:10:13 +02:00
David Barragán Merino 21153ea1aa Improve userstories/filters_data and issues/filter_data 2015-07-28 08:21:08 +02:00
Alejandro Alonso a909171eb7 Json export generation in a more efficient way 2015-07-23 10:20:16 +02:00
Alejandro Alonso 68181b8c5f Fixing I18NJsonField 2015-06-23 10:20:09 +02:00
David Barragán Merino 5d3f3fb9b0 Add X-Pagination-Next y X-Pagination-Prev to Access-Control-Expose-Headers response header 2015-06-16 14:22:55 +02:00
Xavier Julián 56aca11a66 Fix Background color and font color in Windows Lotus 2015-06-10 12:30:34 +02:00
Alejandro Alonso acbd253420 Adding multiple status filtering to userstories 2015-06-09 15:06:51 +02:00
Alejandro Alonso a77f21776f Fixing I18NJsonField for a not covered scenario with None data 2015-06-09 10:33:57 +02:00
Xavier Julián d5e8b2ffd5 Fixed fields diff broken layout 2015-06-05 14:34:53 +02:00
Xavier Julián 30ef152202 Fix gray color in emails 2015-06-05 13:57:50 +02:00
David Barragán Merino 29b3de6101 Revert "Temporary disable public projects on listings"
This reverts commit 5a45db23fc.
2015-05-25 15:24:06 +02:00
Alejandro Alonso 3052ab3687 Fixing i18n json serializer 2015-05-21 13:10:15 +02:00
Alejandro Alonso 57b25f13f1 Fixing users API 2015-05-21 12:27:32 +02:00
David Barragán Merino 2cb5e9df19 [i18n] Localized emails 2015-05-14 15:04:35 +02:00
David Barragán Merino b23981f4be [i18n] Minor fixes in translations 2015-05-05 12:10:04 +02:00
Alejandro Alonso 9ef2f709c7 i18n for default taiga names 2015-04-15 07:26:24 +02:00
David Barragán Merino 910d71eefc Add code of django-restframwork to taiga 2015-04-14 11:15:15 +02:00
David Barragán Merino d3fade9565 Add gettext to translatable strings 2015-04-09 15:25:40 +02:00
David Barragán Merino 2d960c7a5d i18n in emails 2015-04-09 15:24:43 +02:00
Jesús Espino 5a45db23fc Temporary disable public projects on listings 2015-03-18 11:35:06 +01:00
Jesús Espino be4d0c6d06 Fix MembersFilter of Users api, now filter correctly and filter by is_active 2015-03-12 10:29:32 +01:00
Jesús Espino ed01cbd3a7 BUG#2390 Allowing to filter projects by membership 2015-03-11 17:04:54 +01:00
Alejandro Alonso 44e6f7c42d Updating anon and public permissions when project is public 2015-03-09 12:48:14 +01:00
Alejandro Alonso 79e9682531 Updating permissions for supporting public projects 2015-03-09 12:48:14 +01:00
David Barragán Merino e8078aaaa5 US #55: Custom fields - Create empty CustomAttributesValues when added USs, Tasks and Issues 2015-03-04 12:59:28 +01:00
Jesús Espino 47c338324e Some flake8 fixes 2015-02-24 19:55:02 +01:00
Jesús Espino 871d9d6963 SmallFix: Add necesary imports 2015-02-18 09:54:50 +01:00
David Barragán Merino 60ab6127aa Refactor day: Use taiga.base.response instead rest_framework.response 2015-02-17 12:25:37 +01:00
David Barragán Merino 5196f1c25d Refactor day: Move RoleViewSet from taiga.projects to taiga.users 2015-02-16 20:04:41 +01:00
Jesús Espino c517a8519c Allow auth plugins 2015-02-11 09:36:56 +01:00
Alejandro Alonso 7558bbee79 Fixing problem when PATCH in a resource using prefetch_related 2015-02-03 09:54:51 +01:00
David Barragán Merino 268b6a7ad4 Issue #1886: Bad request when use project.slug instead project.id in API calls 2015-02-02 18:05:21 +01:00
David Barragán Merino 006dbd7278 Fix tests 2015-01-26 09:44:57 +01:00
David Barragán Merino 0d591dcadc Translate and fix all emails 2015-01-26 09:44:57 +01:00
Jesús Espino 47107eb079 US #1678: Add webhooks to the backend 2015-01-14 16:04:22 +01:00
Jesús Espino a8afd77f89 Add import/export functionality to the API 2015-01-13 13:43:09 +01:00
Jesús Espino 042d2871d6 Add test_emails script to send all emails to test it 2015-01-12 18:07:01 +01:00
Xavier Julián 4fe73aef52 US #1680: Emails redesign 2015-01-12 18:04:41 +01:00
Xavier Julián a42980282d Email images 2015-01-09 12:50:54 +01:00
Alejandro Alonso d985e93be0 Splitting tags if containing , 2014-12-23 17:34:34 +01:00
David Barragán Merino ce88a60073 tg-1783 #ready-for-test - Fix wiki links compatibility 2014-12-10 21:02:43 +01:00
Alejandro 354134e157 Merge pull request #184 from taigaio/us/1009/pgarray-query-refactoring
Refactor of tags queries using djorm-pgarray queries
2014-12-03 12:06:17 +01:00
David Barragán Merino 15ced7c44f tg-1736 #closed -> 404 instead 500 when call api/v1/projects/slug instead api/v1/project/id 2014-12-03 11:57:20 +01:00
Jesús Espino af1450ccf1 Refactor of tags queries using djorm-pgarray queries 2014-12-03 11:53:23 +01:00
David Barragán Merino 53266a512f US #1313: Setup throttling policy 2014-11-28 10:21:09 +01:00
Jesús Espino 72730fdb73 Fixed failing tests 2014-11-25 18:51:58 +01:00
Jesús Espino 63cd1dcac6 Refactoring the filtering by permissions with django-1.7 djorm-pgarray features 2014-11-25 18:51:58 +01:00
Alejandro Alonso e8ae33a3a7 [backport] Fix limit case for non existant neighbors 2014-11-17 13:53:44 +01:00
Alejandro Alonso 6513b866ac Fixing neighbors hell 2014-11-15 22:42:27 +01:00
Alejandro Alonso 0fd7142802 US#90 Github webhooks integration 2014-11-11 19:18:18 +01:00
David Barragán Merino c20c50f7be Minor fixes to detect invalid configuration to enable github login service 2014-11-05 13:17:05 +01:00
Alejandro Alonso a5c922be9e Fixing bug when selecting neighbors in an empty queryset of related elements 2014-10-20 12:33:24 +02:00
Alejandro Alonso e71a9a1202 Fixing searchs, using an and for the words we search instead of an or 2014-10-16 13:14:43 +02:00
Andrey Antukh 480baa3b94 Auto coerce bytes to string on own json module. 2014-10-15 17:29:20 +02:00
Andrey Antukh c1dd1dd33b Remove full_url_static usage. 2014-10-08 12:56:43 +02:00
David Barragán Merino c205f081cd Bug #1247: Add a link to attachment (added or modified) in emails 2014-10-07 19:05:55 +02:00
Alejandro Alonso b82f6a4743 Making the project name not mandatory and using the owner username for the slug generation 2014-10-03 22:27:10 +02:00
Andrey Antukh 1039d432ad Remove useless six usage that causes some import errors. 2014-10-02 12:37:13 +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 f4516ff435 Fixed strange behavior on make_diff function (possible bugfix) 2014-09-17 16:55:43 +02:00
Andrey Antukh 95845b4eda Add iter_queryset method to utils.iterators module. 2014-09-17 15:02:54 +02:00
Andrey Antukh 4aef603946 Add split_by_n function on utils.iterators module. 2014-09-17 15:02:54 +02:00
Jesús Espino 688e047ff8 Delete comments functionality 2014-09-16 13:45:47 +02:00
Andrey Antukh 50e4de966f Improved monkey patching setup.
And remove unused monkey patching functions.
2014-09-16 10:48:43 +02:00
Andrey Antukh 7c04ff3117 Remove south related monky patch. 2014-09-16 10:48:41 +02:00
David Barragán Merino 047b0acb20 Fix the history of an attachment 2014-09-15 16:14:35 +02:00
David Barragán Merino d796d0c1b4 Add copyright to some files 2014-09-14 12:47:06 +02:00
Jesús Espino 6d78c79018 Adding import api 2014-09-08 12:33:32 +02:00
Andrey Antukh 0b375be614 Replace direct JSONRender usage with taiga own json module on all tests.
So unify the json interface in all tests code.
2014-09-06 02:00:09 +02:00
Andrey Antukh f0ec998576 Remove unused import. 2014-09-05 22:29:31 +02:00
Andrey Antukh d460f777f7 Add access-control-max-age header to cors middleware for avoid options pre-flight. 2014-09-04 11:27:20 +02:00
Jesús Espino fdb0a327c1 Add initial project import api 2014-09-01 15:55:10 +02:00
Alejandro Alonso 3b48c1fa95 Adding pagination disabled for history 2014-08-28 13:11:04 +02:00
Jesús Espino a9ecac7c1c Fixed bug #763: Now filter of us and issues filter by subject and reference 2014-08-28 11:24:19 +02:00
Jesús Espino e0a5e6cca5 Updating the taiga email logo 2014-08-20 08:39:13 +02:00
Jesús Espino 94adbca28e Fixed bug #729: Adding full_url_static jinja function and used it in base email 2014-08-20 08:30:12 +02:00
Jesús Espino 0d9311613d On retrieve not apply the filter, only check the permissions 2014-08-19 10:07:20 +02:00
Jesús Espino 8a256883d9 Now supersusers can view everything 2014-08-18 10:20:37 +02:00
David Barragán Merino d8e79afdc9 Shorten some long lines 2014-08-14 23:53:27 +02:00
Jesús Espino 58304d8fd9 Fixed again the #355 bug 2014-08-12 10:25: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 195bdd2523 Adding colorize tags on server functionality 2014-08-11 11:51:08 +02:00
Jesús Espino 8eb40aa6a7 Fixed again filtering based on permissions 2014-08-08 15:00:05 +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
Anler Hp 5515243ed8 Refactoring bulk tasks creation 2014-08-01 13:45:00 +02:00
Anler Hp 7c81fbbe97 Fixing wrong response codes 2014-08-01 09:29:18 +02:00
Anler Hp 55a5abec73 Refactoring bulk members creation 2014-07-31 14:23:31 +02:00
Anler Hp 6229770c0f Task #436 - Filter user stories by subject 2014-07-29 11:07:47 +02:00
Jesús Espino c0bf954d46 Adding count of members to roles list 2014-07-28 18:36:11 +02:00
Jesús Espino 2439037b1c Neigbourgs optimization from 18000ms to 300m 2014-07-28 17:26:27 +02:00
Anler Hp 33fac4b43a Auto generate slug for projects 2014-07-25 14:19:37 +02:00
Jesús Espino fde268d8ab Fixed small problem with browsable api 2014-07-24 14:16:34 +02:00
Jesús Espino d97edb464c [HUGE CHANGE] Changed the permissions system 2014-07-24 12:19:06 +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
David Barragán Merino 346ee5e51e Add copyright 2014-07-20 19:01:34 +02:00
Anler Hp 82ddeb69a7 USs: class-based to function-based services 2014-07-11 01:04:27 +02:00
Anler Hp 40260c82ad Tasks: class-based to function-based services 2014-07-11 01:04:17 +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
David Barragán Merino a2b8a38016 Revert last commit in base.utils.urls 2014-07-02 13:29:29 +02:00
David Barragán Merino 625c705807 Update urls.py 2014-07-02 08:14:51 +02:00
Anler Hp a8085a2feb Return user photo cropped and with absolute url
Remember to run `pip install -r requirements.txt` to install the
additional dependencies.
2014-07-01 14:38:26 +02:00
Anler Hp e2b8687980 Bugfix: Reload version attr in OCC 2014-06-26 09:59:44 +02:00
Anler Hp c89c6e7c31 Merge pull request #51 from taigaio/tags
Tags using pg arrays
2014-06-23 11:34:02 +02:00
Anler Hp a8e54fb785 Support parametrized urls in the api root view
Generating the api root view was failing because urls like this

`issues/(?P<issue_id>\\d+)/voters`

cannot be reversed without the appropriate params.
2014-06-23 10:21:04 +02:00
Anler Hp f3dd200791 Bugfix 2014-06-18 14:12:42 +02:00
Anler Hp c33503eebf tags to pg array migrations 2014-06-18 10:14:29 +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
David Barragán Merino 4860c7cbb9 Add github login functionality to the Auth API 2014-06-12 12:16:37 +02:00
David Barragán Merino fa68d034e5 Create a connectors module and make a github one 2014-06-12 12:16:37 +02:00
Andrey Antukh 88608144bc Add some utils function for text management for query. 2014-06-12 00:12:15 +02:00
Jesús Espino 262776043f Timeline service implementation 2014-06-05 10:08:42 +02:00