-
-
Notifications
You must be signed in to change notification settings - Fork 268
Migrating your apps to projects
The PyBossa software has been recently addressing some internal changes regarding the renaming of the formerly known as "apps" to "projects". This is something that we have been wanting to do for a long time, as we believe that PyBossa allows you to create research projects, rather than apps. If you are using Crowdcrafting, you may have not noticed that, because we have been using the "project" terminology on the frontend for a while now.
This change affects not only PyBosssa itself, but all the PyBossa ecosystem, including pybossa.js, pybossa-client, enki and pbs.
This changes will take effect from 6th April 2015.
-
If you created the project via the Crowdcrafting web and only used the web interface to import tasks too, then you should only be concerned about the links to your project you may have been sharing. If your project was at http://crowdcrafting.org/app/your-project it will now be http://crowdcrafting.org/project/your-project
-
If you are using the pybossa-client library, either directly or indirectly (e.g. if you are using one of the scripts provided in the template projects then you should be aware that the API of some of its functions has changed:
get_apps → get_projects
get_app → get_project
find_app → find_project
create_app → create_project
update_app → update_project
delete_app → delete_project
These changes are from pybossa-client v1.0.0 on You should update your calls to that functions in your scripts if you are updating to v1.0.0 or, if you prefer, you can stick to the previous version 0.4.1, which keeps the old API.
-
If you are using the PyBossa REST API at Crowdcrafting, please note that from now on the endpoint /api/app/ will be changed to /api/project/. However, we will keep the old one redirecting to the new one for backwards compatibility until 1st May 2015.
-
If you are using any other libraries like pbs, enki or pybossa.js you don’t have to do anything at all, as they all keep the same API as always.
You will need as usual to run the alembic upgrade head command to migrate the DB to the latest changes. Then be sure your server theme has been upgraded to the latest version of PyBossa as lots of URLs will be broken (pybossa-default-theme is already migrated). Then, you can include in your Nginx server the following set of rules:
location ~ /api/app {rewrite ^/api/app http://$server_name/api/project$1 permanent;}
location ~ /app {rewrite ^/app(.*) http://$server_name/project$1 permanent;}