v0.8.6

Catalogue Updates

User Guide - Catalogue Updates

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 allows updating the commercial offer available in our database.

This is necessary so that 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
plaintext

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.

Access Points

You can access the catalogue offer deployments through the MasStack Admin Web interface, depending on the environment:

Prerequisites

  • Permissions: There are two permissions needed for managing catalogue updates, according to the following table:
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 process should be running concurrently. The system does not support parallel updates.

How to Perform a Catalogue Update

  1. Access the Admin Dashboard for your target environment (STA or PROD) using the links above
  2. Verify Prerequisites: Otherwise, you won’t be able to trigger an update
  3. Trigger the Update through the Admin UI interface
  4. Monitor the Status: The update process goes through several phases

Understanding Update Status

The catalogue update can show the following statuses:

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

What Happens During an Update

The update process involves:

  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 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
plaintext

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
plaintext

For v3, the update process includes an additional migration phase where data is synchronized to PostgreSQL database.

This is transparent to users but may take slightly longer than v2.

Troubleshooting

If an update fails:

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

Additional Information

For technical details about the update architecture and event flow, see ADR-004: Catalogue Updates V3 Architecture.