move-coop / parsons

A python library of connectors for the progressive community.
https://www.parsonsproject.org/
Other
258 stars 128 forks source link

Add targets handler to NewMode Connector #850

Closed IanRFerguson closed 1 year ago

IanRFerguson commented 1 year ago

The Newmode class currently doesn't allow the user to query the targets endpoint directly. This proposed feature would allow the user to query one or more target values from the NewMode API.

Detailed Description

This proposal simply adds a get_targets() function to the Newmode class, following the same logic as other functions in this class.

Context

TMC recently developed a sync-in for targets data from the New/Mode API and developed a modular solution in our in-house code. This enhancement in Parsons is a relatively simple lift, and would reduce redundancies in the Parsons / TMC codebases.

Priority

Quite low priority - TMC has code to accomplish this already written, so it will simply be a matter of adding and testing