documents, users, departments: expose the experimental platform APIs behind an opt-in
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
Direzione di ricerca
Start by reading the CLI command implementations for documents and entities read-people, then compare how search and agents switched to platform APIs. Check how agent-help marks experimental commands and how requests add the opt-in header. Done means the new API commands send the header only after explicit opt-in, while classic commands retain their current behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Several platform APIs are experimental: callers must send X-Glean-Include-Experimental: true. They cover things the CLI does today through classic endpoints, and api-client-go v0.17.3 models them:
- Documents:
GET /api/documents(by URL),GET /api/documents/{document_id},POST /api/documents/batch(Glean.Documents.GetByURL,GetByID,Batch). Todayglean documentsuses classicgetdocumentsandgetdocumentsbyfacets. - People:
GET /api/users,GET /api/users/{user_id},GET /api/departments,GET /api/departments/{department_id}(Glean.Users,Glean.Departments). Todayglean entities read-peopleuses classicpeople.
Proposal
Expose these behind an explicit opt-in, so the CLI never sends the experimental header without the user asking. Options include a global --experimental flag or separate subcommands, such as documents get --by-url and users list / users get. Keep the classic commands as the default until the APIs are GA, then switch them to platform-first the way search and agents were switched.
Done when
- Each experimental command sends the header only when the user opts in, and
agent-helpmarks it as experimental. - The classic commands behave the same as before.
- Lingua principale
- Go
- Stelle
- 65
- Fork
- 8
- Merge medio
- 5g 7h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gleanwork/glean-cli
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Tutte le issue di gleanwork/glean-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Azure/azure-storage-azcopy#3681 ·
I maintainer di solito rispondono entro 2 giorni
-
Case detail: main-column section headers are hard to distinguish from body textForse già presa @yubessy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ubie-oss/hecatoncheires#347 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
meilisearch/meilisearch-go#829 ·