Skip to main content

VIRIDIAN Backend versión 4.2.10

Changelog​

  • General: Se realizan ajustes para reforzar la seguridad sobre los siguientes microservicios: batchpayments-api, beneficiciares-api, digitalpay-qr, manager-api, notifications-hosted, onboarding-api, servicepayments-api, statements-api, transactions-api y trade-api

Tareas previas​

Selección de versión del release​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook release.yml -t select -e="version=4.2.10"
    info

    Este comando selecciona la versión del release.

Descarga de componentes​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook release.yml -K -t warmup
    info

    Este comando descarga las nuevas versiones de todos los componentes que serán actualizados.

Instrucciones​

Habilitar el mantenimiento​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook admin.yml -K -t maintenance-enable
    info

    Este comando habilita el modo mantenimiento.

Cambios en base de datos​

  1. Ejecutar el siguiente script.

    ALTER TABLE batch_payment_detail ADD user_fullname_create varchar(100);
    ALTER TABLE beneficiary ADD is_employee SMALLINT;
    ALTER TABLE beneficiary ADD pickup_person_name varchar(100);
    ALTER TABLE beneficiary ADD customer_type varchar(50);
    ALTER TABLE beneficiary ADD user_fullname_create VARCHAR(100);
    ALTER TABLE beneficiary_changes ADD user_fullname_create VARCHAR(100);
    ALTER TABLE notification ADD image_trn_id_trn char(25); 

    CREATE TABLE biometric_identity_data (
        id                 BIGINT IDENTITY(1,1) NOT NULL,
        customer_code      VARCHAR(40)  NOT NULL,
        provider           VARCHAR(20)  NOT NULL,
        provider_client_id VARCHAR(100) NOT NULL,
        status             VARCHAR(10)  NOT NULL,
        source             VARCHAR(30)  NOT NULL,
        provider_data      VARCHAR(4096) NULL,
        date_create        DATETIME     NULL,
        user_create        VARCHAR(40)  NULL,
        admin_user_create  VARCHAR(40)  NULL,
        date_update        DATETIME     NULL,
        user_update        VARCHAR(40)  NULL,
        admin_user_update  VARCHAR(40)  NULL,
        admin_date_update  DATETIME     NULL,
        CONSTRAINT pk_biometric_identity_data PRIMARY KEY (id)
    );

    CREATE TABLE qr_group (
        id                       BIGINT IDENTITY(1,1) NOT NULL,
        vfk_user                 BIGINT NOT NULL,
        vfk_customer             BIGINT NOT NULL,
        user_code                VARCHAR(40),
        customer_code            VARCHAR(40),
        qr_id                    VARCHAR(40),
        fk_qr_code               BIGINT,
        vfk_transaction          VARCHAR(25),
        status                   VARCHAR(50),
        type                     VARCHAR(50),
        note                     VARCHAR(100),
        currency                 VARCHAR(3),
        total_amount_requested   DECIMAL(19,2),
        total_amount_received    DECIMAL(19,2),
        total_participants       INT,
        total_participants_payed INT,
        equal_parts              SMALLINT,
        participant_amount       DECIMAL(19,2),
        customer_included        SMALLINT,
        due_date                 DATETIME,
        receiver_account_code    VARCHAR(40),
        receiver_account_type    VARCHAR(5),
        date_create              DATETIME,
        user_create              VARCHAR(40),
        admin_user_create        VARCHAR(40),
        user_update              VARCHAR(40),
        admin_user_update        VARCHAR(40),
        date_update              DATETIME,
        admin_date_update        DATETIME,
        CONSTRAINT pk_qr_group PRIMARY KEY (id)
    );

    CREATE INDEX idx_qr_group_user ON qr_group (vfk_user, vfk_customer, vfk_transaction);

    CREATE TABLE qr_group_payment (
        id                       BIGINT IDENTITY(1,1) NOT NULL,
        fk_qr_group              BIGINT NOT NULL,
        qr_id                    VARCHAR(40),
        fk_qr_code               BIGINT,
        vfk_transaction          VARCHAR(25),
        note                     VARCHAR(100),
        payer_name               VARCHAR(100),
        payer_bank_code          VARCHAR(10),
        payer_account_code       VARCHAR(40),
        payer_account_type       VARCHAR(10),
        payment_date             DATETIME,
        amount                   DECIMAL(19,2),
        currency                 VARCHAR(3),
        payment_number           INT,
        is_from_customer         SMALLINT,
        date_create              DATETIME,
        user_create              VARCHAR(40),
        admin_user_create        VARCHAR(40),
        user_update              VARCHAR(40),
        admin_user_update        VARCHAR(40),
        date_update              DATETIME,
        admin_date_update        DATETIME,
        CONSTRAINT pk_qr_group_payment PRIMARY KEY (id)
    );

    CREATE INDEX idx_qr_group_payment_group ON qr_group_payment (fk_qr_group, payment_date);

    ALTER TABLE qr_group ADD is_visible SMALLINT;
    UPDATE qr_group SET is_visible = 1 WHERE is_visible IS NULL;

Cambios en los servidores​

  1. Ninguno.

Cambios en componentes​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook release.yml -K -t deploy -e "type=cold"

Limpieza de archivos generados por el release​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook admin.yml -K -t cleanup

Verificación de componentes​

  1. En los servidores de aplicaciones, ejecutar el siguiente comando:

    docker ps -vs
    info

    Este comando muestra el estado de todos los docker containers ordenados alfabéticamente.

  2. Revisar el output del comando y asegurarse de que todos los docker containers tengan un status UP y no haya ningún docker container detenido.

Deshabilitar el mantenimiento​

  1. En el servidor de administración, ejecutar el siguiente comando ansible:

    ansible-playbook admin.yml -K -t maintenance-disable
    info

    Este comando deshabilita el modo mantenimiento.

Resumen de versiones​

componenterelease 4.2.9release 4.2.10
viridian-config-properties9.15.09.16.0
server-config9.1.0
server-eureka9.1.0
vdb-routes-public9.6.0
vdb-routes-internal9.3.0
vdb-routes-bank9.3.0
gateway-public9.3.0
gateway-internal9.3.0
bank-gateway9.4.0
bank-service9.3.0
batchpayments-api9.4.09.5.0
batchpayments-hosted9.4.09.5.0
beneficiaries-api9.3.09.4.0
digitalpay-qr9.6.09.7.0
manager-api9.15.09.16.0
manager-hosted9.5.1
notifications-hosted9.3.09.4.0
onboarding-api9.3.09.4.0
servicepayments-api9.4.09.5.0
statements-api9.3.09.4.0
trade-api9.3.09.4.0
transactions-api9.4.09.5.1
transactions-hosted9.3.0
utilities-api9.4.0
frontend-vdb9.5.4
frontend-admin9.3.0