Summary
The projects_list tool currently returns all project item fields even when the fields parameter is supplied with a subset of field IDs.
Reproduction
- Call
projects_list with project_id set to a valid project and fields set to a subset of known field IDs.
- Observe response items include field values beyond the requested IDs.
Expected
Only field values for the field IDs listed in fields should be returned.
Actual
All field values are returned.
Notes
Potential root cause is that field filtering is delegated entirely to upstream API behavior and no local projection is enforced before returning results.
Proposed test coverage
- Add a test in
pkg/github/projects_test.go verifying outgoing fields query parameter is present and correctly encoded for list_project_items calls.
Summary
The
projects_listtool currently returns all project item fields even when thefieldsparameter is supplied with a subset of field IDs.Reproduction
projects_listwithproject_idset to a valid project andfieldsset to a subset of known field IDs.Expected
Only field values for the field IDs listed in
fieldsshould be returned.Actual
All field values are returned.
Notes
Potential root cause is that field filtering is delegated entirely to upstream API behavior and no local projection is enforced before returning results.
Proposed test coverage
pkg/github/projects_test.goverifying outgoingfieldsquery parameter is present and correctly encoded forlist_project_itemscalls.