session: hotfix for schema and locale check

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
oaiharvester: refextract task fix

* Checks properly if the PDF is downloaded successfully inside the
  refextract task.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
template: fix for unicode url handling

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
formatter: addition of format.mime_type column

* Adds upgrade for the `Format` table by adding `mime_type`.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
previewer: d3js csv previewer

* Adds d3js csv previewer.

Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
oauthclient: save orcid in extra data

* Saves the orcid of the user in the extra data column of
  remoteACCOUNT.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
oauthclient: missing attribute addition

* Adds missing attribute to `OAuthRejectedRequestError` constructor.
  (closes #2483)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sqlalchemy: fix mysql primary key creation

* Fixes checking of Text type supporting the case of NullType
  column type.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
workflows: template renaming

* Renames the template hp_details to hp_details_base in preparation
  of better template structure.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: template fixes

* Adds new block workflow_completed to hp_details_base template.

* Adds template hp_details to extend from hp_details_base.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
knowledge: API migration to SQLAlchemy

* Replaces run_sql queries with SQLAchemy query.

* Refactors module in order to move logic from api to model.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
setup: WTForms pin version 1.0.5

* NOTE Invenio installation is currently broken. Flask-Admin does
  not support WTForms>2.0.0. This is a temporary commit until it is
  fixed.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>