-
Notifications
You must be signed in to change notification settings - Fork 434
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
Make returned parameters consistent with its call in POST /source?cmd=branch
#16072
base: master
Are you sure you want to change the base?
Conversation
That is an incompatible change, we can do that for 3.0, but not atm. |
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.
no reject button, so request changes
in theory, you could add the "new" elements, so data would be duplicated until 3.0. But IMHO a bit cringe and confusing. |
True. I can do that after fixing the tests. It seems fixing the tests will require not only modifying the tests, but also make other parts of the code understand the renamed parameters. Leaving it in WIP. |
POST /source?cmd=branch
POST /source?cmd=branch
0b4723c
to
e2c381f
Compare
c3a0060
to
6ac62e3
Compare
POST /source?cmd=branch
POST /source?cmd=branch
I followed your suggestion. I didn't find any other way of making the return parameters work without provoking an incompatible change. Please take a look again. |
af3fef9
to
43bee18
Compare
@adrianschroeter, gently ping... |
I hate it, but accept it ;) However, please keep the tests in test/functional/maintenance_test.rb with old variable to ensure that we don't break api without noticing. You may add a comment there for the rename. |
e2d322b
to
5940d48
Compare
🙂
Done. Please take a look again. |
... in POST /source?cmd=branch Instead of renaming the parameters (that would be an incompatible change), add elements with the names the parameters will take in the next version.
... of the parameters returned by `POST /source?cmd=branch`
Instead of renaming the parameters (that would be an incompatible change), add elements with the names the parameters will take in the next version.
Before
After
Fixes #16027.