Describe the bug
item.delete(dry_run=True) with ArcGIS Online, is returning an empty list for offending_items when an item has one or more related Service Items. I am expecting it to return a list of the related items, so they can be deleted first.
To Reproduce
Attempt a dry_run delete on an item that has related items.
result = item.delete(dry_run=True)
The returned result recognizes the item cannot be deleted because of related items, however, it fails to return the expected list of offending items causing the issue:
{'can_delete': False,
'details': {'code': 400,
'message': 'Unable to delete item. This service item has a related Service item',
'offending_items': []}}
Expected behavior
offending_items should return a list of the related items.
Platform (please complete the following information):
- OS: Windows
- Browser: Chrome
- Python API Version: 2.4.3
Describe the bug
item.delete(dry_run=True) with ArcGIS Online, is returning an empty list for offending_items when an item has one or more related Service Items. I am expecting it to return a list of the related items, so they can be deleted first.
To Reproduce
Attempt a dry_run delete on an item that has related items.
The returned result recognizes the item cannot be deleted because of related items, however, it fails to return the expected list of offending items causing the issue:
{'can_delete': False, 'details': {'code': 400, 'message': 'Unable to delete item. This service item has a related Service item', 'offending_items': []}}Expected behavior
offending_items should return a list of the related items.
Platform (please complete the following information):