Pro API missing end-point to query service availability

Bug #2060051 reported by Nathan Teodosio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
In Progress
Undecided
Dheyay Desai

Bug Description

I was investigating removing Software Properties calls to pro 'security-status --format=json' because it is deprecated and has at least a known fail point.

But the API doesn't seem to provide an end-point to query the availability of a service, which is required at [1]. Assuming I didn't miss anything, I'd like to request the addition of such an end-point.

Please note that the program is currently using /var/lib/ubuntu-advantage/status.json as its first source of information and only has --format=json as a fallback, so this is no pressing matter, but it is a pre-requisite for moving away from those two approaches.

[1] https://git.launchpad.net/ubuntu/+source/software-properties/tree/softwareproperties/gtk/utils.py#n145

description: updated
Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Hello, Nathan,
Thank you very much for reporting this bug.

The team is aware of the gaps and we have an open item to implement the missing API endpoints.
We will keep you posted.

Changed in ubuntu-advantage-tools (Ubuntu):
assignee: nobody → Dheyay Desai (dheyayd)
Changed in ubuntu-advantage-tools (Ubuntu):
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.