Skip to content

Conversation

@teleyinex
Copy link
Member

Support the native PostgreSQL JSON data format. This will improve how data is stored, as well as we'll be able to query items using SQL.

@teleyinex
Copy link
Member Author

WIP

teleyinex and others added 25 commits June 17, 2015 12:43
This will ensure back compatibility with previous versions of PyBossa.
This commit checks for the info attribute in the query, so the method uses
SQL instead of SQAlchemy.
This commit adds a work around for querying JSON data. SQLAlchemy needs to use
filter instead of filter_by to do queries, unless you do a CAST.

PostgreSQL accepts '"astring"' as JSON valid, so if you want to search you need
to do a cast before querying it. This commit fixes this by including an
exception and handling it properly.
Conflicts:
	pybossa/model/project.py
	pybossa/model/task.py
	pybossa/model/task_run.py
	pybossa/model/user.py
* master:
  Update theme submodule
  Remove print
  Rename
  Only query for the task needed
  Revert "Use SQLAlchemy language for queries"
  Use SQLAlchemy language for queries
  Upgrade SQLAlchemy to v1.0.5
  Remove unused Flask-Cache dependency
* alt-postgresql-json:
  Ensure valid json format
  Add info in tasks
  Back to keyword API for repos
  Revert using raw JSON in project and user info fields
  Fix alembic revision after merge master
  Typo in sql query
  Clean unused imports and use JSON type"
@landscape-bot
Copy link

Code Health
Repository health increased by 0.03% when pulling f4f6344 on postgresql-json into ad9cb3d on master.

@alejandrodob
Copy link
Contributor

🍰

alejandrodob added a commit that referenced this pull request Jul 1, 2015
@alejandrodob alejandrodob merged commit 57e2f19 into master Jul 1, 2015
@alejandrodob alejandrodob deleted the postgresql-json branch July 13, 2015 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants