-
Notifications
You must be signed in to change notification settings - Fork 3.9k
projects_list returns all fields when fields filter is provided #2270
Copy link
Copy link
Closed
Description
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_listwithproject_idset to a valid project andfieldsset 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.goverifying outgoingfieldsquery parameter is present and correctly encoded forlist_project_itemscalls.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.