Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not omit arguments retrieved from docstring #114

Merged
merged 2 commits into from
Aug 25, 2021
Merged

Conversation

dandhlee
Copy link
Collaborator

@dandhlee dandhlee commented Aug 25, 2021

After #93, I've omitted arguments that didn't have docstring entries or didn't have types specified as part of the feedback for cloud site documents. However this had a side effect of leaving out more arguments than we needed.

Fixing this by keeping a track of number of arguments the function comes with. If args list is not empty, it'll loop through all the variables we extract from the docstring. If the function didn't have well formatted arguments, we should still loop through what we retrieved from the docstring to see if we have any info that we've retrieved through summary_info['variables'] that we can add to.

Fixes #113.

Not having goldens is really biting me, but at least now I have a good idea what I need to base the golden data off of. I'll work on it the first thing after we launch.

@dandhlee dandhlee requested review from parthea, busunkim96, tbpg and a team August 25, 2021 06:21
@dandhlee dandhlee requested a review from a team as a code owner August 25, 2021 06:21
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2021
@dandhlee dandhlee merged commit 18bf0de into main Aug 25, 2021
@dandhlee dandhlee deleted the retrieve_args branch August 25, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arguments are missing in YAML generator
2 participants