microsoftgraph / microsoftgraph/msgraph-sdk-php
Delta request for sites doesn't return the correct ID of the site, only a subset
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 669
- Forks
- 150
- Ø Merge
- 15 Std. 21 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
I am using the latest version (2.3.0), and I want to get the list of all sites.
When I use the classical SitesRequestBuilderGetRequestConfiguration and invoke
$response = $context->sites()->get($configuration)->wait();
I get the correct set of values - instances of \Microsoft\Graph\Generated\Models\Site where ids of all the listed sites conform to the full specification of "Site collection hostname, Site collection unique ID, Site unique ID".
When I use DeltaRequestBuilderGetRequestConfiguration and invoke
$context->sites()->delta()->get()->wait()
all the instances of \Microsoft\Graph\Generated\Models\Site look identical, with the exception of the id field, which is suddenly truncated to the Site unique ID only. (Which isn't really unique globally, only within a certain site collection.)
The official documentation is a bit unclear on this. The example for obtaining the whole set clearly indicates that full ids should be returned:
"id": "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740",
but the "Removed" response only indicates the Site unique ID only.
"id": "bd565af7-7963-4658-9a77-26e11ac73186",
Without consistent behavior, the delta requests will be unusable.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die beiden im Issue gezeigten Aufrufe zu reproduzieren: SitesRequestBuilderGetRequestConfiguration und die sites-delta-Anfrage. Vergleiche die zurückgegebenen Site-IDs mit der Microsoft Graph-Dokumentation zu site-delta, einschließlich des Beispiels für eine entfernte Antwort. Als abgeschlossen gilt die Aufgabe, wenn entweder das SDK-Verhalten korrigiert oder die Inkonsistenz der API bestätigt und eindeutig dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100