Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: added plugin registry #13400
base: main
Are you sure you want to change the base?
fix: added plugin registry #13400
Changes from 27 commits
7694270
d4b2fad
4994fd6
06a7c9f
d0d2fc2
2f928b5
fa6c448
5ed6fb6
97ff405
a2f36e6
1c1dd7e
e581bee
94f3b18
0ad4cfb
acd6503
569a658
6bc60c8
a0fd7d2
ad4234f
ea35d86
686c9ad
c86af5e
02d7d91
f0e78f0
f04d557
8ae903a
290e218
12c9981
0db7783
a5f03a3
997ea33
bd95b32
0133487
cb37cd7
1c2631c
4aa6ee5
4ea8965
7ab7dab
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.
More docs please! Information about how to access this data in the form of a doc test would be particularly valuable, but we should also have a note about how this is the expected lifecycle that plugins flow through.
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.
I'll try to add a full example, that maybe explains also what each state purpose is. I left this part out until there's a general agreement for the PR, if that makes sense.
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.
Can we return an
Option
here and avoid ever panicking?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.
This is one of those cases that should really not happen, or it would be a bug in the plugin registry management. Would still an option be a better choice?
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.
Don't we need to call out the other life cycle steps added in this PR in these docs?
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.
👍 I'll fix all pending docs comments after the general code review, if that's ok (but open to do otherwise if you feel this is better)
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.
More docs here about why this is useful to users please.
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.
If we keep this, a doc test demonstrating how to require the rendering subapp would be really valuable. This will be by far the most common pattern.
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.
More information about how this might be used would be good.
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.
More docs.
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.
We can just remove this arm, correct? Exhaustive matching is good!
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.
There is the extra cleanup, that should not be executed as part of the update. But it could be just added to the match and the error described better.
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.
Idle and cleanup are the two states that cannot be processed. Is it better to add both to the match?