Commit Graph

58 Commits (5b39052ca26301c42ee7fac10707646842c117eb)

Author SHA1 Message Date
Andrey Antukh 9c4472a787 Add alejandro.alonso copyright preamble to test sources. 2016-01-08 16:08:46 +02:00
Andrey Antukh 501145bdcd Fix my email on copyright preamble on test source files. 2016-01-08 15:58:30 +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
Alejandro Alonso 448cc19185 Fixing ts_query function 2015-11-04 09:04:07 +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 aff9a7d637 Fixing created datetime for timeline entries 2015-06-19 11:14:03 +02:00
Alejandro Alonso 29b75dc78a [Backport] Fixing contacts and stats endpoints for users API 2015-06-01 11:44:59 +02:00
Alejandro Alonso 4e25b5fa97 Updating tests and adding new ones for timeline 2015-04-21 16:21:35 +02:00
Alejandro Alonso 4d4b52075e Bug 2444 links in rich content editor 2015-03-13 15:01:56 +01:00
Jesús Espino c328414b4d Fixing a lot of flake8 errors on tests 2015-02-24 19:54:10 +01:00
Jesús Espino f30b8f8451 Moving tests from taiga-back to the plugin repository 2015-02-24 13:10:57 +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 0d70eb088a [backport] tg-1783 #ready-for-test - Fix wiki links compatibility 2014-12-10 21:28:20 +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 30ca702323 Fix wikilink extension: use absolute urls 2014-11-26 09:35:28 +01:00
David Barragán Merino fa1e0c6bf6 Fix some tests 2014-11-25 18:43:40 +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 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 2cc65a17cb Fixing error when recovering the user token and the key doesn't exist 2014-10-20 09:40:51 +02:00
Alejandro Alonso 1c0d6cd706 [backport] Making the project name not mandatory and using the owner username for the slug generation 2014-10-03 22:38:54 +02:00
Andrey Antukh 3061425a67 Improvements and fixes on tests. 2014-09-16 10:48:43 +02:00
Jesús Espino 1c72ddb01e Fixed mdrender tests 2014-08-27 10:36:36 +02:00
Jesús Espino bb88966635 Fixed some errors and tests on mdrender 2014-07-31 08:59:12 +02:00
Jesús Espino d97edb464c [HUGE CHANGE] Changed the permissions system 2014-07-24 12:19:06 +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 0ff888df53 Support for CELERY_ALWAYS_EAGER 2014-07-02 13:40:36 +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
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 c712e1d8e7 Add some tests of the github connector 2014-06-12 12:16:37 +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 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 baeab00e28 Fix stars tests. 2014-05-28 18:30:41 +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
Anler Hp 8003abbbef Moving neighbors logic into standalone module 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
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