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

New campaign action to jump to another event in the current campaign #6215

Merged
merged 77 commits into from
Jul 17, 2018

Conversation

dongilbert
Copy link
Member

@dongilbert dongilbert commented Jun 13, 2018

Please be sure you are submitting this against the staging branch.

Q A
Bug fix? N
New feature? Y
Automated tests included? Pending
Related user documentation PR URL Pending
Related developer documentation PR URL Pending
Issues addressed (#s or URLs) Pending
BC breaks? N/A
Deprecations? N/A

Description:

This is dependent on and includes #6132. It should be merged first.

Instead of requiring users to duplicate decision trees within a campaign, we should be able to allow the user to specify another event in the campaign to jump to. This will reduce complexity within the campaign builder view and make campaigns easier to manage overall.

TODO:

  • Update the jumpToTarget property on jump events when cloning.
  • Decisions are logged as rotation after the jump rather than what it was at the time of the jump
  • If a contact jumps to multiple locations with decisions, pending decisions prior to the jump will be ignored (will not fix as it's an outlier case and not easily supported without further significant refactoring)

Steps to test this PR:

@dongilbert dongilbert added user-interface Anything related to appearance, layout, and interactivity WIP PR's that are not ready for review and are currently in progress Feature labels Jun 13, 2018
$event,
$viewParams = array_merge($viewParams, [
'form' => $this->setFormTheme($form, 'MauticCampaignBundle:Campaign:index.html.php', $formThemes),
'eventHeader' => $event['settings']['label'],
Copy link
Member Author

Choose a reason for hiding this comment

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

@alanhartless alanhartless force-pushed the staging.campaign-jump-to-event branch from 7fa94b8 to 9138d68 Compare June 28, 2018 21:45
@alanhartless alanhartless added this to the 2.14.0 milestone Jul 3, 2018
@alanhartless alanhartless changed the title [WIP] Jump to Campaign Event New campaign action to jump to another event in the current campaign Jul 5, 2018
@alanhartless alanhartless added ready-to-test PR's that are ready to test and removed WIP PR's that are not ready for review and are currently in progress labels Jul 5, 2018
@dongilbert
Copy link
Member Author

@alanhartless Your changes to this look great. Thanks!

@dongilbert dongilbert requested a review from dbhurley July 17, 2018 14:11
@dongilbert dongilbert merged commit 8da1a3d into mautic:staging Jul 17, 2018
@alanhartless alanhartless deleted the staging.campaign-jump-to-event branch November 15, 2018 20:36
@pjeby pjeby mentioned this pull request Nov 16, 2018
@carlos-moreira
Copy link

I think there are some bugs opened related to this new feature:
#6613
#6396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test PR's that are ready to test user-interface Anything related to appearance, layout, and interactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants