-
Notifications
You must be signed in to change notification settings - Fork 25
Description
#343 solved get_jobs() but not get_job(), which still calls the unversioned endpoint. It looks like the data munging steps that were added in get_jobs() could be factored out and used in get_job(), but there another difference that I can see in the fixtures that were recored in #343: the unversioned job endpoint includes logs, but the v1 does not. There is a separate endpoint for that in v1, and it looks like it returns data in a different structure too: https://docs.posit.co/connect/api/#get-/v1/content/-guid-/jobs/-key-/log
Since the get_job() function was marked as experimental, I don't think that it's worth trying to mimic the shape of the data that the old API returned. We should probably just break compat and make a new get_logs() function--that's probably the reason you would have called get_job() anyway?