Skip to content

projects_list returns all fields when fields filter is provided #2270

Closed

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.

Activity

  1. alexdioso commented on Mar 28, 2026

    @alexdioso
    Author

    Sorry, this was created on the wrong repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions