-
Notifications
You must be signed in to change notification settings - Fork 82
add payloads to Action #66
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
# Request | ||
#### Request #### | ||
|
||
# Name of the tree to execute | ||
string target_tree | ||
# Optional, implementation-dependent, payload. | ||
string payload | ||
--- | ||
# Result | ||
string error_message | ||
#### Result #### | ||
|
||
# Status of the tree | ||
NodeStatus node_status | ||
# result payload or error message | ||
string return_message | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we override the return message or add a payload for this additional information in the result? What if the tree errors/fails and there is useful information in the result_message but we also want a payload? It looks like the message is not overwritten when we encounter an exception and that is the only place I can think of where we need the additional info so maybe 1 string is enough. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we already have many hints about the fact that an error occurred:
Also, the payload may contain both human-readable and machine-readable data (not my problem 😝 ) |
||
--- | ||
# Feedback. This can be customized by the user | ||
string msg | ||
#### Feedback #### | ||
|
||
#This can be customized by the user | ||
string message |
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.
Is there any chance of the user accessing the tree and it being outdated or empty? It doesn't seem like there is.
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.
Technically an empty Tree can be recognized.
But in general I don't believe this can happen, this is the reason why I made the change