Esri / Esri/arcgis-python-api

Option not to hydrate the Portal Item

Offen
#2,294 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
1.1k
Ø Merge
2 Std. 40 Min.
Gemergte PRs (30 T.)
2

Beschreibung

**Is your feature request related to a problem? Please describe.**
I've registered some external public services in my Portal, my end users can access these services on their systems in the browser and in ArcGIS Pro.
I also have a machine where I run some management scripts and this machine cannot communicate with internet resources and these external services, but it can communicate with my Portal.
When I run my scripts with ArcGIS API for Python it loads these Portal Items and try do do things, such as setting the delete protection property, sharing the item etc, and it takes a lot of time, like multiple minutes for each operation.
I think this is because everything I try to do is forcing ArcGIS API for Python to rehydrate the PortalItem and in this process, it tries to reload the layers from the external service, which cannot be accessed from the machine and this script.

```python

```

**Describe the solution you'd like**
Have the option to only rehydrate on demand, by setting some kind of boolean which prevents the current automatic rehydrates, or maybe have the option not to load the layers in some way?

**Describe alternatives you've considered**
Do to the security policies, allowlisting on the firewall / proxy isn't possible on this machine, otherwise I would have done that.

**Additional context**

Thanks for considering :-)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit dem PortalItem-Handling der ArcGIS API for Python und reproduzieren Sie die gemeldeten Vorgänge des Management-Skripts auf einer Maschine, die die externen Dienste nicht erreichen kann. Legen Sie fest, wie sich ein Opt-out von der automatischen Hydratisierung auf Item-Operationen auswirken soll, und überprüfen Sie, dass Layer-Daten nur geladen werden, wenn dies ausdrücklich angefordert wird, während das bestehende PortalItem-Verhalten weiterhin verfügbar bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.