-
Notifications
You must be signed in to change notification settings - Fork 11
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
names vocab: add inspire and lcds schema #276
base: master
Are you sure you want to change the base?
Conversation
kpsherva
commented
Dec 2, 2024
- closes hook up the names vocab #233
User.updated > since, | ||
User.active == True, | ||
).all() | ||
if since: |
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.
@jrcastro2 is this ok? the task didn't work with since = None
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.
Sure! I would simply update the logging as well to be more clear:
if since:
current_app.logger.debug(
f"Names sync | Fetching active users updated since {since}."
)
...
else:
current_app.logger.debug(
f"Names sync | Fetching all active users."
)
...
invenio.cfg
Outdated
@@ -510,6 +514,8 @@ APP_RDM_RECORD_LANDING_PAGE_EXTERNAL_LINKS = [ | |||
] | |||
VOCABULARIES_NAMES_SCHEMES = { | |||
**DEFAULT_VOCABULARIES_NAMES_SCHEMES, | |||
"cern": {"label": _("CERN"), "validator": schemes.is_cern, "datacite": "CERN"}, | |||
"lcds": {"label": _("CDS"), "validator": schemes.is_cern, "datacite": "CDS"}, | |||
"inspire": {"label": _("Inspire"), "validator": schemes.is_cern, "datacite": "INSPIRE"}, |
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.
shouldn't this be using is_inspire?