-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Hello,
Describe the bug
When fetching the items from a user, the properties from the initial fetch are not "saved" which means that when I try to access any properties it will fetch them again.
To Reproduce
Steps to reproduce the behavior:
gis.users.me.user.items(folder=folder, max_items=100)Expected behavior
The properties from the initial fetch are used
Platform (please complete the following information):
- OS: Windows 11
- Python API Version: 2.4.2
Additional context
The reason this is caused is because the itemdict is not provided when instantiating the class. This is done in gis/_impl/_content_manager/folder/core.py in the list function.
This line yield _arcgis_gis.Item(gis=self._gis, itemid=item.get("id", None)) should probably be
yield _arcgis_gis.Item(gis=self._gis, itemid=item.get("id", None), itemdict=item)
Thanks!