googleapis / googleapis/google-cloud-cpp
Use first client with a `List*()` operation for quickstart skeleton
- Langage dominant
- C++
- Étoiles
- 659
- Forks
- 462
- Merge moyen
- 1 j 2 h
- PR mergées (30 j)
- 89
Description
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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans generator/internal/scaffold_generator.cc, aux points référencés de génération des includes et de sélection de List*(). Suivez la manière dont le scaffold generator s’exécute actuellement sans contexte proto, puis déterminez comment rendre les définitions de service disponibles. Le travail est terminé lorsque le squelette quickstart émet le include correct et sélectionne la première surcharge de List*() qui consomme une chaîne, en utilisant "EDIT HERE" lorsqu’il n’en existe aucune.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100