dreedy wrote:Everyone here like what you have put together here. There is one thing that would need to be added and that would be a selection for the user group. preferably a drop down selection under the campaign drop down selection.
How would we proceed with this ? would this be part of the svn update ?
Hey dreedy, awesome news.
![Smile :)](./images/smilies/icon_smile.gif)
May I ask what the purpose of the user group will have in relation to this feature? I would like clarity on that please.
The way it would go is I've built the feature and I will propose that feature to the ViCiDial team and they will assess on it's merits, make suggestions, tweaks, even overhaul the piece where required or they may reject the piece. If the piece is accepted, that feature would likely be published into the current SVN trunk. But the team is very busy so no timescales are given and no guarantees are made for community contributions seeing any kind of release.
With that said, back to this feature...seems like's a great feature to me. I did some work on this last night and I've done some this morning and here is where I'm at in the development cycle;
- A specific admin page to set enable administrators to set campaign state schedules. ✅
- A new table has been proposed `vicidial_campaign_state_scheduler` which will hold our campaign state schedule times ✅
- A form that will allow you to input times in hours and minutes on any day of the week you wish to enable or disable your campaigns. ✅
- I've placed a button on the form that will reset the inputs so you can fully disable the schedule for a campaign in one click. ✅
- Error handling is present...so no non-numeric inputs, and no massive numbers. ✅
- Keepalive script has logic to pick these settings and will toggle your campaigns based on the schedules provided. ✅
- Admin panel menu options (pending) ⏳
- Usergroup binding (need your input on that please) ⏳
Here are some insights into what I have developed so far;
Log from the keepalive script;
- Code: Select all
Today is Wednesday! Checking whether or not to disable the HELPLINE campaign...
Minutes Since Midnight: 683
Campaign Active Start Time (in minutes): 676
Campaign Active Stop Time (in minutes): 677
The campaign schedule for HELPLINE campaign is active. Setting the campaign active flag to N
Today is Wednesday! Checking whether or not to disable the TEST campaign...
Minutes Since Midnight: 683
Campaign Active Start Time (in minutes): 682
Campaign Active Stop Time (in minutes): 683
The campaign schedule for TEST campaign is active. Setting the campaign active flag to Y
![Image](https://i.imgur.com/XaY1JVv.png)
I welcome any feedback on the piece. I have a view to have this submitted on Mantis at some point this week, next week at stretch. Thank you
![Smile :)](./images/smilies/icon_smile.gif)