-
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
Support assigning API products to Apps on creation #248
Conversation
Update from apigee repo
Sorry, but I still have concerns with this design change that are not answered yet |
Codecov Report
@@ Coverage Diff @@
## 2.x #248 +/- ##
============================================
+ Coverage 89.01% 89.16% +0.14%
- Complexity 1646 1649 +3
============================================
Files 334 330 -4
Lines 4379 4374 -5
============================================
+ Hits 3898 3900 +2
+ Misses 481 474 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/Api/Management/Entity/App.php
Outdated
if (!$this->appId) { | ||
$this->initialApiProducts = $initialApiProducts; | ||
} else { | ||
throw new \Exception('This method is only supported for creating a new app.'); |
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.
Should be a \LogicException() since calling it is a "mistake made by the developer".
(Although we know this method should only exist on New app entities for which we do not have an object type...)
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.
This has been taken care. Thank you for pointing it out.
Thanks. What about adding test coverage? |
* Support assigning API products to Apps on creation (#248) * Bump version to 2.0.19 and change log (#250) --------- Co-authored-by: phdhiren <[email protected]>
Fixes #214