Skip to content

Instruments/sensors list method could benefit from a manufacturers_id/locations_id argument #74

@mngh037

Description

@mngh037

Description

Currently, to filter instruments by manufacturers_id we're calling client.manufacturers.instruments(manufacturers_id=4).

Feature suggestion

Even the same thing is achieved, this suggestion to add manufacturers_id as an argument to Instruments resource list() method will make it easier to use the SDK as this is the pattern commonly used for other resources (hence users could naturally apply the same logic). Performance and redundancy could be potential pushback to implementing this feature, however.

This means that we could then filter instruments by manufacturers_id by calling client.instruments.list(manufacturers_id=4)

The same could be done for the sensors resource, where users could potentially filter sensors by locations_id like so: client.sensors.list(locations_id=42)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions