Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kpsherva
Copy link
Contributor

@kpsherva kpsherva commented Dec 2, 2024

User.updated > since,
User.active == True,
).all()
if since:
Copy link
Contributor Author

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

Copy link
Contributor

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"},
Copy link
Contributor

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?

invenio.cfg Outdated Show resolved Hide resolved
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.

hook up the names vocab
3 participants