-
Notifications
You must be signed in to change notification settings - Fork 838
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
Add Async Backing guide #4363
Add Async Backing guide #4363
Conversation
Update the instructions to work with the latest parachain template on Polkadot SDK
I have embedded the code from Parachain template wherever applicable using docify. @kianenigma Perhaps the Async Guide upgrade doc is not a great candidate to showcase docify as most of the hardcoded example snippets serve as guidance for parachain devs to edit the code on their repositories which may be built from older versions of Substrate SDK. Here are a few pitfalls of using docify on this document:
Any input on the above items is appreciated. Will be helpful for future docs. @alexggh If you are able to do a walk through of the rendered doc and ensure its integrity, that would be of huge help. Thank you! |
Your observation is a bit unfortunate, but correct in that I might have been wrong in thinking that this doc is better demonstrated in docify. Some of the points you mentioned can be improved by enhancing docify. For example:
I had the intention to ask for a small treasury tip to incentivize @sam0x17 to implement some of these. But this is a midterm effort and I don't have a better solution in the short term. My only suggestion in the short term is to not expect to re-use production code as-is in docify, and sometimes you might need to first relocate a subset of a working code in a new module/crate, and then use that. Whether this is worth the effort or not, we will have to evaluate. Thank you for giving this a try in the meantime! |
Sounds good! Docify is for sure very resourceful in embedding code, especially within the tutorial docs. If we are making a tutorial on Parachain template itself, I do see the potential of using docify. I see you have created issues on the docify repo https://github.com/sam0x17/docify/issues Let's ask for a treasury tip to have them addressed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content is correct, but I think the rendering is a bit weird and makes it hard to pass through the guide.
@kianenigma The doc is ready to be merged. Please review. |
I have some further ideas about how to improve, you can take a look here: DrW3RK/polkadot-sdk@async-backing-docs...paritytech:polkadot-sdk:kiz-feedback-kian-radha |
feedback and ideas
@DrW3RK in the commit of mine that you have merged, I have demonstrated how you can use docify, but I have left the rest of it for you to do with the same mindset. Please follow the same pattern, and try and make as many of the code snippets as you can use real code. |
on it |
@kianenigma I've refined the document based on your feedback and used On closer look, I observed that a few of the Docify imports in Phase 1 from your commit were misleading. As @alexggh mentioned here: #4363 (comment), this guide is for parachains that have not used the template and need to make modifications in multiple phases to activate the Async Backing feature. For instance, with the usage of docify in Phase 1, the capacity is already 3 instead of 1, and the block time is 6000 instead of 12000. ![]() I've attempted to make the code snippets concise throughout. However, I failed to get this part of your commit to compile.
and got these errors. I can investigate this further, but if this is something trivial, please let me know. Thanks!
|
This was also my point here: #4663 (comment) I don't think we should be referencing the most up to date parachain template in the guide, because the template should already have all these features enabled. |
I see, this was a misunderstanding from my side though. I personally think it is better to show someone the latest code and expect them to follow the instruction of "make it look like this", as opposed to trying to "imagine" what their code looks like, and then showing them exactly what line they have to change in the imaginary code. But I will leave it up to you, and which one you and the rest of the parachains' team think it is a more worthwhile way to maintain it. End of the day, all of my nitpicks here are in the direction of reducing the burdeon on all of you to not need to think about maintaining this. If you are okay with the task, our goal is reached and I'd be happy. |
@kianenigma This was a good learning exercise for me on how Docify works. Happy to put this to use in Polkadot SDK docs. |
The CI pipeline was cancelled due to failure one of the required jobs. |
minor fix - input args missing for impl_can_build_upon function
Head branch was pushed to by a user without write access
Could we add R0-silent and T11-documentation labels to this PR similar to #4244 ? I think that should take care of the failing CI jobs. |
Done. This can be queued for merge now |
30cdf5d
Update the instructions to work with the latest parachain template on Polkadot SDK --------- Co-authored-by: kianenigma <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
Update the instructions to work with the latest parachain template on Polkadot SDK --------- Co-authored-by: kianenigma <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
Update the instructions to work with the latest parachain template on Polkadot SDK --------- Co-authored-by: kianenigma <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
Update the instructions to work with the latest parachain template on Polkadot SDK