-
Notifications
You must be signed in to change notification settings - Fork 83
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
LF-4690 Create POST endpoint to create an Ensemble addon #3655
LF-4690 Create POST endpoint to create an Ensemble addon #3655
Conversation
… for readability Remove reduce in favour of more readable array methods; encapsulate all three Ensemble methods into one function; define a constant for 'Ensemble Scientific'
…adability Remove unused returned values from registerOrganizationWebhook; un-nest code run when function does not return early; add comments to make more explicit how bulkSensorClaim response is defined from Ensemble API response
…n via organization_uuid
…rom Loic's screens
With the move towards the farm-wide "add-on" concept (and confirmation we're sticking with sending only organization_uuid), I'm now more inclined to let this be a POST to something like Otherwise I think "linking" and "unlinking" should l be the wording used now (to match the views) so I have made that change in the meantime. |
For now it will 400 if not Ensemble so we don't fill this table with records we can't use
This reverts commit 8503f81.
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.
Seems to be working great!
I think all my comments are optional
This PR had me wondering about being a good "addon_partner" and if we will ever need to limit req/s on our 3rd party endpoints. Would obv be worse for any readings endpoint than this one.
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.
Looking forward to integrating this! 😍
Description
This is the controller to link an Ensemble organization to a LiteFarm farm. You can send a different
addon_partner_id
if you like, but you'll get back a 400.POST to
/farm_addon
Request body:
Jira link: https://lite-farm.atlassian.net/browse/LF-4690
Type of change
How Has This Been Tested?
Test in postman
Checklist: