-
Notifications
You must be signed in to change notification settings - Fork 30
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
[M10N-144] Fix PHP notices produced when the developer is not set. #61
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #61 +/- ##
=========================================
Coverage 91.21% 91.21%
Complexity 1725 1725
=========================================
Files 267 267
Lines 3357 3357
=========================================
Hits 3062 3062
Misses 295 295
Continue to review full report at Codecov.
|
I'll check this next week because IIRC the fixed logic is also used elsewhere and that property should be available always on existing developer specific rate plans based on testing that I did when I developed this code. Maybe the rate plans is malformed? Do you have other developer rate plan that you can reproduce this bug? |
Yes, I remember now, I created the problematic rate plan and try to push the limits of the API (again ;P) so I really would like to see a step by step guide how this problem could be reproduced in normal circumstances and understand the real problem behind without just blindly fixing the problem you see in m10n. |
Since developer is a nullable property in the |
Syntactically you are right, but semantically you are not. As I can see I forgot to explain in a comment on the trait as I did in other places that: The property can be only It is a unique design of the Apigee APIs that they expect some required properties as part of the URL parameters (ex.: developer/api product/package ids, etc) and some as part of the request payload. So even if your reasoning would be correct, you should rather check BUT, as I explained this issue should not occur because the This is the reason why I am asking whether you can show me another rate plan that this problem occurs - preferable not from this test org that I used to hack the MINT API while I developed the integration - or you can provide a step by step guide how to create a malformed developer rate plan object like the one that I (accidentally) created as |
This fixed an issue found in an org, but may be an edge case so not something we need to get in right away, but is a better check that what was previously there. |
This is exactly the opposite that I tried to suggest in my previous comment. We should not merge a bug fix until
I do not think that we were able to fulfill either 1 or 2 this time, we just merged something that "fixes" something that we experienced in a playground environment. The changed logic is also used elsewhere in this library, so now 1% of this library behaves differently than the other 99% where this logic is being used. 🙄 With this approach, sooner or later this library becomes an unmaintainable monolith... |
Fixes apigee/apigee-m10n-drupal#144