freemo
0a8e5cb388
fix(cli): display resource name in project show linked resources list
...
- What was implemented
- Added _resolve_resource_names() helper in src/cleveragents/cli/commands/project.py that queries the Resource Registry to map resource ULIDs to their namespaced names, with graceful fallback to None when the registry is unavailable or a resource has no name
- Updated _project_spec_dict() to accept an optional resource_names dict parameter and include resource_name alongside resource_id in JSON/YAML output formats
- Updated show command to resolve resource names before display, showing human-readable names (e.g. local/my-git-repo) instead of raw ULIDs, falling back to ULID when name is unavailable
- Added BDD feature file features/project_show_resource_name.feature with 6 regression scenarios
- Added step definitions features/steps/project_show_resource_name_steps.py
- Key design decisions
- Graceful degradation: if the Resource Registry is unavailable, the show command still works and falls back to displaying the raw ULID
- Resources without names (auto-discovered) also fall back to ULID display
- JSON/YAML output includes both resource_id and resource_name for completeness
- The fix is minimal and non-breaking: _project_spec_dict() only includes resource_name when resource_names dict is explicitly passed
- Rationale and implementation notes
- _resolve_resource_names() provides a bounded, resilient means to enrich output with human-readable names without breaking on registry failures
- The show command uses resolved names for display while preserving IDs as the underlying data source
- Outputs (JSON/YAML) expose both IDs and names when available, ensuring downstream consumers have full context
- Modules/Components Affected
- src/cleveragents/cli/commands/project.py
- tests/BDD: features/project_show_resource_name.feature
- tests/BDD steps: features/steps/project_show_resource_name_steps.py
- Backwards compatibility
- Non-breaking: if resource_names is not provided or the registry is unavailable, behavior remains compatible by falling back to ULIDs
- Testing
- Added regression scenarios via the new feature file and step definitions to validate name resolution and fallback behavior
ISSUES CLOSED : #2943
2026-06-06 03:29:32 -04:00
..
2026-05-07 20:05:33 +00:00
2026-06-06 00:56:05 -04:00
2026-04-27 07:33:18 +00:00
2026-06-03 11:24:21 -04:00
2026-05-29 16:36:39 -04:00
2026-06-06 03:29:32 -04:00
2026-06-04 17:43:33 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 23:33:52 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-05 18:12:05 -04:00
2026-05-13 06:49:40 +00:00
2026-06-02 15:41:06 -04:00
2026-04-28 03:22:06 +00:00
2026-04-23 11:46:36 +00:00
2026-06-03 11:24:21 -04:00
2026-05-01 09:10:48 +00:00
2026-05-28 20:47:07 -04:00
2026-05-07 20:05:33 +00:00
2026-05-07 20:05:33 +00:00
2026-05-14 08:10:58 +00:00
2026-05-06 01:07:15 +00:00
2026-04-27 05:00:54 +00:00
2026-05-09 23:13:33 +01:00
2026-05-05 01:33:31 +00:00
2026-06-02 08:44:47 -04:00
2026-04-30 10:56:21 +00:00
2026-06-02 04:52:51 -04:00
2026-05-30 00:36:20 -04:00
2026-05-28 17:35:08 -04:00
2026-05-12 13:02:59 +00:00
2026-05-27 12:14:04 -04:00
2026-04-23 12:19:50 +00:00
2026-04-30 10:56:21 +00:00
2026-05-06 04:08:25 +00:00
2026-04-30 02:05:12 +00:00
2026-05-16 13:38:54 +00:00
2026-06-02 21:16:38 -04:00
2026-06-03 00:53:19 -04:00
2026-06-04 18:44:59 -04:00
2026-06-06 00:23:30 -04:00
2026-05-07 20:05:33 +00:00
2026-05-02 21:54:17 +00:00
2026-05-15 22:19:57 +01:00
2026-05-05 02:01:49 +00:00
2026-06-02 17:06:11 -04:00
2026-05-31 10:55:18 -04:00
2026-06-02 01:25:33 -04:00
2026-04-23 09:08:11 +00:00
2026-05-07 07:08:52 +00:00
2026-04-30 02:05:12 +00:00
2026-04-20 13:54:28 +00:00
2026-05-03 00:39:15 +00:00
2026-06-04 11:47:32 -04:00
2026-05-05 02:01:49 +00:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 14:01:59 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-05-12 01:05:10 +00:00
2026-05-05 02:01:49 +00:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-05-05 02:01:49 +00:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 07:37:14 -04:00
2026-06-02 07:37:13 -04:00
2026-06-01 23:37:30 -04:00
2026-06-01 23:37:30 -04:00
2026-06-01 23:37:30 -04:00
2026-05-09 23:13:33 +01:00
2026-05-05 02:01:49 +00:00
2026-05-16 04:14:17 +00:00
2026-04-21 05:14:07 +00:00
2026-05-11 04:39:29 +00:00
2026-05-07 20:05:33 +00:00
2026-05-30 16:14:46 -04:00
2026-05-16 13:38:54 +00:00
2026-04-23 12:19:50 +00:00
2026-06-02 20:37:35 -04:00
2026-05-30 13:08:44 -04:00
2026-06-06 01:57:44 -04:00
2026-06-04 02:28:50 -04:00
2026-06-04 09:49:11 -04:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-06-01 17:37:24 -04:00
2026-06-01 17:07:39 -04:00
2026-04-30 10:56:21 +00:00
2026-04-21 16:53:08 +00:00
2026-05-16 06:04:01 +00:00
2026-05-08 05:11:47 +00:00
2026-04-24 05:45:20 +00:00
2026-05-19 21:56:28 +01:00
2026-05-05 17:18:16 +00:00
2026-05-07 23:49:20 +00:00
2026-06-02 20:37:35 -04:00
2026-06-02 20:37:35 -04:00
2026-06-02 20:37:35 -04:00
2026-06-02 20:37:35 -04:00
2026-06-02 20:37:35 -04:00
2026-04-20 06:08:50 +00:00
2026-05-07 20:05:33 +00:00
2026-05-29 07:21:08 -04:00
2026-06-03 07:39:45 -04:00
2026-05-13 12:24:33 +00:00
2026-04-24 22:46:41 +00:00
2026-05-16 16:40:54 +00:00
2026-05-02 01:36:45 +00:00
2026-04-30 14:56:33 +00:00
2026-05-05 05:25:28 +00:00
2026-04-28 04:06:57 +00:00
2026-04-28 04:06:57 +00:00
2026-06-04 18:44:59 -04:00
2026-06-02 19:50:41 -04:00
2026-05-31 20:45:10 -04:00
2026-05-31 20:45:10 -04:00
2026-05-19 21:56:28 +01:00
2026-05-30 10:38:39 -04:00
2026-05-05 02:01:49 +00:00
2026-05-22 20:42:25 +01:00
2026-05-19 12:43:34 +00:00
2026-05-19 12:43:34 +00:00
2026-04-26 11:19:10 +00:00
2026-06-04 13:06:20 -04:00
2026-04-23 09:22:33 +00:00
2026-06-05 23:53:43 -04:00
2026-06-05 17:25:35 -04:00
2026-05-28 11:36:14 -04:00
2026-05-11 04:39:29 +00:00
2026-05-19 12:43:34 +00:00
2026-04-24 10:32:15 +00:00
2026-04-21 03:38:05 +00:00
2026-06-02 16:48:22 -04:00
2026-06-02 16:48:22 -04:00
2026-05-19 12:43:34 +00:00
2026-05-19 12:43:34 +00:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-06-03 03:22:59 -04:00
2026-05-05 02:01:49 +00:00
2026-06-03 05:00:01 -04:00
2026-04-21 11:31:15 +00:00
2026-06-02 05:14:43 -04:00
2026-05-19 19:28:35 +01:00
2026-05-28 00:05:08 -04:00
2026-05-19 19:28:35 +01:00
2026-05-19 19:28:35 +01:00
2026-05-07 20:05:33 +00:00
2026-05-19 12:43:34 +00:00
2026-05-19 12:43:34 +00:00
2026-05-09 12:23:24 +00:00
2026-05-09 12:23:24 +00:00
2026-05-12 08:30:24 +00:00
2026-05-12 08:30:24 +00:00
2026-06-03 09:01:44 -04:00
2026-05-05 02:01:49 +00:00
2026-06-03 03:22:59 -04:00
2026-05-14 22:57:11 +00:00
2026-05-22 20:42:25 +01:00
2026-06-03 12:16:30 -04:00
2026-06-03 00:24:21 -04:00
2026-06-03 03:03:14 -04:00
2026-05-05 02:01:49 +00:00
2026-06-04 20:36:52 -04:00
2026-05-08 09:32:29 +00:00
2026-05-29 03:59:05 -04:00
2026-05-05 17:18:16 +00:00
2026-06-02 04:09:01 -04:00
2026-06-03 17:30:22 -04:00
2026-06-03 17:30:22 -04:00
2026-05-08 09:57:18 +00:00
2026-05-07 20:05:33 +00:00
2026-06-06 03:29:32 -04:00
2026-05-05 06:16:46 +00:00
2026-05-05 06:16:46 +00:00
2026-05-18 06:05:54 +00:00
2026-05-31 15:39:36 -04:00
2026-05-30 15:43:56 -04:00
2026-06-02 20:37:35 -04:00
2026-06-05 23:20:31 -04:00
2026-05-30 15:43:56 -04:00
2026-06-04 04:23:37 -04:00
2026-05-07 20:05:33 +00:00
2026-06-06 01:37:38 -04:00
2026-06-06 01:37:38 -04:00
2026-04-30 10:03:08 +00:00
2026-05-03 00:17:15 +00:00
2026-06-06 00:56:05 -04:00
2026-04-21 11:56:19 +00:00
2026-06-06 01:15:58 -04:00
2026-05-11 08:59:08 +00:00
2026-06-01 00:40:59 -04:00
2026-05-29 07:21:08 -04:00
2026-06-02 19:50:41 -04:00
2026-06-02 15:41:06 -04:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-05-05 02:01:49 +00:00
2026-06-02 15:41:06 -04:00
2026-05-31 19:27:43 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-06-02 15:41:06 -04:00
2026-05-11 04:39:29 +00:00
2026-05-11 04:39:29 +00:00
2026-05-30 08:29:22 -04:00
2026-05-30 04:04:21 -04:00
2026-05-08 06:24:23 +00:00
2026-05-22 20:42:25 +01:00
2026-05-14 06:46:27 +00:00
2026-06-02 19:50:41 -04:00
2026-04-21 01:59:07 +00:00
2026-05-30 02:07:41 -04:00
2026-04-30 02:05:12 +00:00
2026-04-25 04:21:23 +00:00
2026-05-29 15:26:47 -04:00
2026-05-14 22:57:11 +00:00
2026-05-12 10:17:39 +00:00
2026-06-02 05:51:55 -04:00
2026-05-07 23:39:08 +01:00
2026-06-02 03:39:50 -04:00
2026-04-28 09:23:33 +00:00
2026-05-12 16:45:59 +00:00
2026-04-21 06:42:10 +00:00
2026-04-28 10:12:06 +00:00
2026-05-05 04:04:13 +00:00
2026-04-26 18:23:48 +00:00
2026-04-26 12:19:34 +00:00
2026-05-05 09:37:22 +00:00
2026-05-02 21:57:54 +00:00
2026-05-15 02:41:37 +00:00
2026-05-23 00:01:44 +00:00
2026-04-24 19:01:56 +00:00
2026-05-05 17:48:39 +00:00
2026-05-30 00:09:20 -04:00
2026-06-02 07:19:20 -04:00
2026-05-31 15:00:33 -04:00
2026-05-07 14:22:57 +00:00
2026-06-02 18:42:43 -04:00
2026-05-13 12:24:33 +00:00
2026-04-26 17:34:52 +00:00
2026-06-01 00:40:59 -04:00
2026-05-07 19:14:53 +00:00
2026-04-27 01:12:35 +00:00
2026-04-23 18:29:11 +00:00
2026-04-22 00:45:09 +00:00
2026-05-13 07:13:34 +00:00
2026-04-28 07:33:43 +00:00
2026-05-27 23:17:15 -04:00
2026-05-29 05:08:08 -04:00
2026-04-27 07:33:18 +00:00
2026-04-27 07:33:18 +00:00
2026-04-24 04:11:54 +00:00
2026-05-28 12:52:19 -04:00
2026-04-21 08:45:06 +00:00
2026-05-30 03:33:08 -04:00
2026-05-19 12:43:34 +00:00
2026-06-02 00:38:09 -04:00
2026-05-27 00:46:19 -04:00
2026-06-02 00:38:09 -04:00
2026-05-22 15:12:04 +00:00
2026-04-23 23:01:46 +00:00
2026-05-30 02:34:32 -04:00
2026-06-04 13:06:19 -04:00
2026-06-04 13:06:20 -04:00
2026-05-08 11:15:36 +00:00
2026-06-02 00:38:09 -04:00
2026-06-02 00:38:09 -04:00
2026-04-22 06:37:17 +00:00
2026-05-29 03:59:05 -04:00
2026-06-02 04:29:20 -04:00
2026-04-30 10:56:21 +00:00