Skip to content

Commit a633ce0

Browse files
authored
[ISSUE-1241] #1241, added propagation of advanced_mode flag for put, (#1243)
`post`, `patch`, and `delete` functions. Prior to this change, the `advanced_mode` flag was only propagated to the `request` method for `get` calls. The `advanced_mode` `requests.Response` object is very useful in having code gracefully handle rate limit 429 responses from the server since the response headers will include the necessary backoff information that the client should use before making another request.
1 parent 176da86 commit a633ce0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atlassian/rest_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def post(
343343
params=params,
344344
trailing=trailing,
345345
absolute=absolute,
346+
advanced_mode=advanced_mode,
346347
)
347348
if self.advanced_mode or advanced_mode:
348349
return response
@@ -379,6 +380,7 @@ def put(
379380
params=params,
380381
trailing=trailing,
381382
absolute=absolute,
383+
advanced_mode=advanced_mode,
382384
)
383385
if self.advanced_mode or advanced_mode:
384386
return response
@@ -420,6 +422,7 @@ def patch(
420422
params=params,
421423
trailing=trailing,
422424
absolute=absolute,
425+
advanced_mode=advanced_mode,
423426
)
424427
if self.advanced_mode or advanced_mode:
425428
return response
@@ -457,6 +460,7 @@ def delete(
457460
params=params,
458461
trailing=trailing,
459462
absolute=absolute,
463+
advanced_mode=advanced_mode,
460464
)
461465
if self.advanced_mode or advanced_mode:
462466
return response

0 commit comments

Comments
 (0)