Salesforce出站变更集的等价物是git diff。

huangapple go评论82阅读模式
英文:

Saleforce outbound change set equivalent of git diff

问题

使用UI,就我所知,当你从Salesforce的沙盒中创建一个出站变更集时,你必须对你更改的每种组件类型(并希望部署到生产环境)都有充分的了解,然后手动选择这些组件中的每一个。是否有类似于Salesforce的git diff,以系统地显示您对生产环境所做的更改?看起来应该有这样的功能。

我已经在Google上搜索过,也在Salesforce的设置中进行了详细查找。如果这个功能不存在,我感到非常震惊。

英文:

Using the UI, as far as I can tell when you create an outbound change set from a sandbox in Salesforce you have to have thorough knowledge of every component type that you changed (and want to deploy to production) and then manually select each one of those components. Is there anything like a git diff for Salesforce to systematically show you what things have changed vs production? It seems like there should be.

I have Googled this and searched the Salesforce settings high and low. If it doesn't exist, I am shocked.

答案1

得分: 1

以下是您要翻译的内容的翻译部分:

  • 有一个作为“git for dummies”的DevOps中心,供可能不知道部署所需的每一个小细节的管理员使用。就我记得来说,它需要一个公开可见的Github项目。(我不是指开源代码,我是指“可以从SF服务器访问,而不是只能从您公司的本地网络中访问的本地Github安装)

  • 因为你是对的,这是一门艺术。它从来不是“只需向对象添加一个新字段”。您需要页面布局吗?列表视图?报表类型,报表?哪些配置文件和权限集?

  • 与此无关的是 - 了解一下“源跟踪”。SF可以跟踪组织中所做的所有更改,并通过一个命令将它们下载到您的本地sfdx / vscode项目中。它最初是为“临时组织”(存在最多30天的小型沙盒)设计的,但您也可以在Dev、Dev Pro沙盒中受益于“源跟踪”...这将帮助您将更改从组织下载到本地磁盘,但您仍然需要一些Git知识来提交更改,您仍然需要命令来部署到非跟踪的组织(完全复制沙盒,生产组织)。

  • 当然,还有付费工具(Gearset,Copado?)提供了比较git分支-组织或组织-组织的功能,增量部署...随时与销售代表联系以获得演示。

  • 这取决于您的组织是否允许SF自行运作,还是您是否有一个成熟的IT团队,它更愿意使用现有的CI(Circle CI,Jenkins,Azure DevOps,GitHub Actions,GitLab CI)脚本来部署到生产环境。

英文:

There's DevOps Centre acting as "git for dummies", for admins who may not know every little thing they need to deploy. From what I remember it needs a publicly visible Github project. (I don't mean open source code, I mean "reachable from SF servers as opposed to a local Github installation visible only from your company's local network)

https://help.salesforce.com/s/articleView?language=en_US&id=sf.devops_center_overview.htm&type=5 Because you're right, it's an art. It's never "just add a new field to object". Do you need page layout? listview? report type, report? which profiles and permission sets?

And separate from that - read up about "source tracking". SF can keep track of all changes done in the org and download them to your local sfdx / vscode project with 1 command. It started as something for "scratch orgs" (mini sandboxes that exist for 30 days max) but you can benefit from "source tracking" in Dev, Dev Pro sandboxes too... This would help you pulling down changes from org to local disk but you still need some Git knowledge to commit your changes, you still need commands to deploy to non-tracked orgs (full copy sandbox, production org). https://developer.salesforce.com/blogs/2021/01/learn-moar-with-spring-21-sandbox-source-tracking

And of course there are paid tools (Gearset, Copado?) that offer the comparison git branch-org or org-org comparison, incremental deployments... Feel free to poke the sales reps for a demo.

It depends if in your organisation SF is left to its own devices or do you have a mature IT team that would prefer to script the deployments to prod using existing CI (circle ci, jenkins, azure devops, github actions, gitlab ci...)

huangapple
  • 本文由 发表于 2023年4月7日 00:56:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75951985.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定