Commit Graph

533 Commits (fe28a9ddf97caea2038336b59b704634f4ba0ca8)

Author SHA1 Message Date
Alejandro Alonso 3877411c41 Fixing empty body bug in github webhooks 2015-03-18 13:52:56 +01:00
Jesús Espino c78f5e34c3 [backport] Temporary disable public projects on listings 2015-03-18 12:05:56 +01:00
Jesús Espino 5a45db23fc Temporary disable public projects on listings 2015-03-18 11:35:06 +01:00
Alejandro Alonso d27abf91ac Updating stimaations properly when removing a points value 2015-03-16 10:15:08 +01:00
Alejandro Alonso 4d4b52075e Bug 2444 links in rich content editor 2015-03-13 15:01:56 +01:00
Alejandro Alonso 91f51cddf9 Bug 2419 - The system tries sending emails to inactive users 2015-03-13 10:05:24 +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
Alejandro Alonso bdcd8bba41 Adding custom fields to csv exrpot 2015-03-10 18:11:50 +01:00
Jesús Espino 4e9d4610fe Fixed tests 2015-03-10 17:57:08 +01:00
Jesús Espino 66e6512245 US#1913: CSV Reports 2015-03-10 17:57:08 +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
Jesús Espino f9cbc36303 Fixing issues and task tests 2015-03-04 12:59:28 +01:00
Jesús Espino 618a731019 Fixing some tests 2015-03-04 12:59:28 +01:00
David Barragán Merino 9193c78de5 US #55: Custom fields - Permissions tests over custom attributes values 2015-03-04 12:59:28 +01:00
David Barragán Merino 47a4c5e0e7 US #55: Custom fields - Fix a bug with the 🐯s 2015-03-04 12:59:28 +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
David Barragán Merino 5eddda9803 US #55: Custom fields - Fix a problem with serializer classes and mixins 2015-03-04 12:59:27 +01:00
David Barragán Merino 22e62b4f65 US #55: Custom fields - Change 'values' field in CustomAttributesValues models to 'attributes_values' 2015-03-04 12:59:27 +01:00
David Barragán Merino 56b9fe42e3 US #55: Custom fields - Import/Export custom attributes values 2015-03-04 12:59:27 +01:00
David Barragán Merino 32ff494ddd US #55: Custom fields - 3️⃣ 😩 🐯 2015-03-04 12:59:27 +01:00
David Barragán Merino 2893213932 US #55: Custom fields - Create model to save the custom attributes values and update the history 2015-03-04 12:59:27 +01:00
David Barragán Merino ebc3388d03 US #55: Custom fields - Import/Export custom attributes 2015-03-04 12:59:27 +01:00
David Barragán Merino 84db9956d5 US #55: Custom fields - Tests 2015-03-04 12:59:27 +01:00
Jesús Espino c328414b4d Fixing a lot of flake8 errors on tests 2015-02-24 19:54:10 +01:00
David Barragán Merino 39d2faba80 Merge pull request #264 from taigaio/moving-github-tests-to-contrib-repo
Moving tests from taiga-back to the plugin repository
2015-02-24 13:34:37 +01:00
Jesús Espino 8e69be800e Fixed duplications and flake8 errors on factories.py 2015-02-24 13:13:24 +01:00
Jesús Espino f30b8f8451 Moving tests from taiga-back to the plugin repository 2015-02-24 13:10:57 +01:00
David Barragán Merino f398501fb8 Refactor some tests (II) - Remove debug trace 2015-02-24 12:14:29 +01:00
David Barragán Merino 6db1eca874 Refactor some tests 2015-02-24 11:28:01 +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
Jesús Espino d98e9a2fc7 Fix wiki reference link title attribute 2015-02-10 17:17:16 +01:00
David Barragán Merino 6e13e774d6 Upgrade django-pgjson to 0.2.1 2015-02-09 16:11:31 +01:00
Jesús Espino fbb29666b7 Added users_me resource permissions test 2015-02-03 13:36:07 +01:00
David Barragán Merino a97fd2a91e Improve update-role-points test 2015-02-03 10:26:41 +01:00
Jesús Espino 2016586afa Merge pull request #215 from taigaio/issue/1886/500_api_filter_by_project_slug
Issue #1886: Bad request when use project.slug instead project.id in API...
2015-02-02 18:10:02 +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 d4a40ad8d3 HTTP 404 for calls to search api with a wront project_id 2015-02-02 16:14:30 +01:00
David Barragán Merino 90d5eb88e9 Update test_importer_api.py 2015-01-22 21:18:12 +01:00
David Barragán Merino 779a2542d3 Update test_exporter_api.py 2015-01-22 21:15:59 +01:00
Alejandro Alonso da156401b0 Adding name to webhooks and logs_counter to webhooks API 2015-01-22 12:53:01 +01:00
Alejandro Alonso 395c35628e Import API in synchronous mode now returns the new project serialized 2015-01-21 11:49:41 +01:00
Alejandro Alonso 5a53e8f78a Refactoring project export 2015-01-20 10:52:39 +01:00
Alejandro 2fba748487 Merge pull request #209 from taigaio/us/1678/webhooks
US #1678: Add webhooks to the backend
2015-01-14 16:28:42 +01:00
Jesús Espino 47107eb079 US #1678: Add webhooks to the backend 2015-01-14 16:04:22 +01:00
David Barragán Merino 834d8dfe3f Use taiga.base.utils.json instead json 2015-01-14 10:54:42 +01:00
David Barragán Merino 64dde7870d Remove unnecessary import 2015-01-13 19:10:13 +01:00
Jesús Espino a8afd77f89 Add import/export functionality to the API 2015-01-13 13:43:09 +01:00
Alejandro Alonso df282a0c94 Fixing register test 2015-01-13 11:24:37 +01:00
Xavier Julián 4fe73aef52 US #1680: Emails redesign 2015-01-12 18:04:41 +01:00
Alejandro Alonso aee57d6110 Moving archived status from userstory to status 2015-01-02 10:44:45 +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 4a911f309a Merge pull request #186 from taigaio/improving-occ-for-not-bothering-when-not-necesary
Improving OCC for detecting situations where the version is not valid bu...
2014-12-10 07:52:52 +01:00
Alejandro Alonso 5a87aa0ed7 Improving OCC for detecting situations where the version is not valid but the changes doesn't overwrite previous ones 2014-12-03 14:47:32 +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
Alejandro Alonso 53871e5a8a Detecting concurrent edition and failing properly if needed 2014-12-03 10:21:31 +01:00
David Barragán Merino 29df487bca Fix tests 2014-12-03 00:38:06 +01:00
Jesús Espino 1101c5a719 Add bulk update order in user story and taskboard for tasks 2014-12-02 19:20:36 +01:00
Jesús Espino 2bbfa56deb Add tests for ip filtering on gitlab/bitbucket hooks 2014-12-02 14:42:43 +01:00
Jesús Espino edcb186871 Fix some tests 2014-12-02 14:42:43 +01:00
Alejandro Alonso 3e46b439bf Bitbucket webhooks for commits 2014-12-02 14:42:42 +01:00
Jesús Espino d974befd6c Gitlab integration 2014-12-02 14:42:42 +01:00
Alejandro Alonso 55ac4ce664 Fixing bug when deleting comments by project owners 2014-12-02 13:00:26 +01:00
Alejandro Alonso aa75763a3d Fixing neighbor tests 2014-12-02 09:36:58 +01:00
Jesús Espino e9045eb14c Merge pull request #180 from taigaio/bug/1720/notify-policies-anonymous-user-error
Fixing anonymous user requests for notify policies
2014-12-01 13:16:14 +01:00
Alejandro Alonso d9c6e3bcf1 Fixing anonymous user requests for notify policies 2014-12-01 14:01:37 +01:00
Jesús Espino 0a0d8724cd Replacing test import of mock, using unittest.mock 2014-12-01 12:42:43 +01:00
Jesús Espino 929ab47249 Merge pull request #178 from taigaio/bug/1668/fix-wiki-links-in-markdown-2
Bug tg-1668 #closed - Convert relative links to absolute links
2014-12-01 10:32:23 +01:00
David Barragán Merino e1f95ec391 Add copyright policy 2014-11-30 11:27:16 +01:00
David Barragán Merino 8b63dc8fa3 Bug tg-1668 #closed - Convert relative links to absolute links 2014-11-29 19:19:39 +01:00
David Barragán Merino 0798b5856b Add copyright policy 2014-11-29 17:41:48 +01:00
David Barragán Merino 53266a512f US #1313: Setup throttling policy 2014-11-28 10:21:09 +01:00
Jesús Espino 5130b32b0f Merge pull request #170 from taigaio/bug/1668/fix-wiki-links-in-markdown
Fix wikilink extension: use absolute urls
2014-11-27 10:03:31 +01:00
Jesús Espino 88568e0268 Merge pull request #172 from taigaio/bug/1700/delete-empty-memberships
If two pending memberships exist in the same projecto I can't delete them
2014-11-27 09:55:40 +01:00
Jesús Espino 494f18300a Fix notification of objects without permissions 2014-11-27 09:35:20 +01:00
David Barragán Merino b1fe9b335e Remove unneeded code 2014-11-26 18:51:28 +01:00
Alejandro Alonso 00c8d33d0d If two pending memberships exist in the same projecto I can't delete them 2014-11-26 11:36:16 +01:00
David Barragán Merino 30ca702323 Fix wikilink extension: use absolute urls 2014-11-26 09:35:28 +01:00
Jesús Espino 72730fdb73 Fixed failing tests 2014-11-25 18:51:58 +01:00
Alejandro Alonso c285857844 Refactoring owner permissions, now only is_owner memberships are considered as owner users 2014-11-25 18:51:58 +01:00
Alejandro Alonso c9fc2268d0 Adding leave project API 2014-11-25 18:51:57 +01:00
Alejandro Alonso e7b963a674 Adding member stats to the API 2014-11-25 18:51:57 +01:00
David Barragán Merino fa1e0c6bf6 Fix some tests 2014-11-25 18:43:40 +01:00
Alejandro Alonso e2f0262918 Fixing validation of email and role in memberships 2014-11-19 22:53:37 +01:00
Alejandro Alonso d246808b54 Disabling membership creation if the role isn't valid for the project 2014-11-19 14:28:00 +01:00
Alejandro Alonso 3d96ce81bb Fixing update_roles when project point ? exists but is not null 2014-11-19 14:05:49 +01:00
Alejandro Alonso 4996ae3a24 Fixing error 500 when using duplicated names for project points 2014-11-19 14:00:37 +01:00
David Barragán Merino 99244b8393 Re-do github login 2014-11-18 15:35:42 +01:00
Jesús Espino 80445d7afd Merge pull request #156 from taigaio/bug/1552/us-points-undefined-when-tasks-points-are-undefined
User story points are undefined if the task points are undefined
2014-11-18 13:48:37 +01:00
Alejandro ac1b43bdb5 Merge pull request #157 from taigaio/external-references-change
Changed how external reference is obtained
2014-11-18 13:47:59 +01:00
Jesús Espino 7b498924e7 Add tests to bug #1553 resolution 2014-11-18 13:32:32 +01:00
Jesús Espino 18e38792b5 Changed how external reference is obtained 2014-11-18 13:03:38 +01:00
Alejandro Alonso f49d143c22 Fixing neighbors hell 2014-11-15 22:39:42 +01:00
David Barragán Merino 36519e94c9 Fix some tests 2014-11-11 19:33:22 +01:00
Jesús Espino 1822198549 Fixed test on Github link 2014-11-11 19:18:18 +01:00
Jesús Espino cc4f64c115 Fixed travis errors 2014-11-11 19:18:18 +01:00
Jesús Espino aa3a8c6be8 Adding regular expresion to convert github references to links to github 2014-11-11 19:18:18 +01:00
Alejandro Alonso 571bf5e0cc Fixing slug generation for issue status, task status and user story status 2014-11-11 19:18:18 +01:00
Alejandro Alonso 5718627daa Using 400 errors insted of 401 2014-11-11 19:18:18 +01:00
Alejandro Alonso 2e78d51eda Fixing bug when changing us's to a non existing status 2014-11-11 19:18:18 +01:00
Alejandro Alonso 2d90a5dac9 Making commit message actions case insensitive 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 0fd7142802 US#90 Github webhooks integration 2014-11-11 19:18:18 +01:00
David Barragán Merino 61141c321e Fix connectors_github tests 2014-11-06 19:36:34 +01:00
Jesús Espino c83ffa8529 Fix issue #1500: Now generated html is escaped 2014-10-31 13:10:34 +01:00
Alejandro 5ac3bf15ab Merge pull request #143 from taigaio/refactor/remove-projects-tags-call
Remove api/v1/projects/XX/tags call (Not necessary)
2014-10-30 18:09:48 +01:00
Alejandro Alonso 126e02ce39 Fixing error when importing issues, the finished date was set to none by signals. Added some tests 2014-10-29 13:27:49 +01:00
Alejandro Alonso 08b8d478e1 Making notifications work synchronously by default 2014-10-28 18:26:30 +01:00
Alejandro Alonso 38fc63425a Fixing tests 2014-10-28 18:08:50 +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 a1d6875d88 Fixing task tests 2014-10-24 08:47:58 +02:00
Andrey Antukh bc95282cfd Add proper validation of watchers for issues, tasks and userstories serializers. 2014-10-23 20:45:11 +02:00
Alejandro Alonso 8593b82f8b Adding support for extra text in invitation 2014-10-22 12:53:22 +02:00
Jesús Espino bd519b3d64 Merge branch 'master' into stable
Conflicts:
	tests/integration/test_userstories.py
2014-10-20 13:43:44 +02: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 2cc65a17cb Fixing error when recovering the user token and the key doesn't exist 2014-10-20 09:40:51 +02:00
Alejandro Alonso 991e5a7f42 Fixing error 500 when importing two milestones with the same name 2014-10-20 00:50:39 +02:00
Alejandro Alonso 6fc97cf99d When creating a task with milestone and user_story associated checking the user_story is also associated to the milestone 2014-10-19 20:00:17 +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 ae5ca20a76 [backport] Fix incorrect handling of userstory rolepoints update process.
The current implementation allows duplicate points values in one project,
and because of it, unexpected MultipleObjectsReturned can be raised with
previous update_role_points code. The new one fixes this.

Additionally, in some circumstances, the project does not have any points
with None as value, that causes also unexpected errors. The new
implementation fixes it creating a points instance with None as value
if it not exists.

Conflicts:
	tests/integration/test_userstories.py
2014-10-16 09:12:45 +02:00
Andrey Antukh eb8638fdda [backport] Fix wrong handling role points update.
Additionally it moves the logic from serializer to resource.
2014-10-15 23:54:28 +02:00
Andrey Antukh bcd87114cf [backport] Fix wrong handling moveTo parameter on role destroy. 2014-10-15 23:54:12 +02:00
Andrey Antukh 4056d5214b Fix incorrect handling of userstory rolepoints update process.
The current implementation allows duplicate points values in one project,
and because of it, unexpected MultipleObjectsReturned can be raised with
previous update_role_points code. The new one fixes this.

Additionally, in some circumstances, the project does not have any points
with None as value, that causes also unexpected errors. The new
implementation fixes it creating a points instance with None as value
if it not exists.
2014-10-15 23:45:10 +02:00
Andrey Antukh 84a7c47210 Rename project tests. 2014-10-15 23:27:54 +02:00
Andrey Antukh 5617de891e Move some userstories test to right location. 2014-10-15 23:27:54 +02:00
Andrey Antukh a3cb48cf8e Fix wrong handling role points update.
Additionally it moves the logic from serializer to resource.
2014-10-15 23:27:54 +02:00
Andrey Antukh 43fd17aaaa Fix wrong handling moveTo parameter on role destroy. 2014-10-15 23:27:54 +02:00
Andrey Antukh 21f1835567 Fix milestone test name. 2014-10-15 19:52:31 +02:00
Andrey Antukh 786599239c Minor tests cleaning. 2014-10-15 19:52:31 +02:00
Andrey Antukh 0f207da0dc Put more clear names to user test functions. 2014-10-15 17:30:22 +02:00
Andrey Antukh 9b6c58bad9 Normalize some tests file names. 2014-10-15 17:29:58 +02:00
Alejandro Alonso 4b859bbde9 Removing cancel_token and using django.core.signing stuff 2014-10-10 09:29:51 +02:00
Alejandro Alonso 227add34f0 Sending email on the registry of user 2014-10-08 13:08:54 +02:00
Alejandro Alonso 2bfc09b2ee Adding cancel account by token API 2014-10-08 10:33:08 +02:00
David Barragán Merino bcb2948417 US #954: Task #1115: Create feedback endpoint 2014-10-04 17:14:04 +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 ad16976434 Rename and improve test names on us autoclossing tests module. 2014-10-03 20:13:02 +02:00
Andrey Antukh 101cad3358 Fix unexpected exception when delete task with deleted milestone. 2014-10-03 20:13:02 +02:00
Andrey Antukh b1cb7fdf66 Fix wrong handling patch request with user_stories list on milestone resource. (fix #1163) 2014-10-02 04:14:59 +02:00
Andrey Antukh 56e98bba11 Fix wrong handing integrity error on register or accept invitation. 2014-10-02 03:32:38 +02:00
Jesús Espino 7c5b85ea5c Fix small test fails introduced in the commit 27f12f7 2014-10-02 01:44:48 +02:00
David Barragán Merino 6725a43a4f Merge pull request #76 from taigaio/events-improvements
Taiga-events integration (realtime taiga)
2014-09-29 18:06:38 +02:00
Andrey Antukh 43e16c2c13 Taiga-events integration (realtime taiga) 2014-09-29 17:49:47 +02:00
David Barragán Merino fbff7a8b88 Add Copyright+license text 2014-09-29 11:57:57 +02:00
David Barragán Merino b01396028d Refactor user profile form and fix #1098 2014-09-25 20:05:34 +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 8df1b2a799 Regression fix: history entry should not be marked as hidden ...
... when change comes with a comment.
2014-09-18 14:42:13 +02:00
Andrey Antukh 97dbffa680 Fix/Improve tests for new changes introduced in bulk order update process. 2014-09-17 16:55:43 +02:00
Andrey Antukh 23f349a73f Implemented the ability of mark some history entries as hidden.
Snapshots with order fields (that are considered not important
for preview) are automatically marked as hidden.
2014-09-17 16:53:30 +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 01d524adb8 Setup django on start testrunner. 2014-09-16 10:48:43 +02:00
Andrey Antukh 59c7478075 Patch client test fixture with useful login method.
This removes django-testclient-extensions because
it doesn't compatible with django 1.7.
2014-09-16 10:48:42 +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
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 4f27a8ba4d Fix affected tests to previous attachment fixes. 2014-09-06 00:43:32 +02:00
Andrey Antukh f2aa75e4a5 Remove usage of django-testclientextensions (backport of some commits from django1.7 branch) 2014-09-05 22:33:07 +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 2f0471a3a4 Fix Bug #828: Validate username 2014-09-01 17:30:40 +02:00
David Barragán Merino ff8dd9e613 Fix some errors 2014-09-01 17:30:40 +02:00
Jesús Espino 1c72ddb01e Fixed mdrender tests 2014-08-27 10:36:36 +02:00
Jesús Espino c778f476be Improved a little some tests speed 2014-08-26 20:06:24 +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 8bd6e4fb2d Fixed proyect notification policy tests 2014-08-18 12:48:32 +02:00
Jesús Espino e4def00dce Updated test to the new bulk ordering format 2014-08-12 10:23:31 +02:00
Jesús Espino 50ffc1caf9 Fixed tests 2014-08-12 09:25:56 +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
Anler Hp 08ca07454a Failing test 2014-08-06 14:09:41 +02:00
Jesús Espino 64a8a137ab Now taking care of delete_last_milestone permission 2014-08-04 19:07:29 +02:00
Alejandro Alonso 3e9c836c7f Adding change email functionality 2014-08-04 10:15:32 +02:00
Anler Hp 196ac5684f Fix api auth tests 2014-08-01 15:07:57 +02:00
Anler Hp 68a579338f Refactoring issues bulk creation 2014-08-01 15:02:10 +02:00
Anler Hp ed603de65f fixing permissions tests 2014-08-01 14:29:30 +02:00
Anler Hp cfec7e12e2 Updating bulk param names in tests 2014-08-01 14:15:19 +02:00
Anler Hp 7944c36e6b Refactoring update order in bulk user-stories 2014-08-01 14:15:19 +02:00
Jesús Espino b567a55598 Adding remove avatar url permissions test 2014-08-01 14:02:46 +02:00
Anler Hp 5515243ed8 Refactoring bulk tasks creation 2014-08-01 13:45:00 +02:00
Anler Hp 58cc11e3d4 Refactoring bulk user stories creation 2014-08-01 11:05:58 +02:00
Jesús Espino 81e5609261 Adding test for change avatar 2014-07-31 16:46:09 +02:00
Jesús Espino 43c8699328 Adding test for change avatar permissions 2014-07-31 16:32:33 +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
Jesús Espino b0807854fe Fixed stats test 2014-07-31 13:23:49 +02:00
Jesús Espino c0c05c7d33 Fixed test_users_resources test 2014-07-31 13:23:49 +02:00
Anler Hp cb66dc168f Change projectId param to project_id bulk members 2014-07-31 13:04:13 +02:00
Jesús Espino 83ad29dec1 Fixed stats tests 2014-07-31 12:40:39 +02:00
Anler Hp 724087e26d Create memberships in bulk on the same project 2014-07-31 12:19:51 +02:00
Jesús Espino b0d96d16df Some tests fixed 2014-07-31 12:00:43 +02:00
Jesús Espino e55acc11c2 Adding test for create of membership 2014-07-31 10:45:59 +02:00
Jesús Espino 1789aa6f06 Adding tests for bulk_create issues 2014-07-31 10:08:23 +02:00
Jesús Espino bb88966635 Fixed some errors and tests on mdrender 2014-07-31 08:59:12 +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 4c2585a891 Task #396 - Filter issues by subject 2014-07-29 13:00:27 +02:00
Anler Hp 6229770c0f Task #436 - Filter user stories by subject 2014-07-29 11:07:47 +02:00
Jesús Espino 945914c12b Adding some test for stats 2014-07-28 09:50:58 +02:00
Anler Hp 33fac4b43a Auto generate slug for projects 2014-07-25 14:19:37 +02:00
Anler Hp e79f0380dd Task #417 - Fixing create project api handler 2014-07-25 13:49:51 +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 620ad91996 Task #361
Added a test only and appears to work
2014-07-24 14:49:48 +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
Anler Hp 44f9911730 Fix neighbor tests due to change in Issue ordering 2014-07-23 14:44:10 +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 d5df49f59a Big refactor on is_closed calculation 2014-07-22 12:00:25 +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 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
Anler Hp 0ff888df53 Support for CELERY_ALWAYS_EAGER 2014-07-02 13:40:36 +02:00
Anler Hp 24e9d92af1 Decorator for overriding settings while testing
Usage:
```
from tests.utils import set_settings

@set_settings(FOO='bar')
def test_something():
    ...
```
2014-07-02 13:34:14 +02:00
Anler Hp 0e414267db Integration with RabbitMQ and Celery
First update taiga-vagrant vm if you're using it, you will have access
to the rabbit management console at port 8001 of the host machine.

* Defining tasks
- Tasks must be defined in a `deferred` module of an app, for example,
`taiga.projects.deferred` module.
- Tasks must be decorated and given the name "<app>.<task-name>", for
example in `taiga.projects.deferred` module:
```
from taiga.celery import app

@app.task(name="projects.add")
def add(x, y):
    return x + y
```
- Tasks should be at most just wrappers around service functions to
promote re-usability of those functions from other parts of the code,
say, management commands and the like.

* Calling tasks
Tasks should be called using one of the three functions defined in
`taiga.deferred` module:

- `defer`: Use this function if you need to perform some task
asynchronously and GET THE RESULT back later, for example:
```
result = defer("projects.add", x=1, y=2)
...
result.get() # => 3
```

- `call_async`: Use this function when you want to fire off some
task. No result is get back. For example:
```
call_async("projects.email_user", user)
```

- `apply_async`: Is the same as `call_async` but since it's a function
application and you must pass the args and kwargs together as one
parameter each you are allowed to pass celery-specific
extra-options (but bear in mind this is not recommended!)
```
apply_async("projects.email_user", args=(user,), kwargs={}, routing_key="tasks.email")
```
2014-07-02 09:49:56 +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 5ff7ec1c00 Return user's gravatar if has no photo set
If the user has no photo set use her gravatar image if available
otherwise use the default avatar image defined in
`settings.DEFAULT_AVATAR_URL`
2014-07-01 12:46:58 +02:00
Anler Hp cfc35d5ed2 Required estimated-start/end dates for milestones 2014-06-27 14:07:50 +02:00
Alejandro Alonso 077de2bf4e Updating occ tests 2014-06-25 16:19:40 +02:00
Anler Hp 0a3a33aac5 Optimizing `Project.update_role_points` method 2014-06-24 12:38:29 +02:00
Alejandro Alonso 9b97a4a9c6 Fixing bug when creating objects with OCCResourceMixin 2014-06-23 16:22:08 +02:00
Anler Hp e98d666a40 Removing unnecessary setup of test database
We are already using pg arrays so the unpickle function in sql/tags.sql
is not needed, at least by the moment. I'm removing it because it was
entering in an infinite loop when creating the test database.
2014-06-23 12:26:17 +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 7ebe443394 Adding models.Model explicitly to tagged models 2014-06-23 10:58:14 +02:00
David Barragán Merino 76bc2ac426 Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
David Barragán Merino 270b315fdf Add more licenses agreements to the tests.unit module 2014-06-20 19:48:34 +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 08b4be4e0b Re-applying migration in conflict 2014-06-18 11:15:33 +02:00
Anler Hp ac5e163dc5 Implement tags using pg arrays 2014-06-18 10:14:29 +02:00
Alejandro Alonso dcc7ec0bf2 Adding archived user stories feature and enabling API filtering 2014-06-18 09:16:30 +02:00
Alejandro Alonso b78a412b46 Fixing tests 2014-06-17 17:01:59 +02:00
Alejandro Alonso 57e1de23dc Avoiding race conditions in pre_save 2014-06-17 16:34:11 +02:00
Alejandro Alonso e534920c01 Optimistic Concurrency Control first approach 2014-06-17 16:08:59 +02:00
David Barragán Merino d6546dc518 Refactor searches module 2014-06-17 15:10:00 +02:00
David Barragán Merino c712e1d8e7 Add some tests of the github connector 2014-06-12 12:16:37 +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
Andrey Antukh 9ee7335ff0 Notifications: add test for notifications app. 2014-06-12 00:12:15 +02:00
Andrey Antukh a4e8bcbe12 History: add tests. 2014-06-12 00:12:15 +02:00
Andrey Antukh 39bb7bcfcd Add additional factories for tests. 2014-06-12 00:12:15 +02:00
Jesús Espino 262776043f Timeline service implementation 2014-06-05 10:08:42 +02:00
Jesús Espino 165b247c6d splitted tests of mdrender in integration and unit tests 2014-06-04 17:27:01 +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 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
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
Anler Hp bc70ab8cc9 Moving fixture into standalone module and new module tests.utils 2014-05-27 13:28:46 +02:00
Andrey Antukh 4ec6ba621b Make integration tests as functions. 2014-05-26 17:33:12 +02:00
Andrey Antukh 2b087678b9 Remove domains. 2014-05-26 17:33:12 +02:00
David Barragán Merino f2e9c55a2c Fix tests (II) 2014-05-22 20:43:24 +02:00
David Barragán Merino ada51440e7 Fix tests 2014-05-22 20:26:36 +02:00
Anler Hp 8003abbbef Moving neighbors logic into standalone module 2014-05-22 18:34:03 +02:00
Anler Hp ac49a76146 Automatically skip slow tests
You can mark a test as slow using:

    @pytest.mark.slow
    def test_something():
        ...

Use the option "--runslow" to tell the test runner to also include slow
tests:
        py.test --runslow ...
2014-05-22 18:34:03 +02:00
Anler Hp 55f5c70e4e Turning off signals dispatch when testing units
Model signals pre_save and post_save will be turned off when running
unit tests because they are interfering with the tests.
2014-05-22 18:34:03 +02:00
Anler Hp e1fdc36301 Pytest mutable object fixture.
Usage:
        def test_something(object):
            # mutate object as needed
2014-05-22 18:34:03 +02:00
Jesús Espino bb73c2c06d Flake8 corrections 2014-05-22 13:14:28 +02:00
Jesús Espino 5e95175654 Adding render_and_extract function to mdrender service 2014-05-22 13:05:45 +02:00
Jesús Espino 6a48e28ca4 Improving coverage of mdrender to 100% 2014-05-21 18:57:37 +02:00
Jesús Espino c7ee910647 Some refactoring on mdrender 2014-05-21 17:51:43 +02:00
Andrey Antukh 1f1c313ca6 Add tests for project automatic sequence create/delete operations. 2014-05-21 12:38:29 +02:00
Andrey Antukh d601ecba9a Minor cosmetic fixes on pytest integration tests. 2014-05-21 11:01:47 +02:00
Andrey Antukh 363e7ac1d9 Add test for sequences. 2014-05-21 11:01:47 +02:00
Jesús Espino f6ea608a04 Moving wiki mentions to an extension 2014-05-20 12:23:59 +02:00
Jesús Espino 4bae101c83 Fixed wiki tests broken accidentally 2014-05-20 11:33:20 +02:00
Jesús Espino 40111dac47 Some extra tests for the wiki 2014-05-20 11:33:20 +02:00
Jesús Espino ec49205ae6 Removing unnecesary commented tests 2014-05-19 12:51:36 +02:00
Jesús Espino be5e37187c Adding some tests and a improved version of the wikilinks extension 2014-05-16 22:20:01 +02:00
David Barragán Merino 2bc3f3560b US #73: Filter entries by a key list 2014-05-16 09:58:42 +02:00
David Barragán Merino d786a1ba95 US #73: Create a user schemaless storage system 2014-05-14 14:01:31 +02:00
David Barragán Merino 4554c0919d Remove unnecessary codding sentence 2014-05-14 13:16:44 +02:00
Jesús Espino e824932f4c Add mdrender module 2014-05-09 12:29:12 +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