Skip to content

Add the Connect version as a resource attribute. #272

@tdstein

Description

@tdstein

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsdkUsed for automation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions