Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes the CLI’s hardcoded default "description" field from various create/import payloads so descriptions are only sent when intentionally provided, improving payload predictability.
Changes:
- Removed default
"description"stamping from item import payloads and environment import-create payloads. - Removed default
"description"stamping from multiplemkdirpayload builders (workspace, item, folder, connection, gateway). - Updated/added tests to stop expecting default descriptions and to assert description absence by default.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_utils/test_fab_cmd_mkdir_utils.py | Updates existing connection-payload tests and adds new assertions about description presence/absence. |
| tests/test_core/test_fab_hiearchy.py | Removes "Imported from fab" expectations and adds a regression test that import payloads don’t auto-stamp description. |
| src/fabric_cli/utils/fab_cmd_import_utils.py | Removes hardcoded "Imported from fab" from get_payload_for_item_type() payloads. |
| src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_workspace.py | Removes hardcoded "Created by fab" from workspace create payload. |
| src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_item.py | Removes hardcoded "Created by fab" from item create payload. |
| src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_gateway.py | Removes leftover commented default description from gateway payload block. |
| src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_folder.py | Removes hardcoded "Created by fab" from folder create payload. |
| src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_connection.py | Removes hardcoded "Created by fab" from connection create payload. |
| src/fabric_cli/commands/fs/impor/fab_fs_import_item.py | Removes hardcoded "Imported from fab" from environment item create payload. |
ayeshurun
reviewed
Apr 19, 2026
Co-authored-by: Alon Yeshurun <98805507+ayeshurun@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/fabric_cli/commands/fs/mkdir/fab_fs_mkdir_connection.py:121
mkdir connectionadvertisesdescriptionas an optional param, but the request payload never copiesargs.params['description']intopayload(andget_connection_config_from_paramsdoes not apply it either). After removing the hardcoded default description, any user-provided description will be silently ignored. Populate the payloaddescriptionfrom params (or haveget_connection_config_from_paramsdo it) when provided so CLI behavior matches the parameter contract.
# Base payload
payload = {
"displayName": connection.short_name,
"connectivityType": connectivityType,
}
if gateway_id:
payload["gatewayId"] = gateway_id
payload = mkdir_utils.get_connection_config_from_params(
payload, con_type, con_type_def, args.params
)
added 2 commits
April 20, 2026 09:46
Collaborator
Author
|
@copilot resolve the merge conflicts in this pull request |
ayeshurun
reviewed
Apr 20, 2026
ayeshurun
reviewed
Apr 20, 2026
ayeshurun
reviewed
Apr 20, 2026
added 2 commits
April 20, 2026 12:24
…/github.com/aviatco/fabric-cli into dev/aviatcohen/remove-hardcoded-description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📥 Pull Request
✨ Description of new changes
resolving issue #213
This pull request removes the automatic addition of default
"description"fields (such as "Created by fab" or "Imported from fab") from payloads created by the CLI for items, folders, gateways, and connections. Now, descriptions are only included in payloads if explicitly provided by the user. The change is thoroughly tested to ensure backward compatibility and correct behavior.Key changes:
Removal of hardcoded descriptions from payloads:
"description"field from payloads in item, folder, gateway, workspace, and connection creation logic across files likefab_fs_import_item.py,fab_fs_mkdir_item.py,fab_fs_mkdir_folder.py,fab_fs_mkdir_gateway.py,fab_fs_mkdir_workspace.py, and related utility functions. [1] [2] [3] [4] [5] [6] [7]Test updates and new test coverage:
"description"fields in payloads. [1] [2] [3] [4] [5] [6] [7]"description"unless explicitly provided, and that user-supplied descriptions are preserved and forwarded correctly. [1] [2]Connection payload improvements:
get_connection_config_from_params) do not add a"description"by default, and only include it if the user supplies one. [1] [2] [3] [4]These changes make payload construction more predictable and ensure that metadata is only included when intentionally specified by the user.