Add magic get/setters for entityreferences (#948)#956
Add magic get/setters for entityreferences (#948)#956boobaa wants to merge 14 commits intoapigee:3.xfrom
Conversation
|
Thank you @boobaa for your contribution. |
There was a problem hiding this comment.
Awesome, we are one step closer.
These are my first impressions, I'd not call it a review.
This PR definitely needs extensive manual testing for a start and examining what is actually stored in an object and how these methods behave, e.g.: whether attributes are supported or not by this change, etc.
After this looks like a working solution, automated test coverage would be also a must (IMO).
|
Also had to distinguish apigee baseFields: without doing that, |
|
Hi @boobaa We cannot merge this as it does not solves the mentioned issue. It will need more further work and testing. Thanks! |
|
Hi @boobaa
This led to the failure of manual test from my end. Thanks! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.x #956 +/- ##
=========================================
Coverage 44.20% 44.20%
Complexity 3029 3029
=========================================
Files 341 341
Lines 11086 11086
=========================================
Hits 4901 4901
Misses 6185 6185
🚀 New features to boost your workflow:
|
|
Here's what I did for reproduction:
Expected result: team getting saved properly, with the new field being displayed with the selected API (product). Actual result without the patch: WSOD ( Actual result with the patch: team got saved properly, with the new field displaying the selected API (product). FTR, I ran Hope this helps. |
|
Hi @boobaa Drupal version - 10.1.8 & 10.2.2
The steps which you mentioned, in that case, we do not see any error/WSOD on the page without applying any patch. Issue occurs when the above 2 points are performed. Thanks! |
|
Hi @kedarkhaire , as the customer does not want to litter their Apigee Edge with random API products when teams are getting created/edited, but only allow users to select from already-existing API products, those options are NOT enabled. |
Closes #948.