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

Improve the documentation for module safe queries #6234

Closed
srdtrk opened this issue Apr 29, 2024 · 6 comments · Fixed by #6246
Closed

Improve the documentation for module safe queries #6234

srdtrk opened this issue Apr 29, 2024 · 6 comments · Fixed by #6246
Assignees
Labels
27-interchain-accounts docs Improvements or additions to documentation
Milestone

Comments

@srdtrk
Copy link
Member

srdtrk commented Apr 29, 2024

The documentation should include a list of all module safe queries included in the cosmos-sdk and ibc-go.

It should also give more context about how to use the feature if possible.

@srdtrk srdtrk added docs Improvements or additions to documentation 27-interchain-accounts labels Apr 29, 2024
@crodriguezvega
Copy link
Contributor

Not sure about adding an explicit list of all messages for SDK, wouldn't this be it of maintenance burden if we need to keep the list up to date? Wouldn't be enough to mention all SDK queries that have the module safe query option (and give one example)?

Regarding context, there is some information about how to use the feature, would this be enough?

@womensrights
Copy link
Contributor

Speaking to possible users of the feature, I find the documentation insufficient.

There is no definition of module safe queries - you have to go to sdk documentation to find it. There is no way to understand which queries are module safe - you would need to do elsewhere to find it.

Users should be able to read the documentation and not have to go elsewhere to understand how to use the feature imo

@crodriguezvega
Copy link
Contributor

Explaining what module safe queries are and which ones the SDK supports sounds to me more like a documentation gap in the SDK. I am not sure we should cover it here; ideally we should just link to the SDK docs. We can add a list of the IBC queries that are module safe (non at the moment though).

@crodriguezvega crodriguezvega added this to the v8.3.0 milestone Apr 29, 2024
@womensrights
Copy link
Contributor

it is a terrible experience if you have to navigate between multiple different documentation sites to be able to onboard to a new feature - a high level description of what a module safe query is would be appropriate in ibc-go docs which can link to the sdk's description

@srdtrk
Copy link
Member Author

srdtrk commented Apr 29, 2024

  1. Module safe queries are consensus breaking, and can only be changed between major versions of the sdk. Thus, it can only be changed in the major versions of ibc-go. (Maintenance burden shouldn't be too bad.)
  2. Generating the list is very simple since we can simply run the script that I'm running in the icahost keeper initialization and paste the result here.

@crodriguezvega
Copy link
Contributor

a high level description of what a module safe query is would be appropriate in ibc-go docs which can link to the sdk's description

Oh, yeah, this is great, I hadn't been able to find in their docs where they had this. Definitely we can link to this.

Generating the list is very simple since we can simply run the script that I'm running in the icahost keeper initialization and paste the result here.

Yeah, I agree, but why wouldn't the SDK maintain this list instead of us? We can then just link to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
27-interchain-accounts docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants