Skip to content

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
**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?

@kpsherva kpsherva closed this Dec 12, 2024
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