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

Clarify strategies for auto-plan #344

Merged
merged 3 commits into from
Apr 12, 2021
Merged

Clarify strategies for auto-plan #344

merged 3 commits into from
Apr 12, 2021

Conversation

landonreed
Copy link
Member

@landonreed landonreed commented Mar 19, 2021

This PR (in pursuit of changes for Call Taker) clarifies/defines the various strategies for replanning a trip whenever a query param change is detected in the form (AKA auto-plan). This includes a config update to autoPlan (no real breaking changes, unless an implementation had autoPlan: true at some point, but this was never documented).

The example config shows the approach:

### Define the strategies for how to handle auto-planning of a new trip when
### different query parameters are changes in the form. The default config is
### shown below, but if autoPlan is set to false, auto-plan will never occur.
### Other strategies besides those shown below are: ANY (any changed param will
### cause a re-plan).
# autoPlan:
# mobile: BOTH_LOCATIONS_CHANGED
# default: ONE_LOCATION_CHANGED

lib/actions/form.js Show resolved Hide resolved
@evansiroky evansiroky assigned landonreed and unassigned evansiroky Mar 23, 2021
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conditional approval on addressing my comment regarding autoplan strategy ANY.

lib/actions/form.js Show resolved Hide resolved
@landonreed landonreed merged commit 3b0ac43 into dev Apr 12, 2021
@landonreed landonreed deleted the enhance-auto-plan branch April 12, 2021 20:34
@evansiroky evansiroky mentioned this pull request Apr 13, 2021
@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants