You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commands that return a single KV now return proj and env details as well (#471)
- Introduces `KeyValueSerivce.Resolve` method. Similar to `PostgresService.Resolve`, except that it returns the project and environment (if applicable) as well.
- For commands that deal with a single, existing Key Value, swap to this new Resolve method, and move any other service code into KeyValue service instead of the one-off methods that were not correctly using our dependency system.
I need to clamp down the desired JSON output shape for all KV commands, instead of just blindly returning what the API gives us.
The desired shape includes environment ID and project ID, which we don't always have on the KV Detail we get back from API.
In order to set us up for this, everywhere I "resolve" a single Key Value today, I need to make sure it's enriched with project and environment.
This way, text output can show "name (ID)" and JSON output can have environmnt_id and project_id
Note, these fields will of course be empty for ungrouped Key Values.
PR 2 of X for https://linear.app/render-com/issue/GROW-2587/slim-down-kv-json-output-to-resource-only
GitOrigin-RevId: 35992c65c6df57b450045103e5f4c823cfc69f91
0 commit comments