microsoftgraph / microsoftgraph/msgraph-sdk-java

Channel layoutType property is missing in the SDK

Offen
#2,586 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

status:waiting-for-triage type:bug
Vorherrschende Sprache
Java
Sterne
444
Forks
154
Ø Merge
18 Std. 28 Min.
Gemergte PRs (30 T.)
4

Beschreibung

Describe the bug

The property layoutType is missing for the graph.models.Channel-Object. Without it reading the actual value of a channel is hard. Patching the property can be done with some workarounds using additionalData (see below).

The object:
Image

A graph request:
https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}
Image

Expected behavior

The property should be present in the graph.models.Channel-Object. Also an enum for the two allowed values would be nice.

How to reproduce

Simply use some sdk version and try to read or patch the layoutType of a channel.

SDK Version

6.63

Latest version known to work for scenario above?

none I guess

Known Workarounds

For a patch you can use one of:

.getAdditionalData().put("layoutType", "post");
.getAdditionalData().put("layoutType", "chat");

I don't know if there is a workaround for reading.

Debug output

No response

Configuration

This should not impact the issue, since it is not present in the models of the java-SDK.

Other information

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem Modell graph.models.Channel und vergleiche es mit dem Microsoft Graph channels endpoint, der im Issue gezeigt wird. Füge Unterstützung für das Lesen und Patchen von layoutType hinzu, einschließlich der beiden zulässigen Werte, und überprüfe anschließend, dass das SDK die Eigenschaft ohne Verwendung von additionalData verfügbar macht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
64/100

Neue Issues direkt in Ihr Postfach

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