-
Notifications
You must be signed in to change notification settings - Fork 339
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
Fix route map generation for classes using @property #140
Conversation
DeepCode's analysis on #085bb4 found:
Top issues
👉 View analysis in DeepCode’s Dashboard | Configure the bot |
I fixade the issues but how do I rerun the tests? |
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.
Cool! LGTM ;)
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.
Was there a particular reason for the removal of the docs?
I did not attentionally remove them? Thought it happended when I pulled latest. It is a mistake , will push again with them added
… 26 okt. 2020 kl. 11:00 skrev tropxy ***@***.***>:
@tropxy requested changes on this pull request.
Was there a particular reason for the removal of the docs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
sorry, It is now fixed! What happened was that my computer (an apple) in its infinite visdom synced the files to the cloud and then deleted them locally without my knowing it..... gotta love them smart putors.......... |
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. Thanks for your effort!
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 this!
I'm not sure why CircleCI doesn't want to run the builds. |
I have fixed the Ci issues with newlines etc so now it passes |
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.
Again, thanks and nice job ;)
Thanks and no problems, was a learning experience. Will you merge this or are you waiting for me to do something? How long before the changes appears in PIP? |
As soon as possible. I opened a PR #146 to release 0.8.0 . If that is merged I'll publish the version 0.8.0. |
Version 0.8.0 has been released. |
For subclasses of `ChargePoint` using `@property` generating the route map could have unintended side effects. The function `ocpp.routing.create_route_map()` iterates over all attributes of the subclass, thus executing the method decorated with `@property`. This commit addressed that issue. Fixed: mobilityhouse#137 Co-authored-by: Auke Willem Oosterhoff <[email protected]>
Instead of iterating over the objects dir attribute the on and after decorators saves the function name in list. This list is then iterated to build rout map.
Testcase added to verify the fix