Managing Branch Operations in Data Workspaces

At the Data Workspaces level, you can perform several actions on the Data Project branches.

This task shows you how to:

View the Modification History for a Branch

You can view all the operations made on the current branch.

  1. Open a Data Workspace.    
    1. From the Data Project Control Center home page, click Open on a Data Project card.
      The selected Data Project opens.
    2. From the navigation menu, select Data Workspaces.
    3. Click a Data Workspace to open it.
      The navigation menu changes to display menus related to the Data Workspace configuration.
  2. Select Operations.
    The page shows a list of all the operations committed to the current branch for each day.

    Among these operations, you can find the Instantiate operation for the Data Workspace creation, the Push, the Pull, the Switch, and the Import branch operations.

  3. Optional: Click a commit card to view its details.

Pull Changes From a Data Project Branch

You can pull the latest changes made on the current branch.

The Pull action is similar to the Switch action, except that it selects the head commit of the Data Workspace branch automatically.

  1. Open a Data Workspace.    
    1. From the Data Project Control Center home page, click Open on a Data Project card.
      The selected Data Project opens.
    2. From the navigation menu, select Data Workspaces.
    3. Click a Data Workspace to open it.
      The navigation menu changes to display menus related to the Data Workspace configuration.
  2. Select Pull.
    The Pull latest changes dialog opens to let you pull the latest changes made on the current branch.
  3. In case of conflict on a resource, you can choose:
    OptionDescription
    Forget local changes To override your local changes with the latest published version.
    Keep local changes To ignore the changes of the latest published version.
    Choose resource by resource To resolve each resource conflict individually by keeping or ignoring local changes.

Cherry-Pick a Commit From a Data Project Branch

You can cherry-pick a specific commit made on the current branch without merging the full branch.

  1. Open a Data Workspace.    
    1. From the Data Project Control Center home page, click Open on a Data Project card.
      The selected Data Project opens.
    2. From the navigation menu, select Data Workspaces.
    3. Click a Data Workspace to open it.
      The navigation menu changes to display menus related to the Data Workspace configuration.
  2. Click Cherry-pick.
    The Cherry-pick dialog opens to let you choose one of the latest commits made on the current branch.
  3. Select a Branch.
  4. Select a Commit.

    The Changes (x) section at the bottom of the dialog shows the differences found between the selected commit and your current version. These include new, updated, equal, and deleted resources.

  5. In case of conflict on a resource, you can choose:
    OptionDescription
    Forget local changes To override your local changes with the latest published version.
    Keep local changes To ignore the changes of the latest published version.
    Choose resource by resource To resolve each resource conflict individually by keeping or ignoring local changes.

Switch to Another Branch

You can switch to another branch and commit version of the same Data Project.

This operation allows you to update the Data Workspace resources from a published version of the Data Project.

Keep in mind that:

  • A Data Project has a list of branches
  • A branch has a list of commits
  • A branch has a head pointer on the latest commit
  • A Data Workspace is linked to a Data Project branch and a commit of this Data Project branch.

  1. Open a Data Workspace.    
    1. From the Data Project Control Center home page, click Open on a Data Project card.
      The selected Data Project opens.
    2. From the navigation menu, select Data Workspaces.
    3. Click a Data Workspace to open it.
      The navigation menu changes to display menus related to the Data Workspace configuration.
  2. From the navigation menu, select Switch.
    The Switch data workspace target branch modal opens.
  3. Select the Branch and the Commit versions of the project in which you want the Data Workspace to switch.
  4. In case of conflict on a resource, you can choose:
    OptionDescription
    Forget local changes To override your local changes with the latest published version.
    Keep local changes To ignore the changes of the latest published version.
    Choose resource by resource To resolve each resource conflict individually by keeping or ignoring local changes.
  5. Click OK.

Result: The future commits will be made on the new branch.

Import a Branch

You can import changes from another commit of the same Data Project branch or from another branch. This action is similar to git merge.

Important: The import does not retrieve the history of that branch.

  1. Open a Data Workspace.    
    1. From the Data Project Control Center home page, click Open on a Data Project card.
      The selected Data Project opens.
    2. From the navigation menu, select Data Workspaces.
    3. Click a Data Workspace to open it.
      The navigation menu changes to display menus related to the Data Workspace configuration.
  2. From the navigation menu, select Import branch.
    The Import branch modal opens.
  3. Select the Branch and the Commit versions of the project from which you want to import changes.
  4. In case of conflict on a resource, you can choose:
    OptionDescription
    Forget local changes To override your local changes with the latest published version.
    Keep local changes To ignore the changes of the latest published version.
    Choose resource by resource To resolve each resource conflict individually by keeping or ignoring local changes.
  5. Click OK.