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

Browsing during setup #869

Closed
rerowep opened this issue Mar 27, 2020 · 0 comments
Closed

Browsing during setup #869

rerowep opened this issue Mar 27, 2020 · 0 comments
Labels
enhancement Improvement of an existing feature

Comments

@rerowep
Copy link
Contributor

rerowep commented Mar 27, 2020

Describe the issue
There is a following error during setup after item indexing during browsing of brief view of documents:
Something bad happened; please try again later.

Following error is logged in server log:

  File "/Users/peter/devel/rero/rero-ils/rero_ils/modules/documents/serializers.py", line 76, in post_process_serialize_search
    metadata.get('pid')).is_available(viewcode)
AttributeError: 'NoneType' object has no attribute 'is_available'

To Reproduce
During setup after item indexing try to visit web address:
http://localhost:5000/global/search/documents?q=&page=1&size=10

Expected behavior
We can already browse documents without error.

@rerowep rerowep added the enhancement Improvement of an existing feature label Mar 27, 2020
@rerowep rerowep closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant