Closed dave-mills closed 2 weeks ago
ClonePortfolio.php
, has been added. This script can duplicate an entire collection of projects, assessments, and scores - a feature we refer to as 'portfolio cloning'. Drawn up to meet the needs of one of our partners, this command is operated via the server but might be introduced to our GUI (Graphic User Interface) in the future. Utilizing this command, a user can spawn a replica of a chosen portfolio under a given organization. The program also creates a dedicated portfolio to hold the duplicates. For seamless operation, it logs into an admin account and duplicates each project while updating its name, code, and the portfolio it belongs to in the new portfolio.
Adds a small command that clones an entire portfolio (projects, assessments).
It uses the existing duplicate function for individual projects, and loops through a full list of portfolios.
The result is a new portfolio with an identical name except with " (clone)" added to it; and the project names and codes also have " (clone)" and "-clone" appended to them.
This is only for specific use cases and should only be accessible by system admins through the CLI.