Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
68 lines
3.0 KiB
JavaScript
68 lines
3.0 KiB
JavaScript
exports.seed = function (knex) {
|
|
return knex('tenants').select('tenant').first()
|
|
.then((tenant) => {
|
|
if (!tenant) return;
|
|
return knex('project_tasks').insert([
|
|
{
|
|
tenant: tenant.tenant,
|
|
phase_id: knex('project_phases').where({
|
|
tenant: tenant.tenant,
|
|
phase_name: 'Territory Survey'
|
|
}).select('phase_id').first(),
|
|
task_name: 'Map New Areas',
|
|
description: 'Create detailed maps of newly discovered areas',
|
|
assigned_to: knex('users').where({
|
|
tenant: tenant.tenant,
|
|
username: 'glinda'
|
|
}).select('user_id').first(),
|
|
estimated_hours: 40,
|
|
actual_hours: 35,
|
|
status_id: knex('statuses').where({
|
|
tenant: tenant.tenant,
|
|
name: 'Magic Accomplished'
|
|
}).select('status_id').first(),
|
|
wbs_code: '1.1.1'
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
phase_id: knex('project_phases').where({
|
|
tenant: tenant.tenant,
|
|
phase_name: 'Infrastructure Planning'
|
|
}).select('phase_id').first(),
|
|
task_name: 'Design Road Network',
|
|
description: 'Planning road network for Wonderland expansion',
|
|
assigned_to: knex('users').where({
|
|
tenant: tenant.tenant,
|
|
username: 'glinda'
|
|
}).select('user_id').first(),
|
|
estimated_hours: 60,
|
|
actual_hours: null,
|
|
status_id: knex('statuses').where({
|
|
tenant: tenant.tenant,
|
|
name: 'Wand-Waving'
|
|
}).select('status_id').first(),
|
|
wbs_code: '1.2.1'
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
phase_id: knex('project_phases').where({
|
|
tenant: tenant.tenant,
|
|
phase_name: 'Green Space Enhancement'
|
|
}).select('phase_id').first(),
|
|
task_name: 'Plant Magical Flowers',
|
|
description: 'Plant new species of magical flowers in Emerald City parks',
|
|
assigned_to: knex('users').where({
|
|
tenant: tenant.tenant,
|
|
username: 'glinda'
|
|
}).select('user_id').first(),
|
|
estimated_hours: 20,
|
|
actual_hours: 15,
|
|
status_id: knex('statuses').where({
|
|
tenant: tenant.tenant,
|
|
name: 'Brewing Potion'
|
|
}).select('status_id').first(),
|
|
wbs_code: '2.1.1'
|
|
}
|
|
]);
|
|
});
|
|
}; |