Giter VIP home page Giter VIP logo

js-salesforce-configs's Introduction

Maintains and provisions scratch org definition files for all Salesforce packages. Packages manually check out the most recent scratch def during package version setup.

Similar to npm ci, the scratch def is committed and does not dynamically change during build time. A developer has to manually upgrade it from this repository.

Getting Started

It is recommended to have the following tools installed on your machine

  • wget: Retrieve file from scratch def
  • jq: Modify the scratch def file after retrieval
  • prettier: Format file after retrieval

How To Integrate in Setup

Copy this snippet in a local script that is executed manually. Do not integrate this into your CI.

scratchOrgName="YOUR_SCRATCH_ORG_NAME"
wget https://raw.githubusercontent.com/j-schreiber/js-salesforce-configs/main/scratch-org-defs/default-scratch-def.json
jq --arg a "${scratchOrgName}" '.orgName = $a' default-scratch-def.json > config/default-scratch-def.json
rm -f default-scratch-def.json
./node_modules/.bin/prettier --write 'config/default-scratch-def.json'
git add config/default-scratch-def.json
git commit -m 'ops: update to latest scratch org def'

Notes

AdditionalFieldHistory is used to set a fix limit for field history tracking. As a workaround it is increased (default limit is 20), because Salesforce sometimes enables field tracking for standard fields, which are not enabled on our sandboxes. In our case of having 20 fields tracked on a sandbox, the scratch org exceeded the limit, because of the default tracked standard fields and broke the pipeline. For reference see: Salesforce Case #467469092

js-salesforce-configs's People

Contributors

j-schreiber avatar rohledermarc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.