GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — chore(python): autogenerate docs/index.rst by parthea · Pull Request #1114 · googleapis/synthtool Conversation
Contributor
This PR is a first step towards auto generating The function
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
parthea
requested review from
SurferJeffAtGoogle,
bcoe and
chingor13
as code owners
|
There was an error while loading. Please reload this page.
|
As an example, I ran the version of synthtool in this PR in the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
70020e2 to
c0af3ab
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker for me on landing this, but ideally we'd DRY up the detect version logic.
If you don't opt to do so in this PR, mind creating a tracking issue to do so?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return sample_metadata | ||
|
|
||
|
|
||
| def detect_versions(path: str = "./google/cloud") -> List[str]: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
How hard would it be for us to pull this into a common file, if the logic is identical?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done. Please could you take another look?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for cleaning this up @parthea 👏 , reading through the current owlbot logic, I saw that versions is actually loaded in a separate code path:
# Collect the subdirectories of the src directory. src = Path("src") versions = [v.name for v in src.iterdir() if v.is_dir()] # Reorder the versions so the default version always comes last. versions = [v for v in versions if v != default_version] + [default_version] logger.info(f"Collected versions ${versions} from ${src}")
So I think you've gotten rid of some code that would have otherwise have hung around indefinitely.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…oogleapis#1001) Set codeowner_team to googleapis/api-bigquery as codeowner. Set default_version to v2. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…33) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…29) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…47) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…116) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…92) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…118) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…411) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…267) By default the code owner will be googleapis/yoshi-python. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…345) Set codeowner_team to @googleapis/api-bigquery as codeowner. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
…1001) Set codeowner_team to googleapis/api-bigquery as codeowner. Set default_version to v2. This change is needed for the following synthtool PRs. googleapis/synthtool#1201 googleapis/synthtool#1114
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.