package-repositories should be searchable by name

Bug #1724973 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Low
Unassigned

Bug Description

When working with package repositories (actually this is applicable to any object you can work with in MAAS), the only way to read a specific repository is by passing the secret ID:

maas admin package-repositories read $ID

where ID is some number starting at 0.

I have no idea what the ID of a repo is. None. I can read them all, then parse the data and determine that at this point, the third repository listed in the MAAS UI has an id of 28, NOT 3.

I dont have issue with using ID as a search key but I should also be able to search/read based on Name matching, which is far more natural.

Thus:

maas admin package-repositories read name="My Custom PPA"

which would return the data for the repository where the name key matches the string "My Custom PPA".

When I'm writing a script (bash, thus not using the python library), it's much less complex to simply ask for data based on a natural key, rather than having to parse ALL data to match an arbitrary numeric key to a natural identifier like Name.

Same when manually managing maas via the MAAS CLI in general.

Jeff Lane  (bladernr)
summary: - package-repositories should be searchable by name
+ [2.3]package-repositories should be searchable by name
Changed in maas:
importance: Undecided → Wishlist
status: New → Triaged
milestone: none → next
Revision history for this message
Blake Rouse (blake-rouse) wrote : Re: [2.3]package-repositories should be searchable by name

This really isn't an issue with the API. We provide a RESTAPI which should use unique ID's to reference objects.

This is more of an issue with the CLI, which will come when the new CLI is complete.

Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
Jeff Lane  (bladernr)
Changed in maas:
status: Invalid → Confirmed
summary: - [2.3]package-repositories should be searchable by name
+ package-repositories should be searchable by name
Changed in maas:
status: Confirmed → Triaged
importance: Wishlist → Low
milestone: next → none
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

Feature request moved to internal backlog for future prioritisation (Internal ref. PF-3911)

Changed in maas:
status: Triaged → Invalid
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.