-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fixes action ClientGoalHandler getResult() and status update bug, #813 #814
Conversation
Thanks for the quick action! I noticed the |
After finding a format style that would pass eslint on CI the windows builds are failing on the test-action-xxx and the OSX build fails when compiling native module. I'll give the windows build a look and see if I can identify why the action tests are failing on that platform. Also you can see I churned 3 attempts to get eslint formatting that would pass. This is really odd as my linux dev environment eslint settings are based on rclnodejs and CI eslint is failing on format that used to pass and still passes in my dev env. |
|
more info for test-suite failing on windows:
|
Maybe you can reference #812 to get rid of the windows CI problem. |
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.
Thanks for your PR, LGTM!
#814) Public API Changes ClientGoalHandler (client_goal_handler.js, action_client.d.ts) deprecated accepting getter added convenience methods: isAccepting(), isExecuting(), isCanceling(), isSucceeded(), isCanceled(), isAborted(). These methods are not essential. Thus will leave it to the reviewer's discretion of whether they stay or go. The same for Initiate the project #1 above. status property is now properly updated with the goal lifecycle state codes, see ActionInterfaces.GoalStatus for codes getResult() now returns a ActionResult. Previously it returned an internal message with structure {status: number, result: ActionResult<T>}. ClientGoalHandle feedback function now only receives a ActionFeedback<T> argument. Previously ActionFallback<T> function was receiving an internal msg with structure {goal_id: UUID, feedback: ActionFeedback}`. Description A bug was submitted where ClientGoalHandler.getResult() was returning an internal message that did not conform to the TypeScript declarations. Additionally the ClientGoalHandler.status was never being updated and always return UNKNOWN. Lastly while fixing the getResult() bug it was discovered that the feedbackCallback function was being sent an internal message and not the expected ActionFeedback<T> type. This fix resolves all 3 issues. I added beforeSetResult(result) method to Deferred.js class. This is used by the ActionClient _getResult(resultMsg) method to update the ClientGoalHandler.status and to return only the msg.result property of type ActionResult<t>. Updated all action related tests and examples. Fixed several prettier/lint issues. Fix #813
Public API Changes
ClientGoalHandler (client_goal_handler.js, action_client.d.ts)
accepting
getterisAccepting()
,isExecuting()
,isCanceling()
,isSucceeded()
,isCanceled()
,isAborted()
. These methods are not essential. Thus will leave it to the reviewer's discretion of whether they stay or go. The same for Initiate the project #1 above.status
property is now properly updated with the goal lifecycle state codes, see ActionInterfaces.GoalStatus for codesgetResult()
now returns a ActionResult. Previously it returned an internal message with structure{status: number, result: ActionResult<T>}
.ClientGoalHandle
feedback function now only receives aActionFeedback<T>
argument. PreviouslyActionFallback<T> function was receiving an internal msg with structure
{goal_id: UUID, feedback: ActionFeedback}`.Description
A bug was submitted where
ClientGoalHandler.getResult()
was returning an internal message that did not conform to the TypeScript declarations. Additionally theClientGoalHandler.status
was never being updated and always return UNKNOWN. Lastly while fixing thegetResult()
bug it was discovered that the feedbackCallback function was being sent an internal message and not the expectedActionFeedback<T>
type. This fix resolves all 3 issues.I added
beforeSetResult(result)
method to Deferred.js class. This is used by the ActionClient _getResult(resultMsg) method to update theClientGoalHandler.status
and to return only themsg.result
property of typeActionResult<t>
.Updated all action related tests and examples.
Fixed several prettier/lint issues.
Fix #813