Description
When creating items, workspaces, folders, or connections via mkdir, the CLI hardcodes "description": "Created by fab" in the API payload. Similarly, import hardcodes "Imported from fab". Users have no way to override or opt out of this description.
This is problematic because:
- Users may not want a default description on their resources
- Downstream services may propagate this description to child objects, causing unexpected metadata pollution
- The CLI should not stamp metadata that the user didn't explicitly request
Affected files
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_item.py
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_workspace.py
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_folder.py
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_connection.py
src/fabric_cli/commands/fs/impor/fab_fs_import_item.py
Proposed fix
Remove the hardcoded "description" field from the API payloads so that resources are created without a default description unless the user explicitly provides one.
Existing since
v1.1.0 (initial release)
Description
When creating items, workspaces, folders, or connections via
mkdir, the CLI hardcodes"description": "Created by fab"in the API payload. Similarly,importhardcodes"Imported from fab". Users have no way to override or opt out of this description.This is problematic because:
Affected files
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_item.pysrc/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_workspace.pysrc/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_folder.pysrc/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_connection.pysrc/fabric_cli/commands/fs/impor/fab_fs_import_item.pyProposed fix
Remove the hardcoded
"description"field from the API payloads so that resources are created without a default description unless the user explicitly provides one.Existing since
v1.1.0 (initial release)