-
Notifications
You must be signed in to change notification settings - Fork 224
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
JSON-RPC: Extend jamulusserver/getClients method #2918
Conversation
e185efd
to
722fa16
Compare
9a7d726
to
dbfb722
Compare
I'd like to have this in the next release... |
7caf87b
to
e35226c
Compare
Me too. I've fixed what I believe are the issues raised (as opposed to philosophical questions), squashed and pushed. Once this is merged I will resubmit the dependent PR. |
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 the PR and sorry for not commenting earlier. Looks good to me in general despite two questions (see inline comments).
@hoffie - is there anything I still need to do to move this along? I'm asking because I'd like to resubmit the dependent PR which builds upon this basic one as a candidate as well. I believe I've addressed all the refactor requests and questions. |
e35226c
to
29f2c6e
Compare
@Rob-NY there are a number of unanswered requests. |
ISO Country code standardization: I have no idea how to approach this at this time, so I asked to pass on this for the time being - no response. In November, @hoffie asked you if we really wanted to expose the translated strings in some areas of this api - no response. I made the changes for the "Skillset: NONE" vs. "not set" request as well as all the others raised here. If I missed something, please point it out to me and I'll address right away. |
Ok. So then there was a misunderstanding on both sides about the state of this PR. I‘ll look where I can help if I have time. |
29f2c6e
to
6c212ac
Compare
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.
Ok. See ann0see@f3d6bea
I hope we can agree on removing these methods as:
- The country code is inconsistent between QT5 and QT6 (we already expose the country name which is not optimal but probably ok)
- The skill level is translated and thus inconsistent. Alternatively, we'd find a way to only use the English translation. However, I think using just IDs is fine in this case, as the Jamulus protocol specifies the meaning. I believe that if we remove this - to stay consistent we should also remove the text translations of other translated names.
f3d6bea
to
b901492
Compare
Ok. Rebased. Will do a new local test now. |
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.
Local testing says this is ok. still, we could remove the instrument name - as it is translated and thus not reliable. Qt doesn't seem to support any short name for countries, so the country name is probably the best we can get.
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 to me too.
vecChanInfo
in CServerDlg
seems unused but that's fine I guess.
docs/JSON-RPC.md
Outdated
| result.clients | array | The list of connected clients. | | ||
| result.clients[*].id | number | The client’s channel id. | | ||
| result.clients[*].address | string | The client’s address (ip:port). | | ||
| result.clients[*].name | string | The client’s name. | | ||
| result.clients[*].jitterBufferSize | number | The client’s jitter buffer size. | | ||
| result.clients[*].channels | number | The number of audio channels of the client. | | ||
| result.clients[*].instrumentCode | number | The id of the instrument for this channel. | | ||
| result.clients[*].instrumentName | number | The text name of the instrument for this channel. | |
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.
instrumentName | number
? That sounds strange. What is it meant to represent? The position in the enum? In which case it's redundant.
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 could remove the instrument name
I think this is wrongly documented and should be a string (but I still believe it should be removed due to the translation issue.)
I'd like a new issue raised with the changes requested here but not made. Once that's done, I'm happy to approve it. |
For fixable stuff, I'd only have the removal of translated content (= instrument name).
|
Yes, it's probably mostly the use of strings where the number would be better that should be fixed (at some point): |
b901492
to
ce82089
Compare
Ok. I've now removed the instrument name too. |
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 approve anyway on the basis nothing here is breaking as far as I can see. The countryName
issue is complicated because of Qt 5/6 rather than anything else, as far as I remember and I wasn't involved much in the solution there.
Short description of changes
Expands jamulusserver/getClients method to include all elements of a user profile as well as the number of active client connections. Changes were made so they are backward compatible with the prior message format.
CHANGELOG: RPC: jamulusserver/getClients method expanded to include all elements of a user profile as well as the number of active client connections.
Context: Fixes an issue?
Addresses issue #2488 and comments in #2890
Does this change need documentation? What needs to be documented and how?
JSON-RPC documentation was updated via python tool and is included in this PR.
Status of this Pull Request
What is missing until this pull request can be merged?
Compile tested on Linux only.
Checklist