You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce and use consistently APIOptions throughout (#323)
* new api options machinery ready in place
* WIP switching to new api options. client done
* WIP on the options, Database module done
* WIP on switching to new options, collections are missing
* wip in the Options switch: tests are missing
* options everywhere, tests working as well
* moving scalar defaults from api_options to defaults.py
* support for custom headers in all request-issuing objects
* export API options at higher level
* removed a spurious emb.h.prov. coercion test
Copy file name to clipboardExpand all lines: CHANGES
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,18 @@
1
1
v 2.0.0
2
2
=======
3
+
Support for arbitrary 'database' and 'admin' headers throughout the object chain
4
+
Reworked the options system:
5
+
- an APIOptions object inherited at each "spawn" operation, with overrides
6
+
- environment-dependent defaults if nothing supplied
7
+
- "spawn" operations expose top-level aliases for selected settings
8
+
- per-method overrides. For timeouts, `max_time_ms` becomes an alias for more specific timeout types
9
+
- collection and database's `info` method gets timeout parameters
10
+
- (not user-facing) classes in the hierarchy other than DataAPIClient have breaking changes in their constructor (now options-first and keyword-arg-only)
3
11
Major restructuring of the codebase into directories
4
12
- BaseCursor not exported by astrapy.cursors anymore
5
13
- some imports (supposedly not used externally) changed slightly
0 commit comments