-
Notifications
You must be signed in to change notification settings - Fork 121
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
[ BUG ] Breaking changes introduced in (at least) falconpy.oauth2.OAuth2 class #1043
Comments
This is a fantastic catch that should have been identified in acceptance testing! The good news is, I'm pretty sure this will only effect the Since I'm testing this change now, and will update here. Thank you for reporting the issue!! |
Hi @morcef! Unfortunately, due to architectural constraints, resolving this was not as easy as I was hoping. We do have a resolution undergoing testing now, but there are a few changes that I need to detail. A little backgroundIn versions prior to One of the goals of the ResolutionTo address this breaking change and maintain backwards compatibility, we are reverting a few of the changes implemented by
What happens nextThese changes are undergoing several rounds of unit testing, and another full round of acceptance testing where we confirm updates do not impact existing integrations or code samples. There is currently an open Pull Request (feel free to review), that will not merge to
Once merged, this issue will automatically close. These changes will release to the production We appreciate you identifying and reporting this issue for us. If you happen to be coming to Fal.Con this year, come see us on the expo hall floor! This find has definitely earned you some swag... |
Hi @jshcodes ! |
Not sure if this was fixed in 1.3.2, but when I pass
|
Hi @davidt99 - The Uber Class does not supported Object Authentication. (In Can we see an example of the code being executed? The error above looks like it's originating from the Detects Service Class, not the Uber. |
Sorry, my mistake, I meant service class. |
Hi @davidt99 - Can we see the executed code that generated this error? |
This code is done in a test suite where I mock the
But I see that in |
Copy that. Testing this change now! 🙇 |
Hi @davidt99 - You were right! Thank you for reporting this! 🙇 This was a quick fix and has cleared testing. We're including this update as part of the This is now your second really cool contribution... definitely come see us if you're coming to Fal.Con this year, we'll be on the expo hall floor with your swag! 😄 |
Describe the bug
After upgrading to falconpy 1.3.1, I noticed a breaking change in the OAuth2 class. Previously both OAuth2.token_expired and OAuth2.authenticated were lambda functions (called as class methods), while they now are set as properties.
To Reproduce
Install falconpy < 1.3.0 and this code runs fine:
Then install falconpy >= 1.3.0, and this will return:
Expected behavior
Since this is not a major version update, this breaking change should not have been introduced.
Additional context
I have not look back into the history to verify if any other lambda functions were used previously elsewhere.
The text was updated successfully, but these errors were encountered: