refactor(plugin): rename Plan to Program and add audience/UTM routes
Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
This commit is contained in:
1 parent
8268fad886
commit
71ff11390b
121 files changed
+5011
-2874
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\PlanBundle\Entity;
|
||||
namespace MauticPlugin\ProgramBundle\Entity;
|
||||
|
||||
use Mautic\CoreBundle\Entity\CommonRepository;
|
||||
|
||||
@@ -19,7 +19,7 @@ class TaskRepository extends CommonRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the plan, the dependencies (with their depends-on task) and the RACI rows (with their
|
||||
* Loads the initiative, the dependencies (with their depends-on task) and the RACI rows (with their
|
||||
* stakeholders) with the tasks, so that the list doesn't query them one by one.
|
||||
*
|
||||
* @param array<string, mixed> $args
|
||||
@@ -29,8 +29,8 @@ class TaskRepository extends CommonRepository
|
||||
$alias = $this->getTableAlias();
|
||||
|
||||
$args['qb'] = $this->createQueryBuilder($alias)
|
||||
->select($alias, 'pl', 'dep', 'depTask', 'raci', 'raciStakeholder')
|
||||
->leftJoin($alias.'.plan', 'pl')
|
||||
->select($alias, 'init', 'dep', 'depTask', 'raci', 'raciStakeholder')
|
||||
->leftJoin($alias.'.initiative', 'init')
|
||||
->leftJoin($alias.'.dependencies', 'dep')
|
||||
->leftJoin('dep.dependsOn', 'depTask')
|
||||
->leftJoin($alias.'.raci', 'raci')
|
||||
@@ -40,11 +40,11 @@ class TaskRepository extends CommonRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* All tasks of a plan, ordered by name, with their dependencies and RACI rows loaded.
|
||||
* All tasks of an initiative, ordered by name, with their dependencies and RACI rows loaded.
|
||||
*
|
||||
* @return Task[]
|
||||
*/
|
||||
public function findByPlan(Plan $plan): array
|
||||
public function findByInitiative(Initiative $initiative): array
|
||||
{
|
||||
return $this->createQueryBuilder('t')
|
||||
->select('t', 'dep', 'depTask', 'raci', 'raciStakeholder')
|
||||
@@ -52,8 +52,8 @@ class TaskRepository extends CommonRepository
|
||||
->leftJoin('dep.dependsOn', 'depTask')
|
||||
->leftJoin('t.raci', 'raci')
|
||||
->leftJoin('raci.stakeholders', 'raciStakeholder')
|
||||
->where('t.plan = :plan')
|
||||
->setParameter('plan', $plan)
|
||||
->where('t.initiative = :initiative')
|
||||
->setParameter('initiative', $initiative)
|
||||
->orderBy('t.name', 'ASC')
|
||||
->addOrderBy('t.id', 'ASC')
|
||||
->getQuery()
|
||||
|
||||
Reference in new issue
Block a user