requiredInfoValues are correctly projected, resolved, and written to export rows for all export entity types that support Required Info columns.attik-backend has a distinct path for Required Info columns: they are identified by a REQUIRED_INFO_VALUE_PREFIX on the column key, the backend adds requiredInfoValues to the MongoDB projection, and transformData resolves each cell by matching _requiredInfoId within the document's requiredInfoValues array.buildSingleEntityProjection only adds requiredInfoValues to the projection when targetEntity is inspections or quotes. If the export is run on any other entity, the field is silently absent from all fetched documents, producing empty cells with no error._requiredInfoId comparison fails (e.g. ObjectId string vs. string type mismatch), entry is undefined and rawValue defaults to ''.requiredInfoValues on records (hypothesis C): Jobs predating when Required Info was introduced may not have the array populated.inspections and quotes entity exports — this is intentional per buildSingleEntityProjection.inspections/quotes export, is the correct fix to silently drop RI columns with a UI warning, block RI column selection for unsupported entities, or expand RI support to additional entities?Backend (attik-backend / attik monorepo)
src/routes/dataExport.ts (apps/backend/src/routes/dataExport.ts) — route handler; buildSingleEntityProjection controls whether requiredInfoValues is added to the projection; getSingleEntityHeaderData calls getRequiredInfoLabelssrc/util/functions/dataExports/documentResolution.ts — transformData function; the Required Info cell resolution loop at column.startsWith(REQUIRED_INFO_VALUE_PREFIX); the _requiredInfoId match against doc.requiredInfoValuessrc/util/functions/dataExports/filterBuilders.ts — defines REQUIRED_INFO_VALUE_PREFIX and SPECIAL_RULE_PATHSFrontend (attik-frontend / attik monorepo)
src/app/tools/data-exports/CreateReportForm.tsx (apps/frontend/src/app/tools/data-exports/CreateReportForm.tsx) — column selection UI; how RI fields are added to the columns payload sent to the backendsrc/app/tools/data-exports/constants.ts (apps/frontend/src/app/tools/data-exports/constants.ts) — column key construction; confirm REQUIRED_INFO_VALUE_PREFIX is correctly applied when building the payloadPlease authenticate to join the conversation.
Triage
Main App
About 6 hours ago
Linear
Get notified by email when there are changes.
Triage
Main App
About 6 hours ago
Linear
Get notified by email when there are changes.