Clone Activities (was Enable a script to create lodge stays and activities in bulk) SD663
As a member of the activity leaders group allow me to clone an activity so that I can more easily create the series of activities I need.
Fields that can be different in clones:
- Start Date
- End Date
- Registration Opens: Default to 9 am on Start date + 1 day
- Registration Closes: Default is noon on the Thursday preceding the Start date
- Leader
- Member and Non-member Prices (NOT cancellation fee) if either of those fees is >0 on the activity being cloned.
Notes:
- This is similar to what we do for lodge stays
- Add an "Allow activity cloning?" checkbox field to Route/Place so we can control what activities may be cloned (probably the Program Centers and Lodges, but it could be a few others). This determines whether the "Clone" action is visible.
Uses cases:
- Meany Lodge's "Day Use" activities
- Meany Lodge's "Snowshoe Trek + Lunch" activities
- Course lectures and field trips at program centers
----- Original Request -----
As an admin, I need to create a complex set of lodge stay events for each weekend of the winter season. Doing this via the UI is error prone, time consuming, and painful. Provide a way that I can write a script in powershell, python, php, etc that will create the appropriate entities in the backend database. I'm willing to generate entities in xml, json, or the flavor of your choice.
If you can't give me the ability to write a script to do, then consider providing a script that does the work needed.
The script I want will do the following
- Accept a list of dates for Fridays on which the lodge will open
- Create a Saturday Lodge Stay event
- Create a Friday Night Lodge Stay event
- in the body of the Saturday event, include text and a link pointing to the Friday event
- in the Friday night event, link it as a bundle to the Saturday Lodge stay
- in the Saturday event include links to the appropriate course events that are running that weekend (either an A series or B series ski lesson course, and a drop-in course roster)
- set the reservation date cutoff for both Friday and Saturday Events to be 1pm the Thursday before
the current Lodge stay event templates that are available cannot handle this kind of specific linking of events to other events. rather than trying to improve that feature, I'd rather have access to this kind of scripting ability.
Completed Sep 2019.
-
David Maltz commented
Hi @jeff - I see this item has been marked in progress. is there a spec that you're working off that I can review and comment on?
In my original feature request I listed out some of the operations I do beyond the basic "clone lodge stay" when I'm making the repeated series of Winter weekends for Meany. Are those the kinds of things that your revised clone operation will support?
thanks,
-Dave -
Clone Activities:
As a member of the activity leaders group allow me to clone an activity so that I can more easily create the series of activities I need.
Fields that can be different in clones: Start date, End date, Leader, and Maybe prices.
Fields to calculate: Registration opening datetime = Start date + 1 day (24 hours) and Registration closing datetime = noon on the Thursday preceding the Start date.
Uses cases:
- Meany Lodge's "Day Use" activities
- Meany Lodge's "Snowshoe Trek + Lunch" activities
- Course lectures
- Course field tripsNotes: This is similar to what we do for lodge stays. It's probably best to add an "Allow activity cloning?" field to Route/Place so we can control what activities may be cloned (probably the Program Centers and Lodges, but it could be a few others)
-
We already have a lodge stay cloning feature that does part of what you want. See this section of How to Schedule & Manage Lodge Stays (https://www.mountaineers.org/volunteers/schedule-manage/lodge-stays/how-to-schedule-manage-lodge-stays#clone). If you have suggestions for improving the cloning process, please do add an idea for that (e.g. something missing that would likely be different for each clone). We could probably develop an activity cloning process so that you can do something similar for the “day use” and “trek + lunch” activities—please do add this as a feedback idea if you think it will help along with the fields that would be different for each activity clone. We do need to be sure that features we add to the website are available and as easy to use as possible for the greatest number of users, so we do need to at least make as user-friendly a UI as we can.