Adding request info does not use specified request_id for BatchRequestContent #810
Labels
P1
Priority
priority:p1
High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days
type:bug
A broken experience
Describe the bug
Trying to add batch request steps with custom request IDs so that I can track the responses, however the custom request ID is always overridden to a random uuid
Expected behavior
Should be able to specify a custom request ID as specified in the function doc strings and in samples.
How to reproduce
You can track this through:
msgraph_core/requests/batch_request_content.py
When creating the BatchRequestItem (msgraph_core/requests/batch_request_item.py), we've not passed the request ID into the init, so a random one is assigned to the Item:
The custom one is then only used if there isn't one already on the request, which is impossible here because of the initialisation of the item object:
So it's impossible for you to set a custom request ID through the
add_request_information
function. Either we should pass the custom one into the initialisation of the Item, or the "add_request" function should be checking for whether we have arequest_id
not arequest.id
. Suspect it should be the latter otherwise the function signature makes no sense.SDK Version
1.17.0 of the SDK, 1.20.0 of msgraph-core
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: