Busca guías, resúmenes de API y endpoints por nombre, ruta o palabra clave.

Catalogue Updates

Catalogue Última actualización

How to Perform a Catalogue Update

This guide explains how to update the commercial catalogue offer, known as “Despliegue de oferta” in the MasStack Admin frontend.

Overview

The catalogue update process updates the commercial offer available in our database. It is needed so that the changes made by the Commercial Offer team (OFC) are reflected in our public API.

This operation is typically performed by:

  • An internal mas-catalogue cronjob that runs daily at 04:00 AM (TZ=Europe/Madrid)
  • The Commercial Offer team (OFC)
  • The mas-catalogue team
⚠Catalogue updates may cause latency
Text
This process may cause latencies in the public API response time or even temporary unavailability in the worst case.

Therefore, it should be performed during off-peak hours and with caution.

Prerequisites

  • Permissions: two permissions are needed for managing catalogue updates:

    OperationPermissionIncluded in roles
    Request a new catalogue updatecatalogue.designer.writecatalogue-admin
    catalogue-designer-writer
    See catalogue updates historycatalogue.designer.readcatalogue-admin
    catalogue-designer-writer
    catalogue-designer-reader
  • No other catalogue update should be running. The system does not support parallel updates.


Step 1: Open the Admin Dashboard

Open the dashboard of your target environment in the MasStack Admin Web interface:

STA (Staging)
Dashboard
PROD (Production)
Dashboard
ℹNote

Without the permissions listed in the prerequisites you cannot trigger an update.


Step 2: Trigger the update

Request the update through the Admin UI. The update gets a status that you can follow in the dashboard.

Understanding the update status

DescriptionV2 StatusV3 Status
The update is currently runningIN_PROGRESSRUNNING
The update failed (check error details in the dashboard)ERRORFAILED
The update completed successfullyFINISHED_OKCOMPLETED

Step 3: Monitor the update

The update goes through these phases:

  1. Data Composition: gathering offer data from Oracle, GCP buckets, and PostgreSQL
  2. Validation: running integrity checks in an isolated database
  3. Export: creating a catalogue dump file if the validations pass
  4. Distribution: uploading the dump to GCP storage
  5. Reload: each service instance loads the new catalogue dump
  6. Cache Refresh: clearing cached data to reflect the new commercial offer
  7. Completion: marking the update as finished
ℹNote

the process is designed to minimize downtime, but some latency may be experienced during the reload phase.


Version Differences

Aspectv2v3
API Endpoint/orgs/{org_id}/designer/catalogue_updates/orgs/{org_id}/updates
Status ValuesIN_PROGRESS / ERROR / FINISHED_OKRUNNING / FAILED / COMPLETED
Additional StepsDirect cache flushData migration to PostgreSQL before cache flush
ℹNote

for v3, the update includes an additional migration phase where data is synchronized to the PostgreSQL database. This is transparent to users but may take slightly longer than v2.


Integration

For the technical details of the update architecture and its event flow, see Catalogue updates run on event-focused Pub/Sub topics and persist to PostgreSQL.


Troubleshooting

The update failed

Symptom: the update shows the FAILED (v3) or ERROR (v2) status.

Solution:

  1. Check the error details in the Admin dashboard
  2. Ensure no concurrent updates were attempted
  3. Check the service logs for detailed error messages
  4. Contact the mas-catalogue team if the issue persists