Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

HemangChothani
Copy link
Contributor

Fixes #47

Transaction class:

Screenshot from 2020-04-07 20-20-20

Snapshot class
Screenshot from 2020-04-07 20-21-43

@HemangChothani HemangChothani requested a review from larkee April 7, 2020 15:00
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 7, 2020
@HemangChothani
Copy link
Contributor Author

@larkee I have tried something to fix that, if it looks good to you than i will take cleanup for whole library.

Copy link
Contributor

@larkee larkee left a comment

Choose a reason for hiding this comment

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

This looks good! Just a couple of nits.

Also, I would like if the link to the proto documentation could be added to the type rather than in the description. Just to be consistent with the other links to the Python documentation and other API documentation. However I'm not sure if this is possible to do while maintaining the class path.

Could you may look into this? If it's not feasible or is difficult to read, then what you currently have is good.

:class:`~google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryMode`
:param query_mode: Mode governing return of results / query plan.
See :
`QueryMode1 <https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.ExecuteSqlRequest.QueryMode1>`_
Copy link
Contributor

@larkee larkee Apr 7, 2020

Choose a reason for hiding this comment

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

:class:`~google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryMode`
:param query_mode: Mode governing return of results / query plan.
See :
`QueryMode1 <https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.ExecuteSqlRequest.QueryMode1>`_
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace space with full stop.

https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.ExecuteSqlRequest.QueryMode1
:class:`~google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryMode`
:param query_mode: Mode governing return of results / query plan.
See :
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the space before the colon.

@HemangChothani HemangChothani marked this pull request as ready for review April 8, 2020 14:11
@HemangChothani
Copy link
Contributor Author

@larkee I have tried but not able to generate link for proto documentation. I also found similar in bigtable as well where return type is class but unable to generate the link.

@larkee
Copy link
Contributor

larkee commented Apr 9, 2020

Ah. I didn't think to check the other clients. In that case, this way is fine.

However, I noticed the issue exists in the client API page as well.

Parameters is split over two lines

It's not as significant but it should a similar change. Other than that, LGTM 👍

@HemangChothani
Copy link
Contributor Author

For me works fine with the 'firefox' updated version but found issue with the chrome.
projects/<project>/instanceConfigs/<config> line creates the problem, to solve this either i have to add space so its look like projects/<project>/instanceConfigs/ <config> or break the line which looks like projects/<project>/instanceConfigs/ <config>.
Please recommend.

@larkee
Copy link
Contributor

larkee commented Apr 14, 2020

For me works fine with the 'firefox' updated version but found issue with the chrome.
projects/<project>/instanceConfigs/<config> line creates the problem, to solve this either i have to add space so its look like projects/<project>/instanceConfigs/ <config> or break the line which looks like projects/<project>/instanceConfigs/ <config>.
Please recommend.

I prefer the line break.

Copy link
Contributor

@larkee larkee left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@larkee larkee merged commit 0f526bf into googleapis:master Apr 16, 2020
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.

render bug in python API documentation
3 participants