devops-center-feedback icon indicating copy to clipboard operation
devops-center-feedback copied to clipboard

Populate main branch with Org Metadata

Open jotraverso opened this issue 3 years ago • 8 comments

Is your feature request related to a problem? Please describe. I think could be great to populate the main branch with existing metadata in order to see actual differences between the Development Org and the next stage branch/org

Describe the solution you'd like Once we have set up the Release Org, having the environments configured At the Environments screen We can have an option to populate the branch with the Org Metadata The Metadata populated should be all Supported Metadata by DevOps Center

Additional context image

jotraverso avatar May 25 '21 15:05 jotraverso

Hi! The UX designer for DevOps Center here.

We have talked about this internally quite a bit, and even described it as "the big red button" just like you've drawn it!

To clarify, I think what you are asking for is an easy way to populate the main branch with ALL the production org metadata, rather than only the new changes introduced by working on work items.

Do I have this correct?

tsheiner avatar May 25 '21 20:05 tsheiner

Hello @tsheiner ,

Yes, would be great to be able to populate metadata to the branch without having to use SFDX externally, but the big point with my suggestion comes with all suppported metadata, because I know we cannot deploy all metadata and settings through SFDX/Metadata API

jotraverso avatar May 26 '21 11:05 jotraverso

This issue has been linked to a new work item: W-9487121

uip-robot-zz avatar Jun 18 '21 21:06 uip-robot-zz

I have implemented this feature as a Github Action which retrieves production metadata to Github nightly. I have chosen to retrieve the metadata to a "prod-read-only" branch, which has several advantages :

  • it isolates a copy of production on a different branch, so we don't get confused when retrieving metadata which has just recently been promoted
  • this schema can be extended to multi-org architectures where there are multiple production orgs being deployed from the same repo
  • it can be used for pure production-org audits, independently of any delivery operations

RupertBarrow avatar Nov 21 '22 10:11 RupertBarrow

@RupertBarrow could you share your github action ? It is interesting. Thanks

lramosmtx avatar Apr 03 '23 20:04 lramosmtx

100% agree.! @RupertBarrow could you share it? Indeed needed in DevOps Center!

praulkar avatar May 02 '23 04:05 praulkar

Hi @praulkar @lramosmtx , enjoy ! https://github.com/RupertBarrow/actions/tree/main/action-populate-repo-from-salesforce

RupertBarrow avatar Jun 26 '23 10:06 RupertBarrow

This is definitely a big one for admins. For one thing, you can't roll back something if you don't have a prior version. The second thing is that most Admin don't have the tools do create their own, which means their master will only have things that have been deployed through DevOps Center.