-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global: codebase upgrade #1937
global: codebase upgrade #1937
Conversation
3d5d757
to
52d85fd
Compare
811e594
to
3676aec
Compare
e6a6de9
to
c7bfbb2
Compare
* Moves cds-js relevant code in the main repo * cds-js can be archived once the upgrade is completed * fix remote download workflow. Use `payload.uri` only when downloading a remote video
* dockerfile: move to python 3.9 * oauth: upgrade to latest cern openid contrib
cds/modules/records/search.py
Outdated
@@ -26,7 +26,7 @@ | |||
|
|||
from __future__ import absolute_import, print_function | |||
|
|||
from elasticsearch_dsl.query import Q | |||
from opensearch_dsl.query import Q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from opensearch_dsl.query import Q | |
from invenio_search import dsl |
cds/modules/records/search.py
Outdated
@@ -59,14 +59,12 @@ def cern_filter(): | |||
provides = get_user_provides() | |||
|
|||
# Filter for public records | |||
public = Q("missing", field="_access.read") | |||
public = ~Q("exists", field="_access.read") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public = ~Q("exists", field="_access.read") | |
public = ~dsl.query.Q("exists", field="_access.read") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure how accurate this is, better to check in ILS
cds/modules/records/utils.py
Outdated
@@ -29,9 +29,10 @@ | |||
import json | |||
|
|||
import six | |||
from elasticsearch.exceptions import NotFoundError | |||
from opensearchpy.exceptions import NotFoundError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
safer to import via invenio_search
}, | ||
} | ||
}) | ||
// require.config({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to clean?
docker/app/Dockerfile
Outdated
@@ -5,13 +5,13 @@ | |||
# invenio-app-ils is free software; you can redistribute it and/or modify it | |||
# under the terms of the MIT License; see LICENSE file for more details. | |||
|
|||
FROM python:3.6 | |||
FROM python:3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/inveniosoftware/almalinux:1?
* fix doi test to ensure that doi cannot be changes once minted * fix keyword serialization check * replace opensearch_dsl occurences with invenio_search ones * delete redundant js files
7545dc2
to
5cbe877
Compare
No description provided.