Skip to content

Support --fields on get and document its summary default - #17

Merged
sharoonthomas merged 1 commit into
fulfilio:masterfrom
debdutgoswami:feat/respect-find-for-get
Aug 25, 2026
Merged

Support --fields on get and document its summary default#17
sharoonthomas merged 1 commit into
fulfilio:masterfrom
debdutgoswami:feat/respect-find-for-get

Conversation

@debdutgoswami

@debdutgoswami debdutgoswami commented Aug 25, 2026

Copy link
Copy Markdown
Member

get returns each model's summary serialization — a handful of fields
with no indication the record is partial and no way to request more
(issue #16). An agent reading get output can wrongly conclude a field
is not exposed through the API.

get now accepts --fields, routed through the same find endpoint as
list with an exact-id filter, so any field is reachable:

fulfil sales_channel get 42 --fields settings_json,configuration

Without --fields the summary representation is returned unchanged, and
the help text now states that it is partial. On the --fields path,
missing IDs fail with exit code 5 and results keep input ID order.

@debdutgoswami
debdutgoswami force-pushed the feat/respect-find-for-get branch from d787338 to 3268f3d Compare August 25, 2026 18:45
@debdutgoswami debdutgoswami changed the title Route get through find to support --fields Clarify in get help that output is a partial representation Aug 25, 2026
@debdutgoswami
debdutgoswami force-pushed the feat/respect-find-for-get branch from 3268f3d to 3c477ec Compare August 25, 2026 18:47
get returns each model's summary serialization — a handful of fields
with no indication the record is partial and no way to request more
(issue fulfilio#16). An agent reading get output can wrongly conclude a field
is not exposed through the API.

get now accepts --fields, routed through the same find endpoint as
list with an exact-id filter, so any field is reachable:

    fulfil sales_channel get 42 --fields settings_json,configuration

Without --fields the summary representation is returned unchanged, and
the help text now states that it is partial. On the --fields path,
missing IDs fail with exit code 5 and results keep input ID order.
@debdutgoswami
debdutgoswami force-pushed the feat/respect-find-for-get branch from 3c477ec to c43bdac Compare August 25, 2026 19:05
@debdutgoswami debdutgoswami changed the title Clarify in get help that output is a partial representation Support --fields on get and document its summary default Aug 25, 2026
@sharoonthomas
sharoonthomas merged commit 28ac41c into fulfilio:master Aug 25, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants