Skip to content
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

API based conditions #1033

Open
jenbutongit opened this issue Apr 3, 2023 · 0 comments
Open

API based conditions #1033

jenbutongit opened this issue Apr 3, 2023 · 0 comments

Comments

@jenbutongit
Copy link
Contributor

jenbutongit commented Apr 3, 2023

related to #903

#903 runs the risk of breaking conditions, if conditions rely on an API enabled list. For example, a condition may route a user to page B if they answered "United Kingdom". If the API serving the answer "United Kingdom" has changed, or is unavailable, the condition will always fail.

API enabled lists (so far) have been suggested to be able to route a user based on another (micro service). Instead of pulling a new List on each request (and risk conditions breaking), instead we can

  • POST the users' state to another API (similar to a web hook)
  • the external API will then return true or false
  • This answer is then "cached" until the end of the session (i.e. if the API updates mid journey, it should not affect any existing users, and the change only applies to new sessions)
  • This removes risks from the XGovFormBuilder runner, and makes the runner more flexible to other use cases
@jenbutongit jenbutongit converted this from a draft issue Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage (discussion or tech design)
Development

No branches or pull requests

1 participant