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

docs: adding site docs for 09-localhost client #3147

Merged
merged 28 commits into from
Mar 1, 2023

Conversation

damiannolan
Copy link
Member

@damiannolan damiannolan commented Feb 15, 2023

Description

closes: #3055

Commit Message / Changelog Entry

docs: adding site docs for 09-localhost client

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@damiannolan
Copy link
Member Author

Feel free to make any suggestions and/or push to this branch 🙌

Copy link
Contributor

@tmsdkeys tmsdkeys left a comment

Choose a reason for hiding this comment

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

Thanks for starting this @damiannolan ! I have some suggestions in terms of the narrative:

  • I can imagine the use cases of the localhost client/connection is not trivially clear, so it would make sense to me to add some more explanation. Question is whether we elaborate here or write a complementary product focused blog post and link to it here...
  • Given the localhost client has some differences at the transport layer (while attempting to preserve application level interface afaiu), I think it'd be good to list all of these differences in the overview. I was thinking of a table format even, comparing localhost and a 'regular' client (not localhost or solomachine). The differences are discussed throughout the docs but I think it would be nice to have an overview table

I can take a stab at this

@damiannolan
Copy link
Member Author

I can imagine the use cases of the localhost client/connection is not trivially clear, so it would make sense to me to add some more explanation. Question is whether we elaborate here or write a complementary product focused blog post and link to it here...

There's some notes about use cases in the requirements doc in #3120 but yeah, either adding something here or in a blogpost would be good too for visibility.

@tmsdkeys
Copy link
Contributor

I've made the following changes:

  • added a context paragraph
  • split integration.md from the overview
  • added a comparison table localhost vs 'regular' client to the overview

Please check if I got all of it in the table...

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Thank you for starting this work!! I left various comments, but overall looks good to me!

docs/ibc/light-clients/localhost/client-state.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/connection.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/integration.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
| Number of connection(s) | many connections, 1 (or more) per client | single sentinel `ConnectionEnd` representing a connection |
| Connection creation | connection handshake, provided underlying client | the `ConnectionEnd` is created and set in store via the `InitGenesis` handler of the 03-connection submodule in core IBC |
| Counterparty | underlying client, representing another chain | `09-localhost` |
| Channel creation | channel handshake, provided underlying connection | channel handshake, **out of the box** |
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this mean? It seems a bit "hype" to me. "out of the box" isn't very impressive in this situation since it's just talking about a connection existing. It takes less than 30 seconds to initiate a connection using "regular clients". I think I'd prefer to minimize the amount of information that has to be read and assume the reader is able to deduce that channels can be immediately created using the sentinel localhost connection

Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed the "Channel Creation" row as channels are more or less treated the same

Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't intend to be claiming it was an 'impressive' feat by any means :) My thinking here was "what does all of this mean if I'm a dev who wants to start testing with localhost when used to a setup having 2 chains"? And then the only thing changing really from that POV is that I can immediately create my channel vs first having to create client and connection... so more pragmatic than hype

Sure the reader could deduct it, but that holds for everything in the table. I personally just like when I can quickly gather all info from an overview table when I need a quick reminder

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense. Apologies if my comment seemed strong, that wasn't the intention. I'm just looking to make sure the language remains neutral.

I have no preference if we keep this section but maybe we could use the wording "channel handshake on top of existing connection end connection-localhost" or something like that

Copy link
Contributor

Choose a reason for hiding this comment

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

no worries, I learned now you don't like hype trains lol 🚂

docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
colin-axner and others added 2 commits February 27, 2023 17:57
…3213)

* Revert "Adding documentation for disabling localhost client (#3188)"

This reverts commit 5fa3f33.

* chore: add back relevant docs
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank a lot for this, @damiannolan

docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Show resolved Hide resolved
docs/ibc/light-clients/localhost/overview.md Outdated Show resolved Hide resolved
docs/ibc/light-clients/localhost/integration.md Outdated Show resolved Hide resolved
Copy link
Contributor

@chatton chatton 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 for all the work with these docs ❤️

Copy link
Contributor

@tmsdkeys tmsdkeys 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 for finishing this up!

Co-authored-by: tmsdkeys <98807841+tmsdkeys@users.noreply.github.com>
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Great work! Many thanks to everyone who spent time on this! :)

@damiannolan damiannolan merged commit 7303ce3 into 09-localhost Mar 1, 2023
@damiannolan damiannolan deleted the damian/localhost-docs branch March 1, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants