Open richardolsson opened 1 year ago
@richardolsson I'll take a stab at this one if no one else has started yet.
This is blocked because $self in campaign/{campaign_id}/callassignments does not work properly on the backend.
That's a pity! Honestly I can't believe we (that is, I myself) even implemented $self
in the first place, because I think it's quite ugly. The solution I would have gone with today is to create the call assignment first, then get it's ID and patch it (in an RPC). So that's another solution that would work to solve this issue.
The solution I would have gone with today is to create the call assignment first, then get it's ID and patch it (in an RPC). So that's another solution that would work to solve this issue.
I've updated the issue to reflect this proposed solution instead, and changed the tag as this does make the issue slightly bigger (but it's still a small medium). 😊
Description
When creating a new call assignment, it should be configured such by default that people are only spoken to once in that assignment. This is usually done by including a
call_history
filter in thegoal_filters
. But by default right now, thegoal_filters
is empty, meaning that there is no definition of done and a person can basically be spoken to an infinite number of times in the same assignment.Steps to reproduce
Expected Behaviour
Should show a Smart Search with a filter to find all people who have been reached in the current call assignment.
Actual Behaviour
Shows an empty Smart Search
Screenshots
Empty done criteria (Smart Search)
Proposed solution
After creating the Call Assignment (in
CampaignActionButtons
), immediately patch thegoal_filters
array, with the ID of the newly created assignment.