-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Improve dev docs for ActionType
#104139
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 dev docs for ActionType
#104139
Conversation
The semantics of `ActionType` are somewhat confusing; this commit expands its Javadocs a bit to try and clarify how to use it.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
* | ||
* @param name The name of the action, which must be unique across actions. When executed on a remote cluster, this is the | ||
* ID of the transport action which is sent to the handling node in the remote cluster. | ||
* @param responseReader A reader for the response type, which is only used by actions executed on a remote cluster. |
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.
A reader for the response type, which is only used by actions executed on a remote cluster.
Is that a reader for the response from the action executed on the remote cluster? I'm trying to read the as-written words incorrectly and I feel like I can convince myself that those words say that it's the action executed on the remote cluster that uses the reader.
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.
Fair, I see the ambiguity. Let me rearrange the words, sec.
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.
1b8526b any 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.
SO MUCH BETTER. Thank you! I love it!
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 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.
Late to the party, but I really like it! It would have saved me some time while I was trying to understand action registration/execution.
Aligns the actions in the enterprise search module with the docs added in elastic#104139.
Aligns the actions in the enterprise search module with the docs added in #104139.
No need for these things to be subclasses of `ActionType`, let's save some metaspace. Relates elastic#104139
No need for these things to be subclasses of `ActionType`, let's save some metaspace. Relates #104139
The semantics of
ActionType
are somewhat confusing; this commitexpands its Javadocs a bit to try and clarify how to use it.