Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
103ecf2fae | ||
|
|
23880521d9 | ||
|
|
637c28dc2f | ||
|
|
fc0c62c70a |
@@ -8,6 +8,7 @@
|
|||||||
- Application ID release: `com.korexlabs.dhinspeccion`.
|
- Application ID release: `com.korexlabs.dhinspeccion`.
|
||||||
- Application ID debug/QA: `com.korexlabs.dhinspeccion.debug`.
|
- Application ID debug/QA: `com.korexlabs.dhinspeccion.debug`.
|
||||||
- API: `https://dhv2.korexlabs.com/api/v3/`.
|
- API: `https://dhv2.korexlabs.com/api/v3/`.
|
||||||
|
- Servidor compatible de esta candidata: **API 0.29.0-2 / WEB 0.23.0-2**.
|
||||||
|
|
||||||
La variante debug es independiente de la app productiva y puede instalarse para QA/presentación sin sobrescribir una instalación release histórica.
|
La variante debug es independiente de la app productiva y puede instalarse para QA/presentación sin sobrescribir una instalación release histórica.
|
||||||
|
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dhv2-api",
|
"name": "dhv2-api",
|
||||||
"version": "0.29.0-2",
|
"version": "0.29.0-3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dhv2-api",
|
"name": "dhv2-api",
|
||||||
"version": "0.29.0-2",
|
"version": "0.29.0-3",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/common": "^11.0.0",
|
"@nestjs/common": "^11.0.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dhv2-api",
|
"name": "dhv2-api",
|
||||||
"version": "0.29.0-2",
|
"version": "0.29.0-3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -728,10 +728,13 @@ export class InspectionActsService {
|
|||||||
principal: AuthPrincipal,
|
principal: AuthPrincipal,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const [row] = (await manager.query(`
|
const [row] = (await manager.query(`
|
||||||
UPDATE inspection_acts
|
WITH updated AS (
|
||||||
SET current_version = current_version + 1
|
UPDATE inspection_acts
|
||||||
WHERE id = $1
|
SET current_version = current_version + 1
|
||||||
RETURNING current_version AS "versionNumber"
|
WHERE id = $1
|
||||||
|
RETURNING current_version
|
||||||
|
)
|
||||||
|
SELECT current_version AS "versionNumber" FROM updated
|
||||||
`, [act.id])) as Array<{ versionNumber: number }>;
|
`, [act.id])) as Array<{ versionNumber: number }>;
|
||||||
const versionNumber = Number(row.versionNumber);
|
const versionNumber = Number(row.versionNumber);
|
||||||
act.currentVersion = versionNumber;
|
act.currentVersion = versionNumber;
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export const API_VERSION = '0.29.0-1';
|
export const API_VERSION = '0.29.0-3';
|
||||||
export const API_PHASE = 'F6.1';
|
export const API_PHASE = 'F6.1';
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
import assert from 'node:assert/strict';
|
import assert from 'node:assert/strict';
|
||||||
import test from 'node:test';
|
import test from 'node:test';
|
||||||
|
import { readFileSync } from 'node:fs';
|
||||||
|
import { resolve } from 'node:path';
|
||||||
import { API_PHASE, API_VERSION } from '../../src/version';
|
import { API_PHASE, API_VERSION } from '../../src/version';
|
||||||
|
|
||||||
test('health metadata reports the current F6.1 release', () => {
|
test('health metadata reports the current F6.1 release', () => {
|
||||||
assert.equal(API_PHASE, 'F6.1');
|
assert.equal(API_PHASE, 'F6.1');
|
||||||
assert.equal(API_VERSION, '0.29.0-1');
|
const pkg = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf8')) as { version: string };
|
||||||
|
assert.equal(API_VERSION, pkg.version);
|
||||||
|
assert.equal(API_VERSION, '0.29.0-3');
|
||||||
});
|
});
|
||||||
@@ -63,3 +63,12 @@ test('F6.1 Acta urgency is null while drafting and is persisted atomically at lo
|
|||||||
assert.match(migration, /ALTER COLUMN urgency DROP NOT NULL/);
|
assert.match(migration, /ALTER COLUMN urgency DROP NOT NULL/);
|
||||||
assert.match(migration, /SET urgency=NULL WHERE status='DRAFT'/);
|
assert.match(migration, /SET urgency=NULL WHERE status='DRAFT'/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('F6.3 Acta version capture uses a SELECT-shaped CTE so TypeORM never turns the version into NaN', () => {
|
||||||
|
const service = source('src/inspection-acts/inspection-acts.service.ts');
|
||||||
|
|
||||||
|
assert.match(service, /WITH updated AS \(/);
|
||||||
|
assert.match(service, /RETURNING current_version/);
|
||||||
|
assert.match(service, /SELECT current_version AS "versionNumber" FROM updated/);
|
||||||
|
assert.match(service, /const versionNumber = Number\(row\.versionNumber\)/);
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export const APP_VERSION = '0.23.0-1';
|
export const APP_VERSION = '0.23.0-2';
|
||||||
export const APP_PHASE = 'F6.1 · Contexto operativo Área–Operadora consolidado';
|
export const APP_PHASE = 'F6.1 · Contexto operativo Área–Operadora consolidado';
|
||||||
|
|||||||
Reference in New Issue
Block a user