Describe the bug
When using create_dependency_graph to build an item graph for a WebMap, the function creates dependencies based on the unique identifier of a layer within the WebMap, rather than the Portal Item ID of that layer. This leads to many unresolved entries when calling .contains_by().
Sometimes, the unique identifier of layers in a map looked like this ---> mostly for the grouped layer:
3f4b91f98b3c459f801b2e909b784ee0
This format was very similar to the unique identifier of layers in the portal.
However, most of ID for layers in webmap looks like:
196fu77474c-layer-62
This differences causes issues with the create_dependency_graph function because it uses the layer’s unique identifier from the WebMap to create dependencies, rather than referencing the Portal Item itself.
Expected behavior
Build dependencies to the correct id (Portal Item ID).
Platform (please complete the following information):
- Python API Version - 2.4.2
Additional context