英文:
How to update Azure Data Factory live mode from Git branches?
问题
我的ADF配置如下:
- 主分支用于将所有最新更改从个人分支推送。
- 协作分支为空,并在ADF中设置为“协作”分支。
- 存在一个过时的实时模式,其中包含旧的流水线,我想要删除并替换为主分支的内容。
我的第一个需求是能够在我的ADF实例中设置ADF触发器。据我了解,这只能在实时模式下完成。因此,我需要使用来自我的Git仓库(主分支)的最新更改来更新实时模式。
我的问题是,只有在协作分支中才能找到“覆盖实时模式”按钮。如上所述,问题在于协作分支为空,今天不包含任何流水线。主分支包含所有最新的流水线。
在这里,应该采取什么最佳方法?我应该断开Git连接,然后重新连接,并将主分支设置为协作分支吗?然后再推送“覆盖实时模式”?
还是有办法将协作分支更改为“main”?
谢谢。
英文:
My ADF configuration is as follows:
- The Main branch is used to push all our latest changes from individual branches.
- The Collaboration branch is empty and set as the "collaboration" branch in ADF.
- There is an outdated live mode with old pipelines that I want to remove and replace with the content of the Main branch.
My first need is to be able to set ADF triggers in my ADF instance. From my understanding, it is only possible in the live mode. Therefore, I need to update the live mode with the latest changes from my Git repo (Main branch)
My issue is that the Collaboration branch is the only place where I can find the "Overwrite Live mode" button. As specified above, the problem is that Collaboration branch is empty and doesn't contain any pipelines today. The Main branch contains all the up-to-date pipelines.
What should be the best approach here? Should I disconnect Git and reconnect it, setting the Main branch as the collaboration branch? And then push "Overwrite Live Mode"?
Or is there a way to change the collaboration branch to "main"?
Thanks.
答案1
得分: 1
最好的选择是,正如你所说,先断开连接,然后再次连接,这次将"main"设置为协作分支。请注意,在重新连接时不要导入实时模式,以免覆盖你的主分支。
另一种选择是从"main"分支向"collaboration"分支发起拉取请求,这样将包括所有的更改,然后进行发布,或者覆盖实时模式。这将暂时修复你的环境,但未来的开发可能会再次出现相同的问题。
英文:
The best option would be, as you said, to disconnect, and then reconnect again, this time setting "main" as the collaboration branch. Note not to import the live mode while reconnecting, to not overwrite your main branch.
Another option is to do a pull request from "main" branch to the "collaboration" branch, which will then include all changes and then do a publish, or overwrite live mode. This will fix your environment for now, but you are likely to get the same issue again with future developments.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论