feat(projects): surface owning company name in ProjectResponse #276
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-335-project-company-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GET /projects and GET /projects/{id} returned company_id but no company_name, so no consumer could show which company a project belongs to without an N+1 lookup. Add company_name: Option to ProjectResponse and resolve it in the list and get queries via a tenant-scoped correlated subquery on companies (LEFT-join semantics: null when company_id is unset or the company row is gone), matching the existing actual_hours/actual_amount subquery style in these queries.
#PMS-335
GET /projects and GET /projects/{id} returned company_id but no company_name, so no consumer could show which company a project belongs to without an N+1 lookup. Add company_name: Option<String> to ProjectResponse and resolve it in the list and get queries via a tenant-scoped correlated subquery on companies (LEFT-join semantics: null when company_id is unset or the company row is gone), matching the existing actual_hours/actual_amount subquery style in these queries. #PMS-335