Skip to content

[ISSUE-1241] #1241, added propagation of advanced_mode flag #1243

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

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

2ps
Copy link
Contributor

@2ps 2ps commented Sep 9, 2023

#1241

added propagation of the advanced_mode flag for put, 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.

… flag for `put`,

`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.
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (176da86) 34.47% compared to head (ffbf143) 34.47%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1243   +/-   ##
=======================================
  Coverage   34.47%   34.47%           
=======================================
  Files          44       44           
  Lines        8105     8105           
  Branches     1118     1118           
=======================================
  Hits         2794     2794           
  Misses       5197     5197           
  Partials      114      114           
Files Changed Coverage Δ
atlassian/rest_client.py 67.97% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gonchik
Copy link
Member

gonchik commented Sep 10, 2023

@2ps could you update a docs please?

@gonchik gonchik merged commit a633ce0 into atlassian-api:master Sep 10, 2023
@2ps
Copy link
Contributor Author

2ps commented Sep 15, 2023

@2ps could you update a docs please?

Apologies for missing this. Will address in a separate PR since this one has already been merged.

@2ps
Copy link
Contributor Author

2ps commented Sep 15, 2023

@2ps could you update a docs please?

My bad, it looks like this was already included in the docs for put, post, patch, and delete but just had not been wired in. At least from my review there were no docs to update. Please do point me in the right direction if I have overlooked something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants