gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
786 stars 139 forks source link

Add `force=` kwarg to `base()` and `table()` methods #336

Closed mesozoic closed 9 months ago

mesozoic commented 9 months ago

Calling api.base(..., validate=True) multiple times in a row causes excessive network traffic. This branch adds a new force= kwarg that determines whether we ignore cached metadata when validating an ID/name, and by default leaves that behavior off.

Along the way I noticed a test that was broken (it passed when it really shouldn't). Fixed that too.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (542a4a1) 99.61% compared to head (59814ea) 99.61%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #336 +/- ## ======================================= Coverage 99.61% 99.61% ======================================= Files 24 24 Lines 1803 1806 +3 ======================================= + Hits 1796 1799 +3 Misses 7 7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.