-
Notifications
You must be signed in to change notification settings - Fork 912
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
Fixed order parameter in the listforwards command #4668
Fixed order parameter in the listforwards command #4668
Conversation
e1ff899
to
681f7fa
Compare
I think we need to fix the documentation, not the code unfortunately, as this was already released in 0.10.0 so people may rely on it. |
@rustyrussell I will open a new PR with the doc fixing :) thanks |
ab6eec8
to
a5acc67
Compare
Applied the suggestion of @rustyrussell and test it locally. However, I did not find a method to test the deprecated API function in the python test. |
a5acc67
to
ee245e4
Compare
ee245e4
to
fa4d1ed
Compare
fa4d1ed
to
78eb49c
Compare
71e8919
to
26f0714
Compare
b7fab11
to
e560b69
Compare
Wasn't the resolution for this to update the docs instead of reordering the arguments in code? As is this is pretty much a breaking change as @rustyrussell pointed out. |
Hi @cdecker, Yes you have right, but we discussed with @rustyrussell on IRC https://gnusha.org/c-lightning/2021-07-20.log and this change make the API of this command more user friendly. All the code inside this PR is made by rusty suggestion. |
Ok, sounds good. Will merge it then. |
ACK e560b69 |
e560b69
to
a428ee9
Compare
Rebased on top of |
Changelog-Changed: Change order parameters in the listforwards command Changelog-Deprecated: Change order of the status parameter in the listforwards rpc command. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
a428ee9
to
791a4ea
Compare
Had to move the autodata declaration to avoid having a linenumber conflict... |
This is the IRC log extract for posterity:
|
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.
Ack 791a4ea
From a report in IRC channel, I noted that the order of the parameters are wrong in the rpc command.
I assumed that the code take the wrong order because for us (programmers) write documentation is costly more than code :-)
In addition, I think is more natural to have as the first parameter the status, in my opinion, it is more frequently have a filter by the status instant of the filter by channel id.
In conclusion, I can revert the change and modify the docs, or if this change is good, I'm happy to know if the place where I wrote the test is a correct place (test_peers.py or test_rpc.py file is missed).