Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter clause not working anymore in ItemsRequestBuilderGetQueryParameters #1043

Open
electricjimi opened this issue Dec 20, 2024 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@electricjimi
Copy link

electricjimi commented Dec 20, 2024

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_
@electricjimi electricjimi added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant