← Back to issue list

Investigate why `list-keys` makes repeated API calls

View original Github issue

Metadata

Project
snapcraft
Number
#5683
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Research
Created
Updated
Closed

Current evaluation

Research task to reduce repeated API calls in snapcraft list-keys. The command was removed and replaced with 'keys' (PR #6144), which uses a single get_account_info() call. The referenced legacy test file no longer exists. No activity in ~13 months.

Suggested action: close stale

Reason: The list-keys command was removed and replaced with 'keys' in PR #6144 (commit 30c9fcd19). The new StoreKeysCommand makes a single get_account_info() API call rather than repeated calls. The referenced test file tests/legacy/unit/commands/test_list_keys.py was deleted in that same commit. The original problem is no longer applicable to the current codebase.

Impact: 15 Quick Win: 11.25 Staleness: 85 Complexity: 25 Confidence: 82 Support Request: 5

Issue body

### What needs to get done See if we can reduce the number of API calls in `snapcraft list-keys`. ### Why it needs to get done `snapcraft list-keys` makes repeated API calls to list keys, which can be seen in the unit tests [here](https://github.com/canonical/snapcraft/blob/d5ddb55443782ef571ec97a53b92f8d58b3eac74/tests/legacy/unit/commands/test_list_keys.py#L29).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 11.25
Staleness: 85
Complexity: 25
Confidence: 82
Support Request: 5
close stale Research task to reduce repeated API calls in snapcraft list-keys. The command was removed and replaced with 'keys' (PR #6144), which uses a single get_account_info() call. The referenced legacy test file no longer exists. No activity in ~13 months.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 10
close stale Investigate reducing repeated API calls in `snapcraft list-keys` command. Issue is triaged, labeled as research, and has been inactive for over a year with no technical discussion or assignee.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 5
keep open Investigate and reduce repeated API calls in the snapcraft list-keys command. The task is triaged but has been inactive for over a year with no assignee or progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 30
Confidence: 85
Support Request: 5
keep open Investigate and reduce repeated API calls in the snapcraft list-keys command. Triaged as a research task, but inactive for over 300 days and awaiting assignment.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#6144 (confidence 75%)

    PR 'refactor: migrate keys command' removed list-keys and replaced it with 'keys' which uses a single get_account_info() call instead of repeated API calls

Related issues

Issue Project State Summary Similarity
#1720207 snapcraft list-keys returns no keys, but the user has keys snapcraft (launchpad) open Maintainer elopio reported snapcraft list-keys showing an empty table despite the user having a registered key, while create-key says a 'default' key exists. Zero comments, no activity for ~6.4 years; the list-keys command has since been removed and replaced by keys.
72%