Migrate OneLake to pagination

Aperta
#4,333 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
api, backend

Direzione di ricerca

Read the four command files listed in the issue, then trace their request and response handling through OneLakeService.cs to verify where each endpoint carries continuation data. Check docs/tool-pagination.md and the existing tests for cursor conventions and output formats. Done means all four commands support the shared nextCursor contract, reject invalid or mismatched cursors, preserve documented output, and have the specified pagination coverage and documentation updates.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Standardize OneLake workspace and item pagination

Context

OneLakeWorkspaceListCommand, OneLakeItemListCommand, OneLakeItemDataListCommand, and OneLakeItemListDfsCommand accept raw continuation-token inputs, but do not expose the shared cursor / nextCursor contract. The workspace path that parses XML returns the items without a continuation field; other paths return raw XML or JSON.

Work

  • Verify the actual continuation request parameters and response locations for each Blob and DFS endpoint, including headers versus body. Do not assume the raw response body contains the token.
  • Preserve the existing collection or raw response and add a root-level nextCursor, extracting the backend continuation as needed.
  • Bind cursors to the workspace identifier, recursion and format options where relevant, and the other fixed request arguments. Keep authorization and endpoint validation on each request.
  • Decide how existing raw continuationToken inputs and response formats transition without silently breaking callers.

Acceptance criteria

  • For each of the four commands, tests cover first, continued, empty-with-continuation, and terminal pages and verify the actual service request/response encoding.
  • Invalid cursors and changes to fixed arguments are rejected; raw and parsed output formats retain their documented contents.
  • Add recorded multi-page coverage where available and update tool documentation.

References

  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Workspace/OneLakeWorkspaceListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemDataListCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Commands/Item/OneLakeItemListDfsCommand.cs
  • tools/Fabric.Mcp.Tools.OneLake/src/Services/OneLakeService.cs
  • docs/tool-pagination.md
Lingua principale
C#
Stelle
3.9k
Fork
689
Merge medio
2g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mcp

Tutte le issue di microsoft/mcp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.