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

Auto-generated trace library (GAPIC only) #3512

Merged
merged 5 commits into from Jul 26, 2017
Merged

Conversation

liyanhui1228
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 20, 2017
@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2017

ISTM you want to move trace/docs/ to docs/trace/?

Also, please make PRs from branches in your own fork of this repo (rather then making branches directly in this repo).

UPDATE: I now see that #3513 is a PR against your new branch (trace-autogen). I'm not sure I grok the order you want these merges to occur in.

@liyanhui1228
Copy link
Contributor Author

@dhermes Yeah the docs should live in docs/trace. Will move it later.

And sorry for forgetting to make PRs from my own fork... I remember you told me in last PR though. I spent quite a while separating the previous large PR to two PRs this afternoon because of some weird errors and then forgot that.

#3513 is based on the trace-autogen branch, which is the manual layer on top of the autogen layer. So I think the merging order should be merging the manual one to this autogen branch first then merge the autogen branch to master.

@duggelz
Copy link

duggelz commented Jun 21, 2017

The trace team is working on adding v2 of the API, timeline hazy, but v1 is in reasonably heavy use and will presumably remain so. The two apis are quite similar, just some renaming and slightly restructuring. It seems reasonable to me to have autogen code for v1 now, add v2 later, and have the manual layer work for both. But @lukesneeringer will have to say for sure.

@duggelz
Copy link

duggelz commented Jun 21, 2017

Also, my git (lack of skill) is entirely to blame for any problems with these two pull requests, although @liyanhui1228 was much too kind to say so :) We spent a while trying to resurrect the previous pull request from a deleted branch.

@theacodes
Copy link
Contributor

theacodes commented Jun 21, 2017 via email

@liyanhui1228
Copy link
Contributor Author

@lukesneeringer Are there any plan for updating the autogen code to use the v2 API? I have #3513 ongoing based on this PR, so if there are anything needed to be changed in the autogen code please let me know.

@liyanhui1228 liyanhui1228 added the api: cloudtrace Issues related to the Cloud Trace API. label Jun 27, 2017
@lukesneeringer
Copy link
Contributor

Hi @liyanhui1228,
How did you generate this code? I want to make sure I get proto docstrings added in, is why I ask. It should just entail re-generating with the newest Artman.

Happy to do it and update this PR; I just need to know what you based it off of.

@lukesneeringer
Copy link
Contributor

@lukesneeringer Are there any plan for updating the autogen code to use the v2 API? I have #3513 ongoing based on this PR, so if there are anything needed to be changed in the autogen code please let me know.

This is based off of v1, yes? Most likely they can live side by side.

@liyanhui1228
Copy link
Contributor Author

@lukesneeringer This is just the one you generated before, I wasn't able to reopen that closed PR so I open a new one for the autogen code. It would be great if you regenerate and update this PR, I just need to know if there is any change for calling the APIs as my manual code PR is based on this.

Copy link
Contributor

@lukesneeringer lukesneeringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple minor changes. None of them are strict blockers if you are on a time crunch.

master_doc = 'index'

# General information about the project.
project = u'gapic-google-cloud-trace-v1'

This comment was marked as spam.

This comment was marked as spam.

# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'gapic-google-cloud-trace-v1',

This comment was marked as spam.

This comment was marked as spam.


# Finally, track the GAPIC package version.
metrics_headers['gapic'] = pkg_resources.get_distribution(
'google-cloud-trace', ).version

This comment was marked as spam.

@@ -0,0 +1,2 @@
googleapis-common-protos>=1.5.2, <2.0dev

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Jul 26, 2017

@liyanhui1228 @lukesneeringer This broke the docs build

@liyanhui1228
Copy link
Contributor Author

@dhermes I'm looking at it right now.

@dhermes
Copy link
Contributor

dhermes commented Jul 26, 2017

Thanks!

landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudtrace Issues related to the Cloud Trace API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants