-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding support keySimulator in remotecontrollers #120
Adding support keySimulator in remotecontrollers #120
Conversation
Coverity detected 1 issue; a quality concern. |
let me check if we can accept this with merge point etc. normally |
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 ok except for that minor change to upgrade the examples
We forked the repository and created a branch because we do not have the option to create a branch directly in the original repository. |
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's an assumption likely due to incorrect documentation that sendKey takes in a dictionary, it does not... it takes in a rcCode from rdCode.py, and that's used in all the translation tables and all the code.
Your changes assume that a key dict goes in and therefore will not correctly translate from rcCodes to the dictiomnary.
I've raised a issue to make the code clear, but I suspect your code change will break raft users.
To perform any changes to raft, we have to ensure we test raft with raft tests, in this case there's tests here -> https://github.com/rdkcentral/python_raft/blob/master/tests/remoteController_test.py
Had these been used to test raft, it may have been noticed that rcCodes are used as the input to the commonRemote, but any changes to the core will require upgrades to the basic tests to ensure that the changes comply with the requirements of the core.
Reason for removing the below code due to the issues mentioned below:
Observation:I have cloned the python-raft repository and followed the steps to run the remoteController_test.
Changes in commonRemote.py
Issue 1: Solution:
Issue 2: Note: Solution 1:
We are proposing the solution 2 to make the minimal changes in the Python Raft Repository. For answering this query:Your changes assume that a key dict goes in and therefore will not correctly translate from rcCodes to the dictionary. When running remoteController_test.py, the function getMappedKey retrieves keys from rcCodes.py and converts them using keymap.yml. Our recent code changes ensure that remoteController_test.py is functioning correctly. |
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.
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 lets merge this, it still won't work as commonRemote is broken, but I already have a commit with the fix, I just don't have permissions to push it to your fork.
Added the KeySimulator feature as a new module within the existing Python Raft framework remote controller module.
closes #119