Skip to main content

#Git0 debatiendo

Adopt Git-Based Salesforce Development in 8 Steps

 

Discover how to transition from org-based to source-based development in Salesforce. Follow a comprehensive Git playbook that outlines eight simple steps and learn the key benefits of this approach.

 

Date: Wednesday, September 18

Time: 2:45 PM - 3:30 PM PDT

Location: Moscone West, Level 3, Room 3018 

Bookmark (no reservation needed): https://reg.salesforce.com/flow/plus/df24/sessioncatalog/page/catalog/session/1718915794336001QCWW

Moscone West, L3, Room 3018

 

#Salesforcedevops #Git #Source-Driven Development #Version Control Systems 

Adopt Git-Based Salesforce Development in 8 Steps Discover how to transition from org-based to source-based development in Salesforce.

0/9000

@David Green FYI about to raise a new case for a new error

experiences/myCOMM1:sites.core.actions.UndoRedoException: Passed in position is out of range of the list its being inserted into. Property: sites.core.routes.Route.RenderList, position: 0, value: ViewId: null; TargetId: null; TargetSelector: null

 

Yesterday we added the ExperienceBundle to our Git repo so it is deployed each time we build the env or the overnight job runs its the test classes.

After it was added the deployment succeeded no errors, but then when the test run attempted to run it hit the above error with no further changes to the ExperienceBundle in GIT.  Note no publish has been conducted on the Experience either, not sure if that matters

So going to have to pull it out of our repo whilst this is investigated

4 comentarios
  1. 16 may 2022, 20:42

    @Tasos Papadatos unfortunately I think we have put it on the back burner for the moment, we kept having to get Salesforce cases opened to fix the same deployment issue or similar deployment issue when we had changed nothing.

    We used to do nightly test class runs to make sure nothing was broken and test coverage was good, but we have just switched from using on prem Jenkins to Github Actions and doing the nightly test class runs is not as easy.

0/9000
1 respuesta
  1. Vuk Stajic (MVRK Inc.) Forum Ambassador
    16 ago 2021, 11:23
0/9000

Hey everyone,

 

I am curious if anyone has suggestions for managing different branches and sandboxes within version control. We have 3 main sandboxes and our production org setup with their own branch:

 

master -> prod

training -> UAT

QA -> QA

develop -> develop

 

Right now, we struggle with environment specific values such as workflows email alerts with org-wide sender addresses, and custom labels. Maintaining different values across branches makes merges an absolute nightmare. We are selectively checking out individual files or cherry picking commits to move changes across branches/ orgs right now, but it feels like that is not the correct strategy.

 

I am also curious how folks manage individual files that touch multiple parts of the application, such as permission sets and trigger handlers. Oftentimes, there may be new functionality in a QA branch or sandbox, and only a portion of it is supposed to go to production for a release.

 

I know we are probably doing something incorrectly, but it seems like normal git branching and merging strategies are fundamentally at odds with the way that Salesforce sandboxes and orgs work.

 

Looking forward to hear from everyone's experiences and expertise - thank you!

13 comentarios
0/9000

Hi peeps, we have an upcoming meeting (virtual) on Jan 16th 2021 at 4 PM (GMT+8)! If you are interested to know more about branching strategies and how to avoid common mistakes while using Git for your Salesforce Development, don't forget to RSVP for the following event!

 

https://trailblazercommunitygroups.com/events/details/salesforce-salesforce-developer-group-kuala-lumpur-malaysia-presents-git-branching-strategies-for-salesforce-pros-cons-common-mistakes-and-how-to-fix-them/#/

1 comentario
0/9000

I need quick and simple information, this product has GIT integration for what has been developed, I have not seen the product yet but I would like to know this.

0/9000

Let's say that I have a Document or a Static Resource which stores an image that I use in an email template. The .email file within my project directory will have something that looks like this:

 

<img src="https://some-sandbox.na123.content.force.com/servlet/servlet.ImageServer?id=0155xxxxxxxxxxx&oid=00Dxxxxxxxxxxxx" />

 

What is the best practice for keeping this email template in your source control? Every time this email is deployed to another environment, the domain and the Ids will change. This is not unique to email templates either. This same issues could arise in a formula field which generates an image and references a Static Resource.

 

I was thinking it might be a good idea to keep a separate shell file in the project directory and assign all of the URLS to variables and inject them into the files when the project is deployed to a sandbox or production. This would work well for existing files but would require some extra effort from the developer for new static resources or email templates.

5 comentarios
0/9000

Gracias por asistir al primer evento del grupo. Con 18 asistentes podemos decir que fue un exito. Les comparto link a la presentación

https://bit.ly/3eIgSXo

 

Los invito a inscribirse al proximo evento Introducción a Git y Github que será el 18 de Julio a las 4pm 

https://bit.ly/2NCcSvC

 

Y recuerden revisar las fechas de los proximo certification days donde podran aprender para sus certificaciones y obtener vouchers 

https://trailhead.salesforce.com/credentials/cert-days

 

Estamos abiertos a comentarios y sugerencias sobre próximas reuniones

0/9000

How to combine both MDAPI and SFDX way of working?

 

Currently we are looking into adopting SFDX on our enterprise org.

A brief overview of our setup/current status:

  • "Monolith" org
  • Everything is under version control (GIT) - MDAPI format
  • Working pipelines for all higher test environments (full copies) & production

Since we are way above the limit of 10K components & have an existing operational projects running in parallel, we cannot start with migrating everything in a big bang to SFDX.

In order to do this, we were thinking of starting small, with a specific team on SFDX and all other teams still utilizing regular sandboxes. The following approach seemed feasible to us:

  1. Convert the MDAPI repository to Source and create a project specific branch out of it
  2. Create a feature branch for the developer to work on (push specific code to scratch org and pull back if needed)
  3. Once finished, merge feature branch into project branch (still all Source format)
  4. Convert Source to MDAPI and merge with full org MDAPI code base

The structure of the branches would be the following (see attachment)

 

This now brings me to the core question, what is the best way to handle step 4? I was thinking to do the following:

--> Create regular sandbox, merge code to this sandbox and retrieve full MDAPI code?

What do you guys think & most important, how can this be automated?

13 comentarios
  1. 6 abr 2020, 07:53
    @Davy Huijgens

    , after some back and forth with Salesforce as well - we will indeed focus on chopping down our monolith first in some deployable packages and iterate on it from there.

    Many thanks for your insights, really appreciated!

0/9000