-
Notifications
You must be signed in to change notification settings - Fork 46
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
Monetization Team creation fails #330
Comments
@cnovak It looks like the following attributes are required:
So if your org is monetized, even if you have We could fix this in Looking... |
@arshad did we used to send these attributes in the past? If not, that means the monetization API has changed. |
@cnovak No we didn’t send these attributes. Was the API change documented somewhere? |
Add issue for API team (b/147746943) |
According to our documentation the required fields for a company include: Company Name Which the bottom two correlate to: As far as I can tell, MINT_BILLING_TYPE hasn't ever been truly required, we set a default one if one is not provided. However, the admin email is required and looking through the code has been required for over 18 months, likely longer. https://docs.apigee.com/api-platform/monetization/companies-and-developers-manage-manually#add |
@sethhoward1988 is the |
That's correct. |
Thanks @sethhoward1988 , not all the fields shown in the company create call documentation are required, and until last week sending the cURL call above was working. It looks like ADMIN_EMAIL |
@sethhoward1988 I missed the point that you said earlier that MINT_BILLING_TYPE will be set to default if not used, which I just validated. @arshad it looks like the only change we need to make is to add ADMIN_EMAIL attribute. |
@sethhoward1988 could you tell us what we the ADMIN_EMAIL is used for in the Monetization API? We want to make sure we understand what we set for that value and how the attribute is used internally by the Monetization API. Is it used to enforce role based access control or to sent emails to that developer? What if there are more than one admin for the company? |
The admin email is currently required to be a default developer for the company. The admin email must be a valid email for a developer that has already been created within the organization, otherwise this will return a resource not found when attempting to look up the developer. The admin email is as far as I can tell used primarily for notifications. If there is more than one admin for the company you can just add more developers to the company. The admin email is just requiring there be at least one person in the company from the time of creation. |
Describe the bug
The system will display the message "Cannot reach management server. An administrator should check the configuration of this site." when creating a team.
To Reproduce
Steps to reproduce the behavior:
Attribute does not exist Drupal\apigee_edge\Entity\Storage\EdgeEntityStorageBase->withController() (line 220 of /apigee_edge/src/Entity/Storage/EdgeEntityStorageBase.php).
Additional context
This same error comes back from Edge API if you try to create a company w/out the needed monetization fields:
Version Info
This can be the version you can see on admin/modules in Drupal or
the output of this command:
composer show
. Add Drupal core andother version information if needed.
drupal/apigee_m10n 1.1.0 Apigee Edge Monetization for Drupal
The text was updated successfully, but these errors were encountered: