Closed franck-boullier closed 5 years ago
Quickly implemented it, but I get /aws/lambda/alambda_simple {"fields":{},"level":"info","timestamp":"2019-03-26T05:26:05.186608865Z","message":"Response code 400, Body: \"No user found for requestorUserId 2HPpT3FYjQ2PacskN; No user found for user to edit userId chFmfTz34ahKcSNM9; No user found for proposed creatorId 2HPpT3FYjQ2PacskN\""}
from MEFE
OK this might be normal... I'll try to do the end to end test now with newly created users...
tp6uQiYQPyDLFQvF3
)user
- PASSEDThe payload was
{"userId": "tp6uQiYQPyDLFQvF3", "lastName": "Derp", "creatorId": "YYeAutqzDY3MeqbNC", "firstName": "Derpette", "actionType": "EDIT_USER", "phoneNumber": null, "emailAddress": "xxxx@gmail.com", "requestorUserId": "YYeAutqzDY3MeqbNC", "bzfeEmailAddress": "xxxx@gmail.com", "updateUserRequestId": 4}
The AWS notification seems to be sent twice for some reason...
This is now fixed (I updated the lambda triggers...)
@kaihendry any idea?
Please try again
tp6uQiYQPyDLFQvF3
)user
- PASSEDThanks @kaihendry!
I'm closing this as this works.
@nbiton what happens if the email is updated to an email that is already associate to an existing Unee-T user? The BZ side will not allow 2 different BZFE account with the same email address...
I'll open a different issue to discuss what will be the best strategy to handle that.
This describes the MEFE API to edit a Unee-T user. See https://github.com/unee-t/frontend/pull/735 for more details.
The Payload needed by the MEFE API:
Example response:
The Payload generated by the SQL via Lambda:
The SQL to run after the API returns a success:
@kaihendry Let me know when all is ready on your side (Golang) so I can test end to end.