Code Monkey home page Code Monkey logo

sfdx-falcon-template's Issues

Add option to set installationkey in tools/install-pkg-in-sandbox - Enhancement

Need to add option to set installationkey in tools/install-pkg-in-sandbox .
This can be part of the info in 'local-config.sh'
something like :
PACKAGE_INSTALLATIONKEY=""
And them in tools/install-pkg-in-sandbox
Use

if [ -n "$PACKAGE_INSTALLATIONKEY" ]; then 
  PACKAGE_INSTALLATIONKEY="--installationkey $PACKAGE_INSTALLATIONKEY"
fi
...
(cd $PROJECT_ROOT && exec sfdx force:package:install \
                                $PACKAGE_INSTALLATIONKEY \
                                --package $PACKAGE_VERSION_ID \
 ...

Explain meaning of each folder under Schema

I am wondering what type of date each of the folders under the Schema folder should contain. For example, Custom Metadata Types are stored in the customMetadata folder in DX, and it is confusing when I see customMetadata and customMetadataTypes folders in the Schema folder.

Another question is where should I keep data for applications (.app-meta.xml) of layouts?

Custom Metadata "records" not being synced

It seems like the **.md entry in .forceignore is interfering with processing the custom metadata records.
The file extension for the MDAPI files is .md, and the DX files are .md-meta.xml
I changed the entry to: *README.md to ignore the readme files and was able to pull/push/convert them.

packageDirectories is unreliable

I've noticed that splitting up apps into separate directories is unreliable - compilation fails with references not being found from across the package. Not sure what is a good way to replicate, but encountered few times before abolishing this approach completely.

The idea is to use default for common stuff such as helpers and objects, and AppA, AppB folders for any new features added to org. Is this approach not feasible?

setup-project-org-auth fails with 'Unexpected argument https://test.salesforce.com'

Trying to set up my project , when running

 ./dev-tools/setup-project-org-auth 

result with :

Step 3 of 3: Setup authentication for this project's Subscriber Sandbox Org

Do you want set/replace the auth info for the  alias?
(type YES to confirm, or hit ENTER to cancel) YES
\nWeb authentication in progress using default browser. Press CTRL+C to cancel.\n
 ▸    Unexpected argument https://test.salesforce.com


WARNING: The web authentication request was canceled (or timed out).

Issue is here :

SUBSCRIBER_ORG_ALIAS="$NAMESPACE_PREFIX-SUBSCRIBER"

env parameter need to be called: SUBSCRIBER_SANDBOX_ALIAS in order to follow all reference in the code

How to use “sfdx force:source:pull” when folders other than “main/default” are used and components are added in the scratch org?

I've setup the folder structure for a new project following the patterns identified here. When I add e.g. a new SObject in the scratch org and use:

sfdx force:source:pull

the new components are put in a fixed folder "main/default" - there is no option to nominate the correct folder. So the folder structure is compromised.

(When components are already present locally in folders other than "main/default" the pull does place the changes correctly.)

Is there a work-around for this problem? If there isn't this multiple folder approach needs revising. So far I've wasted several hours trying to find a work around.

(Same question posted here https://salesforce.stackexchange.com/questions/206847/how-to-use-sfdx-forcesourcepull-when-folders-other-than-main-default-are-u.)

How to keep template users upgradable?

We took the Falcon template and adjusted it for ou purposes:

  1. Corrected errors
  2. Added CircleCI workflow steps
  3. Created Powershell version of the scripts
  4. Fixed bugs

What happens now when the repo is updated by Salesforce? The simple answer is we have to manually find and merge any change. Sure. But isn't there a better way to keep consumers of the template upgradable?

An idea could be to minimize the script parts to a minimum and provide a SFDX Falcon Plugin which only needs a ISV package specific configuration.

/dev-tools/setup-project-org-auth fails with Unexpected token ] in JSON at position 88

When trying to setup my Falcon project using no browser opens tpo Login to my DevHub org. Instead I get an error.

robert$ ./dev-tools/setup-project-org-auth 
\nLocal configuration variables set by ./dev-tools/lib/local-config.sh\n

PROJECT_ROOT -------------->  /Users/robert/dev/projects/travelexpenses
NAMESPACE_PREFIX ---------->  UP2GO_ITE
PACKAGE_NAME -------------->  Travel Expenses
DEFAULT_PACKAGE_DIR_NAME -->  /Users/robert/dev/projects/travelexpenses/sfdx-source/UP2GO_ITE
TARGET_ORG_ALIAS ----------> 
DEV_HUB_ALIAS ------------->  <%%-userAnswers.devHubAlias%>
SCRATCH_ORG_ALIAS --------->  UP2GO_ITE-SCRATCH
PACKAGING_ORG_ALIAS ------->  UP2GO_ITE-PACKAGING
SUBSCRIBER_ORG_ALIAS ------>  UP2GO_ITE-SUBSCRIBER
METADATA_PACKAGE_ID ------->  033F00000001hRi
PACKAGE_VERSION_ID -------->  04t0G000000T48F
SCRATCH_ORG_CONFIG -------->  /Users/robert/dev/projects/travelexpenses/config/project-scratch-def.json
GIT_REMOTE_URI ------------>  https://github.com/Up2Go/travelexpenses.git
ECHO_LOCAL_CONFIG_VARS ---->  true

Do you want to setup org authentication/aliases for this project?
(type YES to confirm, or hit ENTER to cancel) YES


Step 1 of 3: Setup authentication for this project's Dev Hub

Do you want set/replace the auth info for the <%%-userAnswers.devHubAlias%> alias?
(type YES to confirm, or hit ENTER to cancel) YES
\nWeb authentication in progress using default browser. Press CTRL+C to cancel.\n
ERROR:  Unexpected token ] in JSON at position 88.


WARNING: The web authentication request was canceled (or timed out).

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.