microsoftgraph / microsoftgraph/msgraph-sdk-java
PostRequestConfiguration doesn't allow setting of query parameters
オープン
まだ誰も着手していません。
status:waiting-for-triage
type:bug
- 主要言語
- Java
- スター
- 444
- フォーク
- 154
- 平均マージ
- 18時間 28分
- マージ済み PR(30日)
- 4
説明
Describe the bug
When getting a list of users by IDs it is possible to filter and select further with the use of query paramters (same as the get request for all / one user). Unfornuately the Java SDK doesn't allow that. The PostRequestConfiguration only allows to modify the headers of the request.
Expected behavior
Same as the get request:
List<DirectoryObject> page = graphServiceClient.users().getByIds().post(body, config -> {
config.queryParameters.select = new String[] {"onPremisesSamAccountName", "userPrincipalName",
"department"};
}).getValue();
How to reproduce
see above
SDK Version
6.36.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Configuration
No response
Other information
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Java SDK の PostRequestConfiguration と users().getByIds().post のリクエストパスを特定します。その設定処理を対応する GET リクエストと比較し、select などのクエリパラメーターを指定してリクエストに適用できることを示すテストを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100