Code Repositories

Code Repositories provides a web-based integrated development environment (IDE) for writing and collaborating on production-ready code in Foundry. The application provides a user-friendly way to interact with the underlying Git repository, and provides a range of additional features:

  • All common Git version control tasks, including branching, committing, and tagging releases can be performed through the web UI
  • Repositories have integrated support for code review and collaboration through pull requests, including support for highly configurable permissions to ensure the codebase is high-quality
  • Every repository type includes integrated features to aid with the code authoring experience, including IntelliSense, code linting and error checking, and rich help dialogs

code repositories transforms

To edit and manage your code in a familiar IDE, use VS Code workspaces or the Palantir extension for Visual Studio Code. To browse and share committed code without opening an editor, use the code viewer in Code Workspaces.

Repository types

Code Repositories support creating repositories of many types. The most common repository types are described below.

  • Transforms repositories support authoring data transformation logic, and include features to enable previewing and debugging transforms. Supported languages include Python, Java, and SQL
  • Functions repositories enable writing business logic that can be executed with low latency in an operational context, and include native support for accessing data from the Foundry Ontology. The Code Repositories environment supports autocomplete based on Ontology data types, and enables code authors to preview Functions while authoring them. Functions can be written in TypeScript or Python.
  • Model development is supported in Code Repositories. Learn more about how to develop models in Code Repositories.

Clone a repository locally

You can clone a Foundry code repository over HTTPS with Git if you have read access to the repository.

In the repository header, open the dropdown menu next to Code Repositories and select Work locally.

The Code Repositories dropdown shows the Work locally option.

In the Work locally dialog, expand Clone repository under Alternative development resources and select the copy icon to the right of the Git remote URL.

The Clone repository section shows the Git remote URL and a copy icon on the right.

Alternatively, construct the remote URL using your Foundry hostname and the repository resource identifier (RID). To set the local directory name, pass it as the second argument to git clone.

Copied!
1 git clone "https://<foundry-hostname>/stemma/git/<repository-rid>" my-repository

When Git prompts you for credentials, enter your Foundry username and use your authentication token as the password. Entering the token at the prompt keeps it out of your shell history and the saved remote URL.