fix(f4): align verification and web contracts with legacy cleanup
This commit is contained in:
@@ -36,7 +36,6 @@ export { InspectionActAsset } from './inspection-act-asset.entity';
|
||||
export {
|
||||
InspectionReport,
|
||||
InspectionReportPdfStatus,
|
||||
InspectionReportReviewStatus,
|
||||
InspectionReportStatus,
|
||||
InspectionReportWordStatus,
|
||||
} from './inspection-report.entity';
|
||||
|
||||
@@ -564,8 +564,6 @@ export class InspectionVerificationsService {
|
||||
|
||||
const visit = manager.getRepository(InspectionVisit).create({
|
||||
code,
|
||||
// Compatibilidad temporal de persistencia hasta retirar la columna legacy.
|
||||
title: code,
|
||||
objective: 'Verificar en campo la resolución de hallazgos con fecha de control programada.',
|
||||
status: InspectionVisitStatus.DRAFT,
|
||||
scopeAssetId: areaId,
|
||||
|
||||
Regular → Executable
+9
-6
@@ -8,18 +8,21 @@ PAGE="$ROOT/web-v2/src/pages/InventoryCreatePage.tsx"
|
||||
|
||||
for file in "$LAYOUT" "$APP" "$PAGE"; do
|
||||
test -f "$file" || {
|
||||
echo "F3.1 WEB contract: falta $file"
|
||||
echo "F4 WEB contract: falta $file"
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
|
||||
if grep -Fq "label: 'Relevamientos'" "$LAYOUT"; then
|
||||
echo "F3.1 WEB contract: Relevamientos no debe volver al menú principal"
|
||||
echo "F4 WEB contract: Relevamientos no debe volver al menú principal"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep -Fq 'path="/relevamiento/*"' "$APP"; then
|
||||
echo "F4 WEB contract: Survey/Relevamiento no debe volver a exponer rutas activas"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
grep -Fq 'path="/relevamiento/*"' "$APP"
|
||||
grep -Fq 'Navigate to="/inventarios" replace' "$APP"
|
||||
grep -Fq 'path="/inventarios/nuevo"' "$APP"
|
||||
grep -Fq 'InventoryCreatePage' "$APP"
|
||||
|
||||
@@ -28,10 +31,10 @@ for kind in AREA YACIMIENTO INSTALACION SUBINSTALACION; do
|
||||
done
|
||||
|
||||
if grep -Fq "kind: 'EQUIPO'" "$PAGE"; then
|
||||
echo "F3.1 WEB contract: el alta guiada no debe restaurar EQUIPO como quinto nivel estructural"
|
||||
echo "F4 WEB contract: el alta guiada no debe restaurar EQUIPO como quinto nivel estructural"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
grep -Fq 'getInventoryFamilyFindings' "$PAGE"
|
||||
|
||||
echo 'F3.1 WEB contract: OK'
|
||||
echo 'F4 WEB contract: OK'
|
||||
|
||||
Reference in New Issue
Block a user