Skip to content

projects_list returns all fields when fields filter is provided #2270

@alexdioso

Description

@alexdioso

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

  1. Call projects_list with project_id set to a valid project and fields set to a subset of known field IDs.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions