Commit e9a8289
Andrew Tergis
feat: allow cfg timeout to be overrided via kwargs
On startup, the `timeout` parameter is loaded from config and stored on
the base gitlab object instance. This instance parameter is used as the
timeout for all API requests (it's passed into the `session` object when
making HTTP calls).
This change allows any API method to specify a `timeout` argument to
`**kwargs` that will override the global timeout value. This was
somewhat needed / helpful for the `import_github` method.
I have also updated the docs accordingly.1 parent aa4d41b commit e9a8289
3 files changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
494 | 496 | | |
495 | 497 | | |
496 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4745 | 4745 | | |
4746 | 4746 | | |
4747 | 4747 | | |
4748 | | - | |
4749 | | - | |
4750 | | - | |
4751 | | - | |
4752 | | - | |
4753 | | - | |
4754 | | - | |
| 4748 | + | |
4755 | 4749 | | |
4756 | 4750 | | |
4757 | 4751 | | |
| |||
4761 | 4755 | | |
4762 | 4756 | | |
4763 | 4757 | | |
4764 | | - | |
4765 | | - | |
| 4758 | + | |
| 4759 | + | |
4766 | 4760 | | |
4767 | 4761 | | |
4768 | 4762 | | |
4769 | 4763 | | |
4770 | 4764 | | |
4771 | 4765 | | |
4772 | | - | |
4773 | 4766 | | |
4774 | 4767 | | |
4775 | 4768 | | |
| |||
4801 | 4794 | | |
4802 | 4795 | | |
4803 | 4796 | | |
4804 | | - | |
4805 | | - | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
| 4803 | + | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
4806 | 4807 | | |
4807 | | - | |
4808 | 4808 | | |
4809 | 4809 | | |
4810 | 4810 | | |
| |||
0 commit comments