You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a the scan function of the service we are supposed to receive a RecordList and by accessing hits, each element should be a RecordItem but instead it's only a dict.
Steps to Reproduce
Go to the terminal.
Access invenio shell by typing invenio shell.
Test the scan, here an example:
from invenio_rdm_records.proxies import current_rdm_records
from invenio_access.permissions import system_identity
service = current_rdm_records.records_service
records_list = service.scan(identity=system_identity)
for r in records_list.hits:
print(r.__class__)
Note that it's a dict when it should be a RecordItem.
Package version (if known): v0.16.1
Describe the bug
When executing a the scan function of the service we are supposed to receive a
RecordList
and by accessinghits
, each element should be aRecordItem
but instead it's only a dict.Steps to Reproduce
invenio shell
.scan
, here an example:dict
when it should be aRecordItem
.Expected behavior
Get
RecordItem
instead of a dict.Screenshots (if applicable)
Additional context
The text was updated successfully, but these errors were encountered: