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 {
|
export {
|
||||||
InspectionReport,
|
InspectionReport,
|
||||||
InspectionReportPdfStatus,
|
InspectionReportPdfStatus,
|
||||||
InspectionReportReviewStatus,
|
|
||||||
InspectionReportStatus,
|
InspectionReportStatus,
|
||||||
InspectionReportWordStatus,
|
InspectionReportWordStatus,
|
||||||
} from './inspection-report.entity';
|
} from './inspection-report.entity';
|
||||||
|
|||||||
@@ -564,8 +564,6 @@ export class InspectionVerificationsService {
|
|||||||
|
|
||||||
const visit = manager.getRepository(InspectionVisit).create({
|
const visit = manager.getRepository(InspectionVisit).create({
|
||||||
code,
|
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.',
|
objective: 'Verificar en campo la resolución de hallazgos con fecha de control programada.',
|
||||||
status: InspectionVisitStatus.DRAFT,
|
status: InspectionVisitStatus.DRAFT,
|
||||||
scopeAssetId: areaId,
|
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
|
for file in "$LAYOUT" "$APP" "$PAGE"; do
|
||||||
test -f "$file" || {
|
test -f "$file" || {
|
||||||
echo "F3.1 WEB contract: falta $file"
|
echo "F4 WEB contract: falta $file"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
if grep -Fq "label: 'Relevamientos'" "$LAYOUT"; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -Fq 'path="/relevamiento/*"' "$APP"
|
|
||||||
grep -Fq 'Navigate to="/inventarios" replace' "$APP"
|
|
||||||
grep -Fq 'path="/inventarios/nuevo"' "$APP"
|
grep -Fq 'path="/inventarios/nuevo"' "$APP"
|
||||||
grep -Fq 'InventoryCreatePage' "$APP"
|
grep -Fq 'InventoryCreatePage' "$APP"
|
||||||
|
|
||||||
@@ -28,10 +31,10 @@ for kind in AREA YACIMIENTO INSTALACION SUBINSTALACION; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if grep -Fq "kind: 'EQUIPO'" "$PAGE"; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -Fq 'getInventoryFamilyFindings' "$PAGE"
|
grep -Fq 'getInventoryFamilyFindings' "$PAGE"
|
||||||
|
|
||||||
echo 'F3.1 WEB contract: OK'
|
echo 'F4 WEB contract: OK'
|
||||||
|
|||||||
Reference in New Issue
Block a user