documents, users, departments: expose the experimental platform APIs behind an opt-in
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 65
- Forks
- 8
- Merge medio
- 5 d 7 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de gleanwork/glean-cli
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
search: add glean search filtersAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Todos los issues de gleanwork/glean-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Azure/azure-storage-azcopy#3681 ·
Los mantenedores suelen responder en 2 días
-
Case detail: main-column section headers are hard to distinguish from body textPosiblemente ocupada @yubessy la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ubie-oss/hecatoncheires#347 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
meilisearch/meilisearch-go#829 ·