forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
488 stars 78 forks source link

Features not being enabled in Scratch Org when release is Preview #266

Closed maaaaarco closed 4 years ago

maaaaarco commented 4 years ago

Summary

Using the same scratch org configuration file, features are not automatically enabled upon Org creation when setting release=Preview

This is the configuration file I'm using:

{
  "orgName": "MyOrg",
  "edition": "Developer",
  "features": [
    "AuthorApex",
    "ContactsToMultipleAccounts",
    "DebugApex",
    "DefaultWorkflowUser",
    "MultiCurrency",
    "PlatformEncryption",
    "EventLogFile",
    "RetainFieldHistory"
  ],
  "settings": {
    "orgPreferenceSettings": {
      "s1DesktopEnabled": true,
      "territoryManagement2Enable": true,
      "s1EncryptedStoragePref2": false
    },
    "opportunitySettings": {
      "enableOpportunityTeam": true
    },
    "securitySettings": {
      "sessionSettings": {
        "forceRelogin": false
      }
    },
    "mobileSettings": {
      "enableLightningOnMobile": true,
      "enableS1EncryptedStoragePref2": false
    }
  }
}

Steps To Reproduce:

  1. Create a Scratch Org using the configuration file provided, without specifing the release version
  2. After the Org is created verify that the Contacts to Multiple Accounts feature is enabled. Same for MultiCurrency.
  3. Create a Scratch Org using the configuration file provided, specifing release=Preview
  4. After the Org is created verify that Contacts to Multiple Accounts or MultiCurrency features are not enabled.

Expected result

When specifying the release=Preview the features listed in the configuration file should be enabled upon Org creation

Additional information

SFDX CLI Version: sfdx-cli/7.36.0-b1c4e9c7c8 darwin-x64 node-v10.15.3

SFDX plugin Version @oclif/plugin-autocomplete 0.1.5 @oclif/plugin-commands 1.2.3 (core) @oclif/plugin-not-found 1.2.3 (core) @oclif/plugin-plugins 1.7.8 (core) @oclif/plugin-warn-if-update-available 1.7.0 (core) @oclif/plugin-which 1.0.3 (core) @salesforce/lwc-dev-server 1.0.10 ├─ @oclif/plugin-help 2.2.1 └─ @oclif/plugin-update 1.3.9

@salesforce/sfdx-trust 3.0.5 (core) analytics 1.2.1 (core) generator 1.1.1 (core) salesforcedx 47.9.0 (core) ├─ salesforcedx-templates 47.9.0 (core) └─ salesforce-alm 47.10.0 (core)

sfdx-cli 7.36.0 (core)

OS and version: MacOs Mojave

clairebianchi commented 4 years ago

@maaaaarco, I believe this is a known issue that the Scratch org team is working on fixing. @rrmehta2 can you please confirm

anirudhbora commented 2 years ago

@clairebianchi , Hi any update on this, is it fixed?