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
feat: callback endpoint for decision status #2977
Conversation
a2eacea
to
95d113f
Compare
API branch is deployed to platta: https://helsinkilisa-pr2977.api.dev.hel.ninja/healthz πππ |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2977.dev.hel.ninja πππ |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2977.dev.hel.ninja πππ |
TestCafe result is success for https://helsinkilisa-ui-handler-pr2977.dev.hel.ninja ππππ |
TestCafe result is success for https://helsinkilisa-ui-pr2977.dev.hel.ninja ππππ |
22f027d
to
6b38edd
Compare
Quality Gate passed for 'yjdh'Issues Measures |
Quality Gate passed for 'yjdh'Issues Measures |
Quality Gate passed for 'yjdh'Issues Measures |
Quality Gate passed for 'yjdh'Issues Measures |
APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2977.dev.hel.ninja πππ |
HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2977.dev.hel.ninja πππ |
API branch is deployed to platta: https://helsinkilisa-pr2977.api.dev.hel.ninja/healthz πππ |
TestCafe result is success for https://helsinkilisa-ui-pr2977.dev.hel.ninja ππππ |
TestCafe result is success for https://helsinkilisa-ui-handler-pr2977.dev.hel.ninja ππππ |
Description β¨
Ahjo Rest API has an endpoint for subscribing to updates for decisions made in Ahjo.
This PR adds a command for doing a POST request to the endpoint with the desired callback url as the JSON payload.
python manage.py subscribe_to_decisions_api
After running the command once, Ahjo should call the registered callback address with the following payload:
The application is then matched with the caseId and given the a new AhjoStatus of either signed_in_ahjo (if updatetype is "Added") or removed_in_ahjo (if updatetype is "Removed"). The "Updated" updatetype is not yet used.
Issues π
Testing βοΈ
Screenshots πΈ
Additional notes ποΈ