Closed egabancho closed 6 years ago
@lnielsen I tested this and the sorting factory works ok after https://github.com/inveniosoftware/invenio-records-rest/pull/200, should I work on removing the six
dependency?
Edit: Hmm, even if I remove the dependency from us, pydocstyle has six
in its requirements, so run-tests.sh
will fail. I'm unassigning for now as I'm not sure how to proceed. (I pushed the progress here if we choose to continue.)
Fixed in #200
This line https://github.com/inveniosoftware/invenio-records-rest/blob/master/invenio_records_rest/sorter.py#L134 will make unicode queries return the default
noquery
sorting mechanism.Simply changing the line mentioned above by something like:
Related with https://github.com/zenodo/zenodo/issues/1227
Note 1: maybe it's worth taking a look at all the castings we are doing to
str
, specially ifq
is involvedNote 2: we only use
six
in a couple places,urllib.parse
andstring_types
, maybe it's worth extending a bit the _compact.py in case we want to remove this dependency.