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

Model_records_generator breaks users reindex #156

Open
mirekys opened this issue Mar 1, 2024 · 0 comments
Open

Model_records_generator breaks users reindex #156

mirekys opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mirekys
Copy link
Member

mirekys commented Mar 1, 2024

invenio oarepo index reindex fails on:

Indexing users
  File "Narodni-repozitar/nr-docs/.venv/lib/python3.9/site-packages/oarepo_runtime/cli/index.py", line 98, in model_records_generator
    for x in db.session.query(model_class.model_cls.id).filter(
AttributeError: type object 'UserAggregateModel' has no attribute 'id'
@mirekys mirekys added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant