Skip to content

fix: sort projects, environments, and services alphabetically in context set#681

Merged
acarranoqovery merged 2 commits into
mainfrom
claude/qovery-context-set-sorting-fae385
Jul 21, 2026
Merged

fix: sort projects, environments, and services alphabetically in context set#681
acarranoqovery merged 2 commits into
mainfrom
claude/qovery-context-set-sorting-fae385

Conversation

@acarranoqovery

@acarranoqovery acarranoqovery commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • qovery context set listed orga, projects, environments, and services in whatever order the API returned them, making the interactive picker hard to scan for orgs/environments with many entries.
  • Sorts each list alphabetically right after collecting the names, before they're shown in the promptui.Select picker.

Test plan

  • go build ./... succeeds
  • [ x] Manually run qovery context set against an org with multiple projects/environments/services and confirm the picker lists are alphabetized

…ext set

The interactive pickers in 'qovery context set' listed projects,
environments, and services in API response order instead of
alphabetically, making them hard to scan for orgs with many entries.
sort.Strings does a byte-wise ASCII comparison, so mixed-case names
(e.g. "Production", "staging", "Development") sorted as all-uppercase-
first rather than true alphabetical order. Switch to a case-insensitive
sort and apply it consistently to organizations, projects, environments,
and services.
@acarranoqovery
acarranoqovery merged commit 210d6c6 into main Jul 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants