FLY_ORG env var is not respected by redis or pg subcommands
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the fly pg and fly redis subcommands that handle org context, and compare their behavior with commands such as fly apps that already use FLY_ORG. Verify the list commands filter by the environment-selected org and that create and related commands receive the equivalent --org value.
Written by the indexing model from the issue text.
Description
Describe the bug
Briefly, describe what broke and provide the following details:
The fly pg and fly redis commands both have a bunch of subcommands that operate in an org context, like list, create, etc. However, both commands ignore the FLY_ORG env var, which can be used to set an org for other commands like fly apps.
- macOS Ventura 13.6
fly v0.1.104 darwin/arm64 Commit: 682c341cb1b8fc0bc80589fd96d7cad34f1772f0 BuildDate: 2023-09-29T15:46:28Z
** Paste your fly.toml
none
** Command output: **
❯ FLY_ORG=sunchaser fly redis list
NAME ORG PLAN EVICTION PRIMARY REGION READ REGIONS
feedyouremail feedyouremail Free Enabled sjc
sunchaser-redis-cache sunchaser Free Enabled sjc
sunchaser-redis sunchaser 200M Disabled sjc
❯ FLY_ORG=sunchaser fly pg list
NAME OWNER STATUS LATEST DEPLOY
rocket-db personal suspended
feedyouremail-db feedyouremail deployed
feedyouremail-staging-db feedyouremail suspended
sunchaser-db sunchaser deployed
sunchaser-preview-db sunchaser deployed
sunchaser-staging-db sunchaser deployed
Expected result:
Setting FLY_ORG should filter list by org, and set the --org flag on create, etc.
- Dominant language
- Go
- Stars
- 1.7k
- Forks
- 311
- Avg merge
- 12h 50m
- Merged PRs (30d)
- 78
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from superfly/flyctl
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100