Skip to content
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

Prevent Phabricator.token from shadowing the conduit token API #62

Merged
merged 1 commit into from Oct 16, 2020

Conversation

Fabcien
Copy link
Contributor

@Fabcien Fabcien commented Jun 10, 2020

Conduit token endpoints (token.*) cannot be called because token is
alreay in the Phabricator.__dict__ and shadows the interface methods.
This can be prevented by renaming token into conduit_token.

A test case is added to prevent shadowing to occur again.

Conduit token endpoints (`token.*`) cannot be called because `token` is
alreay in the `Phabricator.__dict__` and shadows the interface methods.
This can be prevented by renaming `token` into `conduit_token`.

A test case is added to prevent shadowing to occur again.
@Fabcien
Copy link
Contributor Author

Fabcien commented Jun 12, 2020

@tail @colekowalski @tterb I there anything else that needs to be done to get this PR merged ?

@Fabcien
Copy link
Contributor Author

Fabcien commented Jul 30, 2020

This is an easy to review bug fix.
Any chance this PR can be merged ?

@thekashifmalik thekashifmalik merged commit cecdbe3 into disqus:master Oct 16, 2020
@thekashifmalik
Copy link
Contributor

Looks good to me.

@Fabcien
Copy link
Contributor Author

Fabcien commented Oct 19, 2020

@thekashifmalik Thanks for the merge !
Is there any plan to do a new pip release ?

@Fabcien Fabcien deleted the token_shadow branch October 30, 2020 19:32
@thekashifmalik
Copy link
Contributor

@Fabcien Don't know if you checked but this change is included in 0.8.0.

@Fabcien
Copy link
Contributor Author

Fabcien commented Feb 17, 2021

@thekashifmalik Great, thank you !

Fabcien added a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Mar 8, 2021
Summary:
The bugfix patch (disqus/python-phabricator#62)
has been released with version 0.8.0. There is no need for keeping our
local patched version anymore.

Test Plan:
  pytest

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants