Double fetching when fetching a user items.
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 1.2k
- Avg merge
- 2h 40m
- Merged PRs (30d)
- 2
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:
```python
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!
Contributor guide
Assessment
This issue has not been assessed yet.