Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
SFDX Metadata Conversion (#86)
Browse files Browse the repository at this point in the history
* Converted metadata to SFDX format
* Arranged metadata into subfolders
  • Loading branch information
jongpie authored Aug 24, 2020
1 parent 83ed711 commit 2463936
Show file tree
Hide file tree
Showing 148 changed files with 189 additions and 139 deletions.
12 changes: 12 additions & 0 deletions .forceignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#

package.xml

# LWC configuration files
**/jsconfig.json
**/.eslintrc.json

# LWC Jest
**/__tests__/**
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#Folders to exclude
# Folders to exclude
.settings/
config/
debug/
deploy/
.sfdx/
.vscode/

#Files to exclude
# Files to exclude
*.log
*.sublime-project
*.sublime-workspace
*.sublime-settings

32 changes: 26 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
language: node_js
node_js:
- "7"
install:
- npm install -g jsforce-metadata-tools
sudo: true
os: trusty
cache: false

env:
- URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz

before_install:
#- openssl aes-256-cbc -K $encrypted_b1fbf710b918_key -iv $encrypted_b1fbf710b918_iv
# -in assets/server.key.enc -out assets/server.key -d
- export SFDX_AUTOUPDATE_DISABLE=false
- export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
- export SFDX_DOMAIN_RETRY=300
- export SFDX_DISABLE_APP_HUB=true
- export SFDX_LOG_LEVEL=DEBUG
- mkdir sfdx
- wget -qO- $URL | tar xJ -C sfdx --strip-components 1
- "./sfdx/install"
- export PATH=./sfdx/$(pwd):$PATH
- sfdx --version
- sfdx plugins --core
- echo $SFDX_URL > sfdx_url_file
- sfdx force:auth:sfdxurl:store --sfdxurlfile sfdx_url_file --setalias nebula_ci

script:
- jsforce-deploy --checkOnly -u $DEPLOYMENT_USERNAME -p $DEPLOYMENT_PASSWORD$DEPLOYMENT_TOKEN -D $TRAVIS_BUILD_DIR/src -l $DEPLOYMENT_LOGIN_URL --rollbackOnError true --testLevel $DEPLOYMENT_TEST_LEVEL --pollTimeout $POLL_TIMEOUT --pollInterval $POLL_INTERVAL--verbose
- sfdx force:config:set apiVersion=39.0
- sfdx force:source:deploy --checkonly --manifest ./manifest/package.xml --testlevel RunLocalTests --targetusername nebula_ci --verbose
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -52,53 +52,7 @@
<enableSearch>true</enableSearch>
<enableSharing>true</enableSharing>
<enableStreamingApi>true</enableStreamingApi>
<fields>
<fullName>InitialClass__c</fullName>
<externalId>false</externalId>
<label>Initial Class</label>
<length>255</length>
<required>false</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>false</unique>
</fields>
<fields>
<fullName>TransactionId__c</fullName>
<caseSensitive>false</caseSensitive>
<externalId>true</externalId>
<label>Transaction ID</label>
<length>36</length>
<required>true</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>true</unique>
</fields>
<label>Nebula Log</label>
<listViews>
<fullName>All_Logs</fullName>
<columns>NAME</columns>
<columns>TransactionId__c</columns>
<columns>InitialClass__c</columns>
<columns>CREATEDBY_USER</columns>
<columns>CREATED_DATE</columns>
<columns>UPDATEDBY_USER</columns>
<columns>LAST_UPDATE</columns>
<filterScope>Everything</filterScope>
<label>All Logs</label>
</listViews>
<listViews>
<fullName>My_Logs</fullName>
<columns>NAME</columns>
<columns>TransactionId__c</columns>
<columns>InitialClass__c</columns>
<columns>CREATED_DATE</columns>
<columns>UPDATEDBY_USER</columns>
<columns>LAST_UPDATE</columns>
<filterScope>Mine</filterScope>
<label>My Logs</label>
</listViews>
<nameField>
<displayFormat>Log-{00000}</displayFormat>
<label>Log Name</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>InitialClass__c</fullName>
<externalId>false</externalId>
<label>Initial Class</label>
<length>255</length>
<required>false</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>TransactionId__c</fullName>
<caseSensitive>false</caseSensitive>
<externalId>true</externalId>
<label>Transaction ID</label>
<length>36</length>
<required>true</required>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Text</type>
<unique>true</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>All_Logs</fullName>
<columns>NAME</columns>
<columns>TransactionId__c</columns>
<columns>InitialClass__c</columns>
<columns>CREATEDBY_USER</columns>
<columns>CREATED_DATE</columns>
<columns>UPDATEDBY_USER</columns>
<columns>LAST_UPDATE</columns>
<filterScope>Everything</filterScope>
<label>All Logs</label>
</ListView>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>My_Logs</fullName>
<columns>NAME</columns>
<columns>TransactionId__c</columns>
<columns>InitialClass__c</columns>
<columns>CREATED_DATE</columns>
<columns>UPDATEDBY_USER</columns>
<columns>LAST_UPDATE</columns>
<filterScope>Mine</filterScope>
<label>My Logs</label>
</ListView>
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
<customSettingsType>Hierarchy</customSettingsType>
<description>Controls the behavior of the class Logger.cls</description>
<enableFeeds>false</enableFeeds>
<fields>
<fullName>EnableLogging__c</fullName>
<defaultValue>true</defaultValue>
<externalId>false</externalId>
<label>Enable Logging</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</fields>
<label>Nebula Logger Settings</label>
<visibility>Public</visibility>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>EnableLogging__c</fullName>
<defaultValue>true</defaultValue>
<externalId>false</externalId>
<label>Enable Logging</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<customSettingsType>Hierarchy</customSettingsType>
<description>Controls the behavior of the class SObjectTriggerHandler.cls</description>
<enableFeeds>false</enableFeeds>
<label>Nebula Trigger Handler Settings</label>
<visibility>Public</visibility>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>ExecuteTriggers__c</fullName>
<defaultValue>true</defaultValue>
<description>Controls if any trigger handler classes run its execute() method. This should always be enabled unless you are doing a data fix, etc and need to temporarily disable all triggers.</description>
<externalId>false</externalId>
<inlineHelpText>Controls if any trigger handler classes run its execute() method. This should always be enabled unless you are doing a data fix, etc and need to temporarily disable all triggers.</inlineHelpText>
<label>Execute Triggers</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>HandlerClassesToSkip__c</fullName>
<externalId>false</externalId>
<label>Handler Classes to Skip</label>
<required>false</required>
<trackTrending>false</trackTrending>
<type>TextArea</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>PreventRecursion__c</fullName>
<defaultValue>true</defaultValue>
<externalId>false</externalId>
<label>Prevent Recursion</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<customSettingsType>Hierarchy</customSettingsType>
<description>Controls the behavior of the class SObjectRecordTypes.cls</description>
<enableFeeds>false</enableFeeds>
<label>Nebula Record Types Settings</label>
<visibility>Public</visibility>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>IncludeManagedRecordTypes__c</fullName>
<defaultValue>true</defaultValue>
<description>Determines if managed record types are included in queries. If you do not use any managed record types, then you can disable this.</description>
<externalId>false</externalId>
<inlineHelpText>Determines if managed record types are included in queries. If you do not use any managed record types, then you can disable this.</inlineHelpText>
<label>Include Managed Record Types</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>LazyLoad__c</fullName>
<defaultValue>true</defaultValue>
<description>Determines if a separate query is executed for each SObject (lazy load enabled), or if a single query is used to pre-load all record types (lazy load disabled)</description>
<externalId>false</externalId>
<inlineHelpText>Determines if a separate query is executed for each SObject (lazy load enabled), or if a single query is used to pre-load all record types (lazy load disabled)</inlineHelpText>
<label>Lazy Load</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<customSettingsType>Hierarchy</customSettingsType>
<enableFeeds>false</enableFeeds>
<fields>
<fullName>IncludeCommonFields__c</fullName>
<defaultValue>true</defaultValue>
<externalId>false</externalId>
<label>Include Common Fields</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</fields>
<label>Nebula SObject Query Builder Settings</label>
<visibility>Public</visibility>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>IncludeCommonFields__c</fullName>
<defaultValue>true</defaultValue>
<externalId>false</externalId>
<label>Include Common Fields</label>
<trackTrending>false</trackTrending>
<type>Checkbox</type>
</CustomField>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private class SObjectRepositoryMocks_Tests {
List<IQueryFilter> queryFilters = new List<IQueryFilter>{new QueryFilter().filterByField(field, QueryOperator.EQUALS, getFieldValue())};
SObject returnedObj = new SObjectRepositoryMocks.Base(null).getByIdAndQueryFilters(new Set<Id>{testId}, queryFilters)[0];

System.assertEquals(getFieldValue(), returnedObj.get(String.valueOf(field)));
//System.assertEquals(getFieldValue(), returnedObj.get(String.valueOf(field.getValue())));
}

@isTest
Expand Down
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions sfdx-project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packageDirectories": [
{
"path": "nebula-app-framework",
"default": true
}
],
"namespace": "Nebula",
"sfdcLoginUrl": "https://nebulaframework-dev.my.salesforce.com",
"sourceApiVersion": "39.0"
}
28 changes: 0 additions & 28 deletions src/objects/NebulaRecordTypesSettings__c.object

This file was deleted.

34 changes: 0 additions & 34 deletions src/objects/NebulaTriggerHandlerSettings__c.object

This file was deleted.

0 comments on commit 2463936

Please sign in to comment.