Catalogue Updates
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
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:
Operation Permission Included in roles Request a new catalogue update catalogue.designer.writecatalogue-admin
catalogue-designer-writerSee catalogue updates history catalogue.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:
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
| Description | V2 Status | V3 Status |
|---|---|---|
| The update is currently running | IN_PROGRESS | RUNNING |
| The update failed (check error details in the dashboard) | ERROR | FAILED |
| The update completed successfully | FINISHED_OK | COMPLETED |
Step 3: Monitor the update
The update goes through these phases:
- Data Composition: gathering offer data from Oracle, GCP buckets, and PostgreSQL
- Validation: running integrity checks in an isolated database
- Export: creating a catalogue dump file if the validations pass
- Distribution: uploading the dump to GCP storage
- Reload: each service instance loads the new catalogue dump
- Cache Refresh: clearing cached data to reflect the new commercial offer
- Completion: marking the update as finished
the process is designed to minimize downtime, but some latency may be experienced during the reload phase.
Version Differences
| Aspect | v2 | v3 |
|---|---|---|
| API Endpoint | /orgs/{org_id}/designer/catalogue_updates | /orgs/{org_id}/updates |
| Status Values | IN_PROGRESS / ERROR / FINISHED_OK | RUNNING / FAILED / COMPLETED |
| Additional Steps | Direct cache flush | Data migration to PostgreSQL before cache flush |
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:
- Check the error details in the Admin dashboard
- Ensure no concurrent updates were attempted
- Check the service logs for detailed error messages
- Contact the mas-catalogue team if the issue persists