googleapis / googleapis/google-cloud-cpp

Use first client with a `List*()` operation for quickstart skeleton

Abierto
#12,632 2 comentarios 0 reacciones 0 asignados Ver en GitHub
cpp: generator cpp: operator type: cleanup
Lenguaje dominante
C++
Estrellas
659
Forks
462
Merge medio
1 d 2 h
PR fusionados (30 d)
89

Descripción

The scaffold generator runs without any context of the protos in use. We could move the generation of the quickstart skeleton to have access to the service definition. With that information we could generate a correct include file here:

https://github.com/googleapis/google-cloud-cpp/blob/43cd3d9a65df32310bca8d8878ee322d73493a03/generator/internal/scaffold_generator.cc#L938

and maybe pick the first `List*()` overload consuming a string (with some fallback to "EDIT HERE" if there is none):

https://github.com/googleapis/google-cloud-cpp/blob/43cd3d9a65df32310bca8d8878ee322d73493a03/generator/internal/scaffold_generator.cc#L953

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start in generator/internal/scaffold_generator.cc at the referenced include-generation and List*() selection points. Trace how the scaffold generator currently runs without proto context, then determine how service definitions can be made available. Done means the quickstart skeleton emits the correct include and selects the first string-consuming List*() overload, falling back to "EDIT HERE" when none exists.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp
Área
tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.