Skip to content

Commit 768595b

Browse files
committed
changie
1 parent dc9a581 commit 768595b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: optimization
2+
body: set command - refactor the update flow to construct PATCH request bodies by extracting only the updated properties from the GET payload.
3+
time: 2026-01-01T11:54:02.344718831Z

src/fabric_cli/commands/fs/set/fab_fs_set_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def exec(item: Item, args: Namespace) -> None:
5757
item_api.update_item(args, item_update_payload, item_uri=True)
5858

5959
if fab_constant.ITEM_QUERY_DISPLAY_NAME in update_payload_dict:
60-
new_item_name = update_payload_dict[fab_constant.ITEM_QUERY_DISPLAY_NAME]
60+
new_item_name = update_payload_dict[
61+
fab_constant.ITEM_QUERY_DISPLAY_NAME
62+
]
6163
item._name = new_item_name
6264
utils_mem_store.upsert_item_to_cache(item)
6365

@@ -69,7 +71,6 @@ def _update_item_definition(
6971
query_value: str,
7072
input_value: str,
7173
) -> dict:
72-
"""Update item definition with base64 decode/encode."""
7374
try:
7475
updated_def = utils_set.update_item_definition(
7576
item_def,
@@ -89,7 +90,6 @@ def _update_item_metadata(
8990
query_value: str,
9091
input_value: str,
9192
) -> dict:
92-
"""Update item metadata without base64 encoding."""
9393
try:
9494
return utils_set.update_fabric_element(
9595
item_metadata,

0 commit comments

Comments
 (0)