Skip to content

Remove hardcoded "Created by fab" description from mkdir and import commands #213

@HasanAboShally

Description

@HasanAboShally

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions