microsoftgraph / microsoftgraph/msgraph-sdk-python

Filter clause not working anymore in ItemsRequestBuilderGetQueryParameters

オープン
#1,043 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

priority:p2 type:bug
主要言語
Python
スター
630
フォーク
96
平均マージ
15時間 20分
マージ済み PR(30日)
3

説明

Describe the bug

I have a query that's using this code to retrieve a folder by name:

onedrive = await client.me.drive.get()
query_params = ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters(
        filter="name eq 'some_name'"
    )
config = RequestConfiguration(query_parameters=query_params)
subfolder = (await client.drives.by_drive_id(onedrive.id).items.get(request_configuration=config)).value

but suddenly it's not working anymore.
The filter based on the name just returns all 200 subfolders of onedrive.

Expected behavior

Just the folder with "some_name" is retrieved

How to reproduce
onedrive = await client.me.drive.get()
query_params = ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters(
        filter="name eq 'some_name'"
    )
config = RequestConfiguration(query_parameters=query_params)
subfolder = (await client.drives.by_drive_id(onedrive.id).items.get(request_configuration=config)).value
SDK Version

1.15.0

Latest version known to work for scenario above?

No response

Known Workarounds

Maybe switching to ChildrenRequestBuilder and using items.by_drive_items_id(ID).children.get(query_params with name filter)

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters と RequestConfiguration を使用して、SDK バージョン 1.15.0 に対して報告された再現手順を実行します。結果を、提案されている ChildrenRequestBuilder の回避策と比較し、フィルターが送信されて適用されるかを確認します。リクエストが "some_name" という名前のフォルダーのみを返せば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。