Skip to main content
Matik Help Center home page Help Center
Matik Blog Case Studies
  1. Matik
  2. Building Templates
  3. Dynamic Content

Version Control for Dynamic Content

Versions is currently in beta. Contact your TAM for access.

Version control allows you to track the history of changes for a particular dynamic content, with the ability to name important checkpoints and restore from a prior version. Every save creates a new version automatically, so you can experiment with confidence and roll back when something goes wrong.

This article covers what a version is, how to access the version history, how to name and annotate versions, and how to restore from a historical version.

Overview

A version is a complete snapshot of a dynamic content item at a single point in time. Every version stores:

  • The full configuration of the dynamic content:
    • Name and description: The dynamic content's name and description.
    • Type and method: The dynamic content's output type (eg. text, table, image, chart, recipient, sender) and its method (eg. query, API, Insight, etc). 
    • Query and data source: The query body, query settings, and the data source the query runs against. This includes any references to inputs or nested dynamic content. 
  • And version metadata:
    • Author and timestamp: The user who created the version and the moment it was saved.
    • Version title and message: Any custom title and description you've added (see Managing Versions).

At any moment, exactly one version is the Live Version. This is the version that will run when the dynamic content is used in a generation. Every other version is a historical version, preserved for review and restore.

Matik creates versions automatically. You don't need to take any action to start tracking history. Every save of a dynamic content item demotes the previous Live Version to a historical version and creates a new Live Version with your latest changes.

Versions are immutable. Once created, the configuration captured in a historical version never changes. Only the version metadata (version title and description) can be edited.

Viewing Version History

You can track and manage versions from the Version History. Any admin with view access to the dynamic content can view the Version History list. To open Version History from the dynamic content form, go to the three-dot actions menu and select Show Version History.

Note: Version History only appears for dynamic content that has been saved at least once. If you're creating a brand new dynamic content item, save it first to start tracking history.

The panel lists versions in reverse-chronological order, with the Live Version at the top and historical versions below.

Each version in the list shows the following information:

  • Live Version badge: The Live Version is labeled with a Live Version badge. This is the version that will be used for generations.
  • Title: Your custom version label, or an auto-generated title if you haven't named the version. (see Version Names).
  • Description: Your custom version description, or an auto-generated description if you haven't added one.
  • Author: The user who saved this version.
  • Relative timestamp: How long ago the version was created (e.g., 3 hours ago, 2 days ago).

Restoring from a previous version

Restoring brings back the configuration of a historical version. The original historical version stays in the timeline. Restore creates a new Live Version that mirrors the historical one, so your full history is preserved.

To restore a historical version:

  1. Open the Version History panel.
  2. Find the historical version you want to restore.
  3. Click the menu icon (⋯) and select Restore this version.
  4. Confirm and click Restore.

A new Live Version is created, matching the configuration of the historical version you restored from. 

Managing Versions

Any admin with edit access to the dynamic content can name versions, restore from versions, or delete versions.

Version Cleanup

For performance reasons, Matik does not retain version history forever. Matik will clean up versions after a certain time frame.

  • Unnamed versions will be discarded after 3 months.
  • Named versions will be discarded after a year.

Version Title and Descriptions

When you haven't given a version a custom title or description, Matik generates one for you so the history is always readable at a glance. The auto-generated title is composed of the type of change followed by the date and time, and the description summarizes what changed.

Default title

The default title is populated based on the type of change that was made:

Event Default title
The dynamic content was first created Created • Mar 14, 2:30 PM
The dynamic content was edited and saved Updated • Mar 14, 2:30 PM
The dynamic content was restored from a historical version Restored • Mar 14, 2:30 PM

Default descriptions

The default description is populated based on what was changed:

Event Default description
Created Dynamic Content was created
Updated (with known changed fields) Query, Description was updated — the fields you changed in this save, listed by name.
Updated (no specific fields recorded) Dynamic Content was updated
Restored from a named version Restored from “Q3 baseline” — uses the label of the version you restored from.
Restored from an unnamed version Restored from a previous version

If you've added a custom title or description, your text replaces the default in the panel.

Naming Versions

You can also name a version, customizing the title or description yourself. 

  • This can help make important checkpoints easy to find later. For example, if you're about to make a significant change to the dynamic content, you can name the current version Pre-Edit - validated query so that you can easily find and revert to it if needed. 
  • Additionally, you can name versions to maintain change history. Named versions will be retained longer than unnamed versions. (See Version Cleanup.)

To name a version or edit its description:

  1. Open the Version History panel.
  2. Click the menu icon (⋯) on the version you want to edit.
  3. Select Name this version for an unnamed version, or Edit version info for a version you've already named.
  4. In the Edit version information modal, fill in the fields:
    • Title: A short label for the version. Limit 255 characters.
    • Description: Longer commit-message-style notes about what changed and why. Limit 2,048 characters.
  5. Click Save.

Deleting versions

If desired, you can also delete versions to clean up the list. To delete a version, go to the three-dot menu for a given version and select Delete version.

Note: you cannot delete the Live version. Instead, you can delete the dynamic content itself.

Best practices

  • Name your checkpoints. Before any significant change (eg. refactoring a query, switching data sources, restructuring inputs) name the current version with a clear label. Future-you will thank you.
  • Use descriptions to explain why. Auto-generated titles tell you what changed. A short description telling teammates why the change was made makes the history more useful when collaborating.

Was this article helpful?

Have more questions? Submit a request

Related articles

  • Using SSO's to sign in to Matik (Okta, Onelogin, Azure, Google)
  • Quickstart Guide to Generating Content
  • Working with Images in Dynamic Content

Articles in this section

  • Dynamic Content Overview
  • Version Control for Dynamic Content
  • AI Descriptions
  • Using Automated Insights Dynamic Content
  • Working with Images in Dynamic Content
  • Connecting Charts to Dynamic Content in Templates
  • Formulas DC
  • Sub-Content
  • Rich Text Formatting
  • Using Nested Dynamic Content in SQL Based Dynamic Content
  • See all articles

Comments

0 comments

Please sign in to leave a comment.

Personalize data-driven content in minutes

Product

  • How it Works
  • Integrations
  • AI Features
  • Security

Solutions

  • Sales
  • Customer Success
  • Ops & Strategy
  • Data

Resources

  • Blog
  • Templates
  • AI + CS Resource Hub
  • Case Studies
  • Help Center

Company

  • About Us
  • Careers
  • Terms of Service
  • Privacy Policy

© 2024 Matik, Inc.