Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release v4.3.0 (VF Remoting, Queues) #105

Merged
merged 72 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
e8dac8e
lightning lookup w/o API v1
dschach Feb 7, 2023
b5e5d4f
dependabot auto-merge
dschach Feb 7, 2023
5b80488
Deploy rules & scripts
dschach Feb 7, 2023
4303659
API 56.0
dschach Feb 7, 2023
59d6ef2
Tests use Assert class
dschach Feb 7, 2023
851171c
Update scratch org definition files
dschach Feb 7, 2023
2069b97
feat: Update tests to use Assert class
dschach Feb 9, 2023
fbe390e
chore: Scratch org shape updates
dschach Feb 9, 2023
4effcfc
feat: Project to API 56.0
dschach Feb 9, 2023
178e1ce
feat(docs): ApexDox version upgrade
dschach Feb 9, 2023
e8481e8
fix(docs): update ApexDox
dschach Feb 13, 2023
4bf530c
fix(build): Update plugin dependencies
dschach Feb 13, 2023
04fde84
fix(tests): redirect test to private
dschach Feb 22, 2023
e40b10a
build(npm): update package dependencies
dschach Feb 22, 2023
0ef9783
build(pmd): remove updatepmd
dschach Feb 22, 2023
994b3f2
build(sfdx): change sfdx to sf commands
dschach Feb 22, 2023
77fa739
ci: update PR sfdx to sf, npm installation
dschach Feb 22, 2023
fa066cf
ci(codeQL): delete codeQL d/t IP address
dschach Feb 22, 2023
645169a
feat: update API to 57.0 (#1)
dschach Feb 23, 2023
58b6c9b
feat(tests): update tests (assertions, messages) (#3)
dschach Feb 23, 2023
42e8024
ci(codecov): add token to upload
dschach Feb 23, 2023
99d78d5
build: move tests folder into classes
dschach Feb 24, 2023
eabc780
build(deps-dev): bump eslint from 8.34.0 to 8.35.0 (#4)
dependabot[bot] Feb 27, 2023
0ae955b
build(changelog): instructions & tag prefix
dschach Feb 27, 2023
42c6889
feat: sfdx-scanner config
dschach Feb 28, 2023
2dc940d
build(sfdx): revert to sfdx package version create
dschach Feb 28, 2023
6eb588a
revert(API): use 56.0 to avoid GVS bug
dschach Feb 28, 2023
2b9f999
docs(README): add image descriptions
dschach Feb 28, 2023
4910af9
docs(ApexDox): include Installation & Changelog
dschach Feb 28, 2023
22ea89c
docs: update CanTheUser comments
dschach Mar 1, 2023
d34eaaf
APTemplate lookup actions
dschach Mar 2, 2023
0a6a3ca
build(sfdx): optimize forceignore
dschach Mar 2, 2023
8bf011b
fix: redirect on template choice for records
dschach Mar 4, 2023
992988e
feat(scripts): update latest jQuery
dschach Mar 5, 2023
70f43ba
fix: page redirect on template from object
dschach Mar 5, 2023
7ebb5f6
escape queries
dschach Mar 6, 2023
d4b477c
Beta 4.3.0-9
dschach Mar 6, 2023
6347bd6
comment cleanup
dschach Mar 6, 2023
0d18fd1
change URL match regex
dschach Mar 6, 2023
5056ebc
docs(Apex): test comments
dschach Mar 10, 2023
be97247
build(pmd): update rulesets
dschach Mar 10, 2023
415fdcf
feat: finish Professional Edition template lookup
dschach Mar 11, 2023
35f72d0
fix: remove unnecessary static resource images
dschach Mar 11, 2023
bc720e2
docs(ApexDox): rerun ApexDox
dschach Mar 11, 2023
0f4465b
build(pkg): remove redundancy in version create
dschach Mar 11, 2023
5a5336b
build(pkg): sfdx to sf version create
dschach Mar 11, 2023
0cdb40f
version 4.3.0-11
dschach Mar 11, 2023
67b8c9c
build(deps-dev): bump eslint from 8.35.0 to 8.36.0 (#6)
dependabot[bot] Mar 13, 2023
ff02a58
build(deps-dev): bump lint-staged from 13.1.2 to 13.2.0 (#7)
dependabot[bot] Mar 13, 2023
f360666
feat(sfdx): update sfdx to sf
dschach Mar 15, 2023
2e185a0
fix(sfdx): remove sequential packaging
dschach Mar 15, 2023
5cc128c
feat: update auto-changelog config
dschach Mar 15, 2023
96070b1
fix: remove unnecessary jsencode
dschach Mar 16, 2023
6a030e4
fix(sfdx): sf apex test correct config
dschach Mar 16, 2023
f27e8dc
docs: cleanup code, document variables
dschach Mar 16, 2023
65b6f8c
build(sfdx-scanner): attempt eslint ignore jquery
dschach Mar 16, 2023
4384b2b
deps(prettier): ignore sf directory
dschach Mar 16, 2023
58e0e0d
fix: cyclic dependency error display
dschach Mar 16, 2023
5fae8c0
fix(lookup): escape=false for record name
dschach Mar 16, 2023
349e1fb
chore: promote package 4.3.0
dschach Mar 16, 2023
0ae95fc
build(changelog): update changelog script
dschach Mar 16, 2023
22d1e3a
docs(ApexDox): update ApexDox
dschach Mar 16, 2023
9e222ec
Merge branch 'main' into main
dschach Mar 16, 2023
f365d20
fix: update install CLI code
dschach Mar 16, 2023
0e01f8f
fix: sfdx auth:sfdxurl to sf equivalent
dschach Mar 16, 2023
a5539dc
fix(ci): install sfdx and sf CLIs
dschach Mar 16, 2023
551e0f2
fix: sfdx auth:sfdxurl to sf equivalent
dschach Mar 16, 2023
3c8b638
fix(ci): install sfdx and sf CLIs
dschach Mar 16, 2023
b48bdd3
Merge branch 'main' of https://github.com/dschach/ActionPlansV4
dschach Mar 16, 2023
5af2539
remove extra space in installation.md
dschach Mar 16, 2023
f255823
ci(pmd): simplify PMD download
dschach Mar 16, 2023
aea8f73
fix(pmd, prettier): remove deprecated commands
dschach Mar 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .auto-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": true,
"commitLimit": 0,
"commitLimit": 40,
"hideCredit": true,
"tagPrefix": ""
"tagPrefix": "v"
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
**/aura/**/*.tokens
**/aura/**/*.xml
**/aura/**/*.app
**/ActionPlan_Resources/js
.sfdx
.sf
1 change: 1 addition & 0 deletions .forceignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ TaskPriority.standardValueSet
TaskType.standardValueSet
Lead-Lead Layout.layout
Account-Account Layout.layout
Opportunity-Opportunity Layout.layout-meta.xml
Global-Global Layout.layout
Account.object
Campaign.object
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,10 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

# Start local Apex parser server for Prettier
- name: 'Start local Apex parser server for Prettier'
run: npm run apex:local:start &

# Wait for Apex parser server startup
- name: 'Wait for Apex parser server startup'
run: timeout 30 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' 127.0.0.1 2117

# Prettier formatting
- name: 'Code formatting verification with Prettier'
run: npm run prettier:verify:apex:local
run: npm run prettier:verify

# Stop local Apex parser server for Prettier
- name: 'Stop local Apex parser server for Prettier'
if: always()
run: npm run apex:local:stop
pmd-analysis:
runs-on: ubuntu-latest
needs: format-lint
Expand All @@ -66,16 +54,10 @@ jobs:
- name: 'Checkout source code'
uses: actions/checkout@v3

- name: 'Use latest PMD version'
run: |
VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::')
echo $VERSION
echo -n $VERSION > pmd/pmd-version.txt

# Install PMD
- name: 'Install PMD'
run: |
PMD_VERSION=`cat pmd/pmd-version.txt`
PMD_VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::')
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F$PMD_VERSION/pmd-bin-$PMD_VERSION.zip
unzip pmd-bin-$PMD_VERSION.zip -d ~
mv ~/pmd-bin-$PMD_VERSION ~/pmd
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/dependabot-approve-and-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dependabot Pull Request Approve and Merge
on: pull_request_target
permissions:
pull-requests: write
contents: write
jobs:
# Auto merge Dependabot PRs for:
# - patch updates on prod dependencies
# - minor updates on dev dependencies
dependabot-auto-merge:
# Only run for Dependabot PRs
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: "Fetch Dependabot metadata"
id: dependabot
uses: dependabot/fetch-metadata@v1

- name: "Check auto merge conditions"
id: auto-merge
if: |
(
steps.dependabot.outputs.update-type == 'version-update:semver-patch' &&
contains('direct:production,indirect:production', steps.dependabot.outputs.dependency-type)
) || (
contains('version-update:semver-minor,version-update:semver-patch', steps.dependabot.outputs.update-type) &&
contains('direct:development,indirect:development', steps.dependabot.outputs.dependency-type)
)
run: echo "::notice ::auto-merge conditions satisfied"

- name: "Approve and merge PR"
if: ${{ steps.auto-merge.conclusion == 'success' }}
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
91 changes: 0 additions & 91 deletions .github/workflows/packaging.yml

This file was deleted.

47 changes: 27 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:
- 'config/**'
- 'data/**'
workflow_dispatch:
push:

concurrency:
group: pr-tests-${{ github.ref }}-1
cancel-in-progress: true

# Jobs to be executed
jobs:
check-pmd:
Expand All @@ -21,16 +25,10 @@ jobs:
- name: 'Checkout source code'
uses: actions/checkout@v3

- name: 'Use latest PMD version'
run: |
VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::')
echo $VERSION
echo -n $VERSION > pmd/pmd-version.txt

# Install PMD
- name: 'Install PMD'
run: |
PMD_VERSION=`cat pmd/pmd-version.txt`
PMD_VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::')
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F$PMD_VERSION/pmd-bin-$PMD_VERSION.zip
unzip pmd-bin-$PMD_VERSION.zip -d ~
mv ~/pmd-bin-$PMD_VERSION ~/pmd
Expand All @@ -48,13 +46,17 @@ jobs:
uses: actions/checkout@v3

# Install Salesforce CLI
- name: 'Install Salesforce CLI'
- name: 'Install Salesforce sfdx CLI'
run: |
npm install sfdx-cli --location=global
nodeInstallPath=$(npm config get prefix)
echo "$nodeInstallPath/bin" >> $GITHUB_PATH
sfdx --version

- name: 'Install Salesforce sf CLI'
run: |
wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
mkdir ~/sfdx
tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
echo "$HOME/sfdx/bin" >> $GITHUB_PATH
~/sfdx/bin/sfdx version
npm install @salesforce/cli --global
sf --version

# Store secret for dev hub
- name: 'Populate auth file with DEVHUB_SFDX_URL secret'
Expand All @@ -69,7 +71,7 @@ jobs:

# Authenticate dev hub
- name: 'Authenticate Dev Hub'
run: sfdx auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d
run: sf org login sfdx-url --sfdx-url-file ./DEVHUB_SFDX_URL.txt --alias devhub --set-default-dev-hub

# Add namespace to project config
- name: Add namespace to project config
Expand All @@ -78,30 +80,35 @@ jobs:

# Create scratch org
- name: 'Create scratch org'
run: sfdx force:org:create -f config/project-scratch-def.json -a ActionPlans -s -d 1 -w 20 --noancestors
#run: sfdx force:org:create -f config/project-scratch-def.json -a ActionPlans -s -d 1 -w 20 --no-ancestors
run: sf org create scratch --definition-file config/project-scratch-def.json --alias ActionPlans --set-default --no-ancestors --duration-days 1 --wait 20 --target-dev-hub devhub

# Deploy source to scratch org
- name: 'Push source to scratch org'
run: sfdx force:source:push
#run: sfdx force:source:push
run: sf deploy metadata --target-org ActionPlans

# Assign permissionset
- name: 'Assign permissionset to default user'
run: sfdx force:user:permset:assign -n Action_Plans_Admin
#run: sfdx force:user:permset:assign -n Action_Plans_Admin
run: sf org assign permset --name Action_Plans_Admin --target-org ActionPlans

# Run Apex tests in scratch org
- name: 'Run Apex tests'
run: sfdx force:apex:test:run --codecoverage --resultformat human -l RunLocalTests --wait 20 --outputdir ./
#run: sfdx force:apex:test:run --codecoverage --detailedcoverage --resultformat human -l RunLocalTests --wait 20 --outputdir ./
run: sf apex run test --code-coverage --detailed-coverage --result-format human --wait 20 --test-level RunLocalTests --output-dir ./

# Upload code coverage to Codecov.io
- name: 'Upload code coverage for Apex to Codecov.io'
uses: codecov/codecov-action@v3
with:
flags: Apex
token: ${{ secrets.CODECOV_TOKEN }}

# Housekeeping
- name: 'Delete scratch org'
if: always()
run: sfdx force:org:delete --noprompt -u ActionPlans
run: sf org delete scratch --no-prompt --target-org ActionPlans

# Remove namespace from project config
- name: Remove namespace from project config
Expand Down
13 changes: 3 additions & 10 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::')
echo $VERSION

printf '%s' "$VERSION" > pmd/pmd-version.txt
git add pmd/pmd-version.txt

npm run updateHighlight
npx lint-staged
npm run precommit
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

.localdevserver
.sfdx
.sf
.vscode/settings.json

data/
Expand Down
20 changes: 20 additions & 0 deletions .sfdx-scanner/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"engines": [
{
"name": "eslint",
"targetPatterns": ["**/*.js", "!**/lwc/**/*.js", "!**/node_modules/**", "!**/bower_components/**", "!**/jquery*.js"],
"disabled": false
},
{
"name": "eslint-lwc",
"targetPatterns": ["**/lwc/**/*.js", "!**/node_modules/**"],
"disabled": true
},
{
"name": "CPD",
"targetPatterns": ["**/*.cls", "**/*.trigger", "**/*.java", "**/*.page", "**/*.component", "**/*.xml", "!**/node_modules/**", "!**/*-meta.xml"],
"disabled": true,
"minimumTokens": "100"
}
]
}
25 changes: 12 additions & 13 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"recommendations": [
"salesforce.salesforcedx-vscode",
"redhat.vscode-xml",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"financialforce.lana",
"peterweinberg.apexdox-vs-code",
"chuckjonas.apex-pmd",
"eg2.vscode-npm-script",
"matteopieroni.refresh-npm-packages",
"subc4i.sublime-mavensmate-monokai-apex",
"PKief.material-icon-theme"
]
"recommendations": [
"chuckjonas.apex-pmd",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"financialforce.lana",
"matteopieroni.refresh-npm-packages",
"peterweinberg.apexdox-vs-code",
"pkief.material-icon-theme",
"redhat.vscode-xml",
"salesforce.salesforcedx-vscode",
"subc4i.sublime-mavensmate-monokai-apex"
]
}
Loading