Code Repositories (Community)(代码仓库(社区版))¶
How does the "Reset" option in Code Repositories work?¶
The "Reset" option is equivalent to a git reset where all uncommitted changes of that branch is discarded and the branch is reset to the latest commit.
Topic Link: https://community.palantir.com/t/reset-button-in-code-repositories/744 ↗
Timestamp: October 10, 2024
Is there a way to preview or build a transform based on a historical version of the input dataset?¶
Specifically in Code Repositories, there is no way to select a specific input transaction (see the existing Input class parameters). However, you can call the createBranch endpoint which takes a transactionRid parameter that can be set to a previous transaction. Then you would be able to use this branch in your transform (branch being a parameter of the Input class).
Additionally, the simplest way to work with historical data is to use Contour: You can very easily change the input dataset version to a previous one, see the docs.
Topic Link: https://community.palantir.com/t/preview-on-historical-dataset/189 ↗
Timestamp: December 6, 2024
中文翻译¶
代码仓库(社区版)¶
代码仓库中的"重置"选项是如何工作的?¶
"重置"选项相当于执行一次 git 重置操作,会丢弃该分支所有未提交的更改,并将分支重置为最新的提交记录。
话题链接: https://community.palantir.com/t/reset-button-in-code-repositories/744 ↗
时间戳: 2024年10月10日
是否可以根据输入数据集的历史版本预览或构建转换?¶
具体到代码仓库中,目前无法选择特定的输入事务(参见现有的 Input 类参数)。但您可以调用 createBranch 端点,该端点接受一个 transactionRid 参数,可将其设置为先前的事务。之后您就可以在转换中使用该分支(branch 是 Input 类的一个参数)。
此外,处理历史数据最简单的方法是使用 Contour:您可以非常轻松地将输入数据集版本切换为之前的版本,具体请参阅 文档。
话题链接: https://community.palantir.com/t/preview-on-historical-dataset/189 ↗
时间戳: 2024年12月6日