英文:
When editing a pipeline in Synapse Studio, is there a way to undo a change (e.g. undelete an activity)
问题
我已删除一个活动,但我看不到恢复它的方法。
谷歌搜索只会将我引导到还原Git版本的方法,这似乎对于简单撤销此更改来说太高级了。
在笔记本中有一个基本的撤销按钮,允许进行一次单独的撤销。这至少会有所帮助,但我希望能有更长时间的撤销历史记录。
英文:
I have deleted an activity and I cant see a way of undeleting it.
Googling just pushes me towards reverting Git versions, which seems way too high level for a simple undo of a change like this.
In notebooks there is a basic undo button that allows a single undo. That would be useful at least, but I would like to have a longer history of undos.
答案1
得分: 0
很遗憾,Azure Synapse 管道或 Azure 数据工厂当前没有撤销按钮。
英文:
unfortunately, there is no undo button currently in Azure Synapse pipelines or Azure data factory.
答案2
得分: 0
首先: 如果您尚未提交管道更改,您可以关闭该选项卡并放弃更改。这可能是最简单的方法,但您也会丢失可能已经进行的其他更改,所以请注意。
其次: 如果您正在使用Git分支(希望您是这样做的),您可以在另一个浏览器窗口中打开主分支,并从主分支中复制并粘贴UI中的活动到您的工作分支。有时候会有一些问题,所以效果可能会有所不同。
第三: 许多人可能不知道,但您可以直接编辑管道代码:
这将打开一个JSON代码编辑器:
如果您可以访问Git仓库,您可以从Git文件中(很可能是main分支)复制并粘贴丢失的JSON到此UI,然后点击“确定”以保存更改。这将把活动带回到您的管道中。
请注意: 这种方法非常强大,但在JSON中进行操作可能会导致意外后果,所以如果您选择这条路,请非常确定您知道自己在做什么。
英文:
While it is not a simple Undo button, there are several ways to recover a deleted activity.
First: if you have not committed the pipeline change yet, you can close the tab and discard changes. This is probably the easiest way, but you will also lose any other changes you may have made, so just be aware of that.
Second: if you are working Git branches (and hopefully you are), you can open the main branch in another browser window and copy and paste the activity in the UI from main back into your working branch. Sometimes it is a little wonky, so YMMV.
Third: many people aren't aware, but you can edit the pipeline code directly:
This will bring up a JSON code editor:
If you have access to the Git repo, you can copy and paste the missing JSON from the file in Git (again, most likely in main) into this UI and click "OK" to save the changes. This will bring the activity back into your pipeline.
BE WARNED: this approach can be very powerful, but messing around in this JSON can have unintended consequences, so be very sure about what you are doing if you go this route.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论