Skip to content

Commit 79bd2fe

Browse files
authored
V0.1.7 - Better Support For Single Record Round Robins In Bulk (#22)
* Fixes #21 by bulkifying for users when they only pass a single record into a multiple-records-updated-in-a-single-transaction round robin
1 parent 2a2fd70 commit 79bd2fe

26 files changed

+18713
-30832
lines changed

.eslintrc.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"parser": "@babel/eslint-parser",
3+
"parserOptions": {
4+
"requireConfigFile": false,
5+
"babelOptions": {
6+
"parserOpts": {
7+
"plugins": ["classProperties", ["decorators", { "decoratorsBeforeExport": false }]]
8+
}
9+
}
10+
},
11+
"ignorePatterns": ["**/*.html", "**/*.css", "**/*js-meta.xml", "**/*.json"],
12+
"plugins": ["@lwc/eslint-plugin-lwc"],
13+
"rules": {
14+
"@lwc/lwc/consistent-component-name": "error",
15+
"@lwc/lwc/no-api-reassignments": "off",
16+
"@lwc/lwc/no-async-operation": "error",
17+
"@lwc/lwc/no-attributes-during-construction": "error",
18+
"@lwc/lwc/no-deprecated": "error",
19+
"@lwc/lwc/no-document-query": "error",
20+
"@lwc/lwc/no-dupe-class-members": "error",
21+
"@lwc/lwc/no-inner-html": "error",
22+
"@lwc/lwc/no-leading-uppercase-api-name": "error",
23+
"@lwc/lwc/prefer-custom-event": "error",
24+
"@lwc/lwc/valid-api": [
25+
"error",
26+
{
27+
"disallowUnderscoreUppercaseMix": true
28+
}
29+
],
30+
"array-callback-return": "error",
31+
"consistent-return": "error",
32+
"default-case": "error",
33+
"dot-notation": "error",
34+
"eqeqeq": ["error", "smart"],
35+
"guard-for-in": "error",
36+
"handle-callback-err": "error",
37+
"no-alert": "error",
38+
"no-await-in-loop": "error",
39+
"no-caller": "error",
40+
"no-confusing-arrow": "error",
41+
"no-console": "warn",
42+
"no-else-return": "error",
43+
"no-eval": "error",
44+
"no-extend-native": "error",
45+
"no-extra-bind": "error",
46+
"no-implicit-coercion": "error",
47+
"no-empty-function": [
48+
"error",
49+
{
50+
"allow": ["arrowFunctions", "functions", "methods"]
51+
}
52+
],
53+
"no-floating-decimal": "error",
54+
"no-implied-eval": "error",
55+
"no-iterator": "error",
56+
"no-label-var": "error",
57+
"no-labels": "error",
58+
"no-loop-func": "error",
59+
"no-multi-str": "error",
60+
"no-new-func": "error",
61+
"no-new-object": "error",
62+
"no-new-wrappers": "error",
63+
"no-new": "error",
64+
"no-octal-escape": "error",
65+
"no-proto": "error",
66+
"no-return-assign": "error",
67+
"no-return-await": "error",
68+
"no-script-url": "error",
69+
"no-self-compare": "error",
70+
"no-sequences": "error",
71+
"no-shadow-restricted-names": "error",
72+
"no-shadow": "error",
73+
"no-throw-literal": "error",
74+
"no-undef-init": "error",
75+
"no-unused-expressions": "error",
76+
"no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
77+
"no-use-before-define": ["error", { "functions": false }],
78+
"no-useless-computed-key": "error",
79+
"no-useless-concat": "error",
80+
"no-useless-constructor": "error",
81+
"no-useless-escape": "error",
82+
"no-useless-rename": "error",
83+
"no-useless-return": "error",
84+
"no-void": "error",
85+
"no-with": "error",
86+
"radix": "error",
87+
"vars-on-top": "error",
88+
"wrap-iife": ["error", "any"]
89+
}
90+
}

.github/workflows/deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
steps:
3838
# Checkout the code
3939
- name: 'Checkout source code'
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141
with:
4242
ref: ${{ github.head_ref }}
4343

4444
- name: 'Setup node'
45-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
4646
with:
47-
node-version: '18.17.0'
47+
node-version: 'lts/*'
4848
cache: 'npm'
4949

5050
- run: npm ci
@@ -63,15 +63,17 @@ jobs:
6363
rm coverage/ -rf
6464
6565
- name: Install & run SFDX Scanner
66-
run: npm run scan
66+
run: |
67+
npx sf plugins install code-analyzer
68+
npm run scan
6769
6870
# Authenticate using JWT flow
6971
- name: 'Auth to dev hub'
7072
shell: bash
7173
run: |
7274
echo "${{ env.DEVHUB_SERVER_KEY }}" > ./jwt-server.key
73-
npx sfdx force:auth:jwt:grant --clientid ${{ env.DEVHUB_CONSUMER_KEY }} --username ${{ env.DEVHUB_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
74-
npx sfdx config:set defaultusername=${{ env.DEVHUB_USERNAME }}
75+
npx sf org login jwt --client-id ${{ env.DEVHUB_CONSUMER_KEY }} --username ${{ env.DEVHUB_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub
76+
npx sf config set target-org ${{ env.DEVHUB_USERNAME }}
7577
env:
7678
DEVHUB_USERNAME: ${{ secrets.DEVHUB_USERNAME }}
7779
DEVHUB_CONSUMER_KEY: ${{ secrets.DEVHUB_CONSUMER_KEY }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.prettierrc

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
2-
"trailingComma": "none",
3-
"singleQuote": true,
4-
"tabWidth": 2,
5-
"printWidth": 140,
6-
"arrowParens": "avoid",
7-
"overrides": [
8-
{
9-
"files": "**/lwc/**/*.html",
10-
"options": { "parser": "lwc" }
11-
},
12-
{
13-
"files": "*.{cmp,page,component}",
14-
"options": { "parser": "html" }
15-
}
16-
]
2+
"trailingComma": "none",
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"printWidth": 160,
6+
"arrowParens": "avoid",
7+
"overrides": [
8+
{
9+
"files": "**/lwc/**/*.html",
10+
"options": { "parser": "lwc" }
11+
},
12+
{
13+
"files": "*.{cmp,page,component}",
14+
"options": { "parser": "html" }
15+
},
16+
{
17+
"files": "*.{cls, apex}",
18+
"options": { "parser": "apex" }
19+
}
20+
],
21+
"plugins": ["prettier-plugin-apex"],
22+
"$schema": "https://json.schemastore.org/prettierrc"
1723
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
## Deployment
77

8-
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008Oa7sAAC">
8+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy9OIAQ">
99
<img alt="Deploy to Salesforce"
1010
src="./media/deploy-package-to-prod.png">
1111
</a>
1212

13-
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008Oa7sAAC">
13+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKf000000sy9OIAQ">
1414
<img alt="Deploy to Salesforce Sandbox"
1515
src="./media/deploy-package-to-sandbox.png">
1616
</a>

0 commit comments

Comments
 (0)