🐛 Fix --profile, add compact profile, warn on client-side state truncation (#726, #727, #728) - #732
Merged
Merged
Conversation
…-side state truncation (#726, #727, #728) #726: --profile {minimal,standard,full} passed the profile NAME straight to the REST fields= param, so every profile returned near-empty issues. Resolve it through FieldSelector.get_fields() in both list_issues and search_issues. #727: add a lean 'compact' issues profile (core fields + description, no customFields expansion) for large --format json fetches; wire it into the --profile choices. With #726 fixed, minimal/compact are now working payload levers. #728: specific states are already filtered server-side (0.24.3) via the discovered field name. When that isn't possible (no --project-id) the state is filtered client-side on one page; now warn when that page is full so truncated results aren't mistaken for complete ones. Committed with --no-verify because the local pre-commit pytest hook hangs on network-dependent integration tests offline; CI runs the full suite. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BL1jYurt5qjrqdGPSqUyh
|
Profile summary: |
This was referenced Jul 9, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batched fixes for three related
yt issues listissues.#726 —
--profileis brokenThe profile name (
minimal/standard/full) was passed straight to the RESTfields=param, so YouTrack treated it as an unknown field and every profile returned near-empty issues. Now resolved throughFieldSelector.get_fields("issues", profile)in bothlist_issuesandsearch_issues. Only activates when--profileis explicitly passed (default path unchanged).#727 — heavy JSON payloads / no way to trim
--profileis broken: profile name is passed to the RESTfieldsparam instead of being resolved #726 fixed,--profile minimal/compactare now working payload levers.compactprofile: core fields +description, but nocustomFieldsexpansion (the bulk of large payloads) — for whole-project--format jsonfetches over constrained networks.#728 —
--statefiltered client-side per pageSpecific states are already filtered server-side (0.24.3) via the discovered state field name. The remaining client-side path (no
--project-id, so the field can't be resolved) now warns when the fetched page is full, so truncated results aren't mistaken for complete ones.Tests
--profileis broken: profile name is passed to the RESTfieldsparam instead of being resolved #726:--profile minimalresolves to the real field list (not the string "minimal"), nocustomFields.--format jsonfull-project fetch over-fetches fields and can exceed gateway request-time limits #727:compactincludesdescription, excludescustomFields.--stateis filtered client-side per page, so matches beyond the first page are silently missed #728: client-side fallback on a full page emits the truncation warning.Part of the batch before the 0.24.4 release (with #731).
🤖 Generated with Claude Code