-
Notifications
You must be signed in to change notification settings - Fork 8
Description
It's happening! We're adding support for an API endpoint that only exists on newer Connect versions (#267).
We need to raise a NotImplementError when calling these methods against a Connect version older than August 2024. One way to approach this is by checking the result of client.version. Let's add some core logic that injects this information into all resources.
Important! By default, Connect returns this information in the server settings API. But, this functionality can be turned off via Connect configuration. Therefore, we cannot always depend on this method for obtaining the Connect version. We need to accommodate these scenarios. A simple approach assumes the server supports the API if the Connect version is unknown. Then, use a requests hook to fail in a sensible way.