跳转至

Repository settings(代码库设置)

Repository settings allow you to configure the behavior of your code repository. Changes to these settings will apply to all repository users.

Commit message settings

By default commit messages will be auto-generated when clicking the commit button or when building a dataset. You can encourage more meaningful messages by disabling this option. The commit message dialog will open before each commit and require a message to be submitted.

Repository upgrades

See repository upgrades to learn more.

Dataset aliases

Datasets can be referenced in code by using their exact location in Foundry (path) or by using their unique resource identifier (RID). While both options are valid, it is recommended to use RIDs where possible, as this allows resources to be moved from one location to another without needing any updates to the code in the repository.

The repository editor type-ahead functionality will allow you to search for data as you type, whether you type in paths, RIDs or free text. When you pick a dataset from the list of results, the editor will insert its path or RID depending on the setting:

  • Automatically change to RIDs when possible - This option will insert the RID of the dataset as well as offer to convert any path in the transform to an RID. The editor will present the dataset name over the RID and allow editing it as needed.
  • Do not automatically change locations to RIDs - This option will insert the path of the dataset and allow converting RIDs to paths when possible.

External systems

Information security officers can enable a repository for interaction with external systems. This is an advanced feature that allows developers to write external transforms, python code that interacts with web services and APIs on the open Internet or on-prem system via agent-proxy. This feature should only be enabled on repositories for highly trusted developers, since interactions with external systems cannot be guaranteed to follow Foundry's strict data provenance and access control practices. Security officers can limit the scope of data that is allowed to interact with external systems by configuring which mandatory control markings are allowed for export.


中文翻译

代码库设置

代码库设置允许您配置代码库的行为。对这些设置的更改将应用于所有代码库用户。

提交消息设置

默认情况下,点击提交按钮或构建数据集(Dataset)时,系统会自动生成提交消息(Commit message)。您可以禁用此选项,以鼓励使用更有意义的消息。每次提交前都会打开提交消息对话框,并要求输入消息后才能提交。

代码库升级

请参阅代码库升级了解更多信息。

数据集别名

在代码中引用数据集时,可以使用其在 Foundry 中的确切位置(路径),也可以使用其唯一资源标识符(RID)。虽然这两种方式都有效,但建议尽可能使用 RID,因为这样可以在将资源从一个位置移动到另一个位置时,无需对代码库中的代码进行任何更新。

代码库编辑器的自动提示功能允许您在输入时搜索数据,无论您输入的是路径、RID 还是自由文本。当您从结果列表中选择数据集时,编辑器将根据设置插入其路径或 RID:

  • 尽可能自动转换为 RID - 此选项将插入数据集的 RID,并提供将转换(Transform)中的任何路径转换为 RID 的选项。编辑器将在 RID 上方显示数据集名称,并允许根据需要进行编辑。
  • 不自动将位置转换为 RID - 此选项将插入数据集的路径,并在可能的情况下允许将 RID 转换为路径。

外部系统

信息安全官可以启用代码库与外部系统的交互功能。这是一项高级功能,允许开发者编写外部转换,即通过 agent-proxy 与开放互联网或本地系统上的 Web 服务和 API 交互的 Python 代码。此功能应仅针对受高度信任的开发者的代码库启用,因为与外部系统的交互无法保证遵循 Foundry 严格的数据溯源和访问控制规范。安全官可以通过配置允许导出哪些强制控制标记,来限制允许与外部系统交互的数据范围。