Commit Graph

82 Commits (efc666c7931cd5da9e97a9282099b29a2d80bcb6)

Author SHA1 Message Date
David Barragán Merino bc473375ba US #55: Custom fields - Create model 2015-03-04 12:59:27 +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 26ba8e1a07 Remove obsolete settings variables 2015-02-10 19:49:16 +01:00
David Barragán Merino 0d591dcadc Translate and fix all emails 2015-01-26 09:44:57 +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
Jesús Espino 6e39a8f7a8 Add django-transactional-cleanup and configure it 2015-01-14 11:57:00 +01:00
Jesús Espino a8afd77f89 Add import/export functionality to the API 2015-01-13 13:43:09 +01:00
Jesús Espino 02400be2a1 Adding ips validation 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
David Barragán Merino 53266a512f US #1313: Setup throttling policy 2014-11-28 10:21:09 +01:00
Alejandro Alonso 63cf345ff0 Renaming function get_config_or_default to get_or_generate_config 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
Alejandro Alonso 08b8d478e1 Making notifications work synchronously by default 2014-10-28 18:26:30 +01:00
Alejandro Alonso a68785a380 Refactoring modify notifications 2014-10-28 18:08:42 +01:00
Alejandro Alonso 50afed05f9 Adding raven requirement 2014-10-22 12:48:28 +02:00
Alejandro Alonso 4b859bbde9 Removing cancel_token and using django.core.signing stuff 2014-10-10 09:29:51 +02:00
David Barragán Merino bcb2948417 US #954: Task #1115: Create feedback endpoint 2014-10-04 17:14:04 +02:00
Damien ef82bc62cf Typo in local_settings: Githup -> Github
Kebap ou Kebab ?
2014-10-01 23:31:42 +02:00
David Barragán Merino 5e7a7c5eaa 💩 -> 🚽 2014-09-30 09:20:05 +02:00
Jesús Espino 85901336e9 Changed default events queue to postgresql queue 2014-09-29 18:33:55 +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
Andrey Antukh 2e3abe60f0 Minor improvements on avatar/gravatar settings. 2014-09-29 12:16:35 +02:00
Alejandro Alonso bfecc26158 Avatar refactoring 2014-09-29 12:16:35 +02:00
David Barragán Merino 8c5695974d 👻 Fix a strange behavior with get_model in taiga.projects.history.services 2014-09-25 11:32:49 +02:00
Andrey Antukh 91296886a5 Change the way to generate attachment resource path. 2014-09-17 15:02:54 +02:00
Andrey Antukh 3061425a67 Improvements and fixes on tests. 2014-09-16 10:48:43 +02:00
Andrey Antukh 186ff67b01 Remove south and reversion from INSTALLED_APPS. 2014-09-16 10:48:42 +02:00
Andrey Antukh c3c706ce5d Fix settings compatibility. 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 1e48340c48 Adding initial version of exporter/importer 2014-08-28 17:33:41 +02:00
Jesús Espino 195bdd2523 Adding colorize tags on server functionality 2014-08-11 11:51:08 +02:00
Jesús Espino b513a6277d Task #435: Now the attachments verify user permissions 2014-08-08 14:27:05 +02:00
Jesús Espino 57659d72df Adding big avatar image and change avatar endpoint 2014-07-30 13:52:51 +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
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
Yamila 20d895406e Update common.py
Deleted context_processor because it's for development purposes. It's already in development settings.
2014-07-09 17:40:46 +02:00
Yamila 0b4612de68 Update celery.py 2014-07-09 15:41:13 +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 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 d6546dc518 Refactor searches module 2014-06-17 15:10:00 +02:00
David Barragán Merino 2c8524e146 Delete the rest of django test 2014-06-15 11:18:16 +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