Go to file
ikame e9dfbe7378 US #50: Return neighbors when fetching an US/Issue
The response for an UserStory/Issue now contains:

{
    ...
    "neighbors": {
        "previous": {
            "id": ...,
            "ref": ...,
            "subject": ...
        },
        "next": {
            ... same as above
        }
    }
}

If there's a neighbor missing the response will contain the empty dict {}:

{
    ...
    "neighbors": {
        "previous": {},
        ...
    }
}

Neighbors are looked up applying the same filters defined in the
corresponding ViewSets and the same ordering defined in those filters or
ultimately, in the model's meta. In other words, using the same params
you use to filter the object list, can be used to filter the neighbors
when fetching the object's details.
2014-02-26 12:47:55 +01:00
doc US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
sql Refactoring sites. 2013-12-04 18:38:11 +01:00
taiga US #50: Return neighbors when fetching an US/Issue 2014-02-26 12:47:55 +01:00
.ctags changing language-force paramter on ctags with languages parameter 2013-04-01 09:49:02 +02:00
.gitignore US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
.travis.yml US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
AUTHORS.rst US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
LICENSE Add initial license template (pending revision) 2013-04-07 13:40:53 +02:00
NOTICE Remove some repeated content from NOTICE file. 2013-10-17 13:25:58 +02:00
README.rst Fixing tests and documentation 2014-02-18 17:59:23 +01:00
dumpdata_role.sh US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
manage.py US#49: Renaming app to Taiga 2014-01-27 17:33:43 +01:00
regenerate.sh Fixing tests and documentation 2014-02-18 17:59:23 +01:00
requirements.txt Update requirements. 2014-01-30 15:57:23 +01:00

README.rst

Taiga Backend
=================

.. image:: http://kaleidos.net/static/img/badge.png
    :target: http://kaleidos.net/community/taiga/

.. image:: https://travis-ci.org/kaleidos/taiga-back.png?branch=master
    :target: https://travis-ci.org/kaleidos/taiga-back

.. image:: https://coveralls.io/repos/kaleidos/taiga-back/badge.png?branch=master
    :target: https://coveralls.io/r/kaleidos/taiga-back?branch=master

.. image:: https://d2weczhvl823v0.cloudfront.net/kaleidos/taiga-back/trend.png
   :alt: Bitdeli badge
   :target: https://bitdeli.com/free

Setup development environment
-----------------------------

Just execute these commands in your virtualenv(wrapper):

.. code-block:: console

    pip install -r requirements.txt
    python manage.py syncdb --all --noinput
    python manage.py migrate --fake
    python manage.py loaddata initial_user
    python manage.py sample_data
    python manage.py createinitialrevisions

You have to load the sql sentences of the file ``sql/tags.sql`` and your database
must support PL/Python. You use a dbuser with privileges in the database,
'taiga' for example, to do this.

.. code-block:: console

    psql taiga

.. code-block:: sql

    CREATE LANGUAGE plpythonu;

    CREATE OR REPLACE FUNCTION unpickle (data text)
        RETURNS text[]
    AS $$
        import base64
        import pickle

        return pickle.loads(base64.b64decode(data))
    $$ LANGUAGE plpythonu IMMUTABLE;

    CREATE INDEX issues_unpickle_tags_index ON issues_issue USING btree (unpickle(tags));


Note: taiga only runs with python 3.3+.

Note: Initial auth data: admin/123123


Polyfills
---------

Django-Rest Framework by default returns 403 for not authenticated requests and permission denied
requests. The file ``taiga/base/monkey.py`` contains a temporary fix for this bug.

This patch is applied when the module ``base.models`` it's loaded. Once it's solved on django rest
framework, this patch can be removed.