Project / application actions

Legacy projects.*, applications.*, environments.* actions, dashboard aggregates, and migration helpers.

Written By Zoro

Last updated 3 days ago

dFlow is moving customers from legacy Projects to Applications and Environments.

Server actions still use Payload collections named projects and services alongside applications and environments. Names below match actionName metadata and getActionAccess in packages/core/src/lib/permissions/config.ts.

Legacy Projects (Payload projects)

Primary implementation: packages/core/src/actions/project/index.ts. Dashboard aggregates: packages/core/src/actions/pages/project/index.ts.

actionNamePermission keys (from getActionAccess)
createProjectActionservers.read, projects.create
updateProjectActionprojects.update
deleteProjectActionprojects.delete, services.delete
getProjectDatabasesActionservices.read
getProjectDetailsprojects.read, services.read
getProjectBreadcrumbsprojects.read

createProjectAdminAction exists in project/index.ts for operator-style creation; confirm current RBAC in code if you rely on it.

Applications

Primary implementation: packages/core/src/actions/application/index.ts.

actionNamePermission keys (from getActionAccess)
getApplicationsActionapplications.read
getApplicationByIdActionapplications.read
getApplicationByMigratedProjectIdActionapplications.read, projects.read
createApplicationActionapplications.create
updateApplicationActionapplications.update
deleteApplicationActionapplications.delete
activateApplicationFlowActionapplications.update, environments.update, projects.read, projects.delete, services.update
setDefaultEnvironmentActionapplications.update
migrateProjectToApplicationActionprojects.read, projects.delete, services.read, applications.create, environments.create, applications.update, services.update
migrateProjectServicesToApplicationActionprojects.read, projects.delete, applications.update, services.update
getEnvironmentForProjectComputeActionprojects.read, environments.read

Customer docs: Migrate from legacy Projects to Applications under Migration and Release Notes in the sidebar.

Environments

Primary implementation: packages/core/src/actions/environment/index.ts.

actionNamePermission keys (from getActionAccess)
createEnvironmentActionenvironments.create
updateEnvironmentActionenvironments.update
deleteEnvironmentActionenvironments.delete
getEnvironmentByIdActionenvironments.read
getEnvironmentServiceDeploymentSummariesActionservices.read
getEnvironmentServiceDeploymentSummariesBatchActionservices.read
checkEnvironmentComputeReachabilityActionenvironments.read
getEnvironmentComputeLiveStatsActionenvironments.read
checkApplicationComputeReachabilityActionapplications.read

Dashboard cross-cuts

actionNamePermission keys (from getActionAccess)Notes
getProjectsAndServersservers.read, projects.readpages/dashboard/index.ts
getDashboardOverviewprojects.read, services.readpages/dashboard/index.ts

Learn more