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

Refactor commodity code flow #5545

Closed
wants to merge 2 commits into from
Closed

Conversation

theseanything
Copy link
Contributor

@theseanything theseanything commented Aug 5, 2021

This PR refactors the commodity code flow to use dynamic options and store responses using query parameters

Using dynamic options simplifies the flow as previously it had multiple question nodes with the same question, but different options. This created redundant and duplicative content to maintain and also made the flow definition more difficult to read. This was a precursor step required to enable the flow to use query parameters, as the node names would be visible in the url and this makes them more user friendly.

This switches the commodity code flow to use query parameters as the response store instead of the URL path. This change is a part of a migration for all flows that previously used URL path to use query parameters.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@bevanloon bevanloon temporarily deployed to smart-answer-refactor-c-hjmhrl August 5, 2021 15:04 Inactive
@theseanything theseanything changed the base branch from main to add-dynamic-options August 5, 2021 15:06
Base automatically changed from add-dynamic-options to main August 9, 2021 11:18
This refactors the commodity code flow to use dynamic options. This
simplifies the flow as previously it handled dynamic questions by have
multiple question nodes with the same question, but different options.
This switches the commodity code flow to use query parameters as the
response store instead of the URL path. This change is a part of a
migration for all flows that previously used URL path to use query
parameters.
@bevanloon bevanloon temporarily deployed to smart-answer-refactor-c-hjmhrl August 11, 2021 13:09 Inactive
@theseanything theseanything marked this pull request as ready for review August 11, 2021 13:13
@theseanything
Copy link
Contributor Author

Closing for now - as not a team priority for now. Should be revisit one day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants