-
Notifications
You must be signed in to change notification settings - Fork 21
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 INFORM job list
service
#279
base: main
Are you sure you want to change the base?
Conversation
Note: CI will fail as there is no build of |
0d56905
to
c2e17c5
Compare
I've addressed most of the discussed changes in functionality. Tested it here as well and it still works. Just need to test behaviour when there are more jobs than allowed, define proper Edit:
this case is handled correctly. @ted-miller: I first thought to always return the first |
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 don't see any issues. But I'm struggling to build right now.
So, If you're happy and have tested it, then feel free to merge. Otherwise, I'll get my stuff fixed on monday and actually run it.
I have tested, but I'd like some independent confirmation I'm not making (implicit) assumptions about how things work based on my controller configuration. I'll make a build of |
I have fixed my build. |
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.
Works well. I also verified that it lists macro jobs and system jobs.
Japanese names come across as gibberish. But this is to be expected. (Yaskawa-Global/motoros2_interfaces#21 (comment))
830ff13
to
d83fc68
Compare
@ted-miller: I believe this is the final version of this PR. Switched to named result codes and strings, renamed files to match the fact it's now specifically about INFORM jobs and updated all references. If you could take a last look? To make it easier: This should not require any updates on the |
I'll likely squash some of the commits before merging. |
I'll give this a run first-thing tomorrow |
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.
Looks good. Tested on YRC. But since you're using vanilla M+ API's, I'm not worried about other controllers.
d83fc68
to
8ae9cd5
Compare
As implied by the name of the service, this allows clients to retrieve a list of INFORM jobs (JBI) on the controller.
Move away from magic numbers and strings.
8ae9cd5
to
8a6a960
Compare
@gavanderhoorn Do you want to merge this, or pull |
I'd like to take another look at how this reports errors to the client. I just haven't found time to do that yet. |
Work towards #278.
This implements a basic
job/list
function which returns the names of all jobs (*.JBI
) on the controller.I've submitted this as a small PR to avoid opening something for all 5 services at once. It is fully functional though, hence this is not a draft.
There are a couple of
TODO
s which I'd like to discuss.Note: this depends on new messages in
motoros2_interfaces
: Yaskawa-Global/motoros2_interfaces#21.