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

Production: Updated Global Error Handler + Enabling Validations #321

Merged
merged 19 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4a1f0ac
Update `pom.xml` to support the older editor AnypointStudio
Aleksandr-v25 Jan 21, 2025
7c585e4
Add ".classpath" and ".project" to correctly import project to Anypoi…
Aleksandr-v25 Jan 22, 2025
804de80
Merge pull request #319 from AmericaSCORESBayArea/AnypointStudio-support
Aleksandr-v25 Jan 27, 2025
19ea679
Add Slack connector, modify global error handler to forward errors to…
Aleksandr-v25 Jan 27, 2025
738ac7e
Add specific error codes & messages
Aleksandr-v25 Jan 27, 2025
0fb250b
Update deployment scripts
Aleksandr-v25 Jan 27, 2025
b8b4c24
Fix `enums` for SessionTopic in PATCH /sessions
Aleksandr-v25 Jan 27, 2025
61315b7
Improve Slack Error Readability & Functionality
Aleksandr-v25 Feb 10, 2025
cd12916
Refactor: remove "entry-flow" and "exit-flow" refs
Aleksandr-v25 Feb 10, 2025
22b5847
Remove extra listener for /contacts/{contactId}
Aleksandr-v25 Feb 10, 2025
8494187
Update Scores - Salesforce Data API.postman_collection.json
Aleksandr-v25 Feb 10, 2025
addca19
Update `pom.xml` and `mule-artifact.json` with new props
Aleksandr-v25 Feb 12, 2025
3d43030
Update `global.xml` to correctly set external callback URL for Slack
Aleksandr-v25 Feb 12, 2025
bad496e
Update `global.xml` to correctly set external callback URL for Slack 2.0
Aleksandr-v25 Feb 12, 2025
69edcc9
Small typo fix
Aleksandr-v25 Feb 12, 2025
ebc5863
DueDate: Switch `date-only` to `datetime`
Aleksandr-v25 Feb 13, 2025
2f947eb
Merge pull request #320 from AmericaSCORESBayArea/global-error-handli…
Aleksandr-v25 Feb 15, 2025
9c4fedd
minor
Aleksandr-v25 Feb 17, 2025
6ca1caa
Update README.md
Aleksandr-v25 Feb 17, 2025
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
19 changes: 19 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="MULE_LIB/com.mulesoft.connectors/mule4-slack-connector/1.0.19"/>
<classpathentry kind="con" path="MULE_LIB/com.mulesoft.connectors/mule-salesforce-connector/10.20.3"/>
<classpathentry kind="con" path="MULE_LIB/org.mule.modules/mule-apikit-module/1.10.4"/>
<classpathentry kind="con" path="org.mule.tooling.API_SPEC_LIB/6c091e72-50d1-49ac-b04d-ee5bb9bc9dbd/salesforce-data-api/4.0.4"/>
<classpathentry kind="con" path="MULE_LIB/org.mule.connectors/mule-http-connector/1.9.3"/>
<classpathentry kind="con" path="org.mule.tooling.MULE_PROJECT_LIB"/>
<classpathentry kind="con" path="MULE_LIB/org.mule.connectors/mule-sockets-connector/1.2.4"/>
<classpathentry exported="true" kind="con" path="MULE_RUNTIME/org.mule.tooling.server.4.8.ee"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src/main/mule"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="src" path="src/test/munit"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
3 changes: 3 additions & 0 deletions .github/workflows/on-push-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ jobs:
-Dtypeform.clientid="${{ secrets.TYPEFORM_CLIENTID }}" \
-Dtypeform.clientsecret="${{ secrets.TYPEFORM_CLIENTSECRET }}" \
-Dtypeform.tkn="${{ secrets.TYPEFORM_TKN }}" \
-Dslack.client_id="${{ secrets.SLACK_CLIENT_ID }}" \
-Dslack.client_secret="${{ secrets.SLACK_CLIENT_SECRET }}" \
-Dslack.enabled=true \
-DskipTests


Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production-on-push-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,13 @@ jobs:
- name: Set up script permissions
run: chmod +x ./scripts/deployment-build.sh

- name: Set up script permissions 2
run: chmod +x ./scripts/disable-validations.sh

- name: Disable validations & execute deployment-build.sh with secrets
- name: Execute deployment-build.sh with secrets
env:
KEYSTORE_KEY_PASSWORD: ${{ secrets.PRODUCTION_KEYSTORE_KEY_PASSWORD }}
KEYSTORE_PASSWORD: ${{ secrets.PRODUCTION_KEYSTORE_PASSWORD }}
run: |
cd scripts
./disable-validations.sh
./deployment-build.sh $KEYSTORE_KEY_PASSWORD $KEYSTORE_PASSWORD

- name: Upload artifact
Expand Down Expand Up @@ -125,6 +122,9 @@ jobs:
-Dtypeform.clientid="${{ secrets.TYPEFORM_CLIENTID }}" \
-Dtypeform.clientsecret="${{ secrets.TYPEFORM_CLIENTSECRET }}" \
-Dtypeform.tkn="${{ secrets.TYPEFORM_TKN }}" \
-Dslack.client_id="${{ secrets.SLACK_CLIENT_ID }}" \
-Dslack.client_secret="${{ secrets.SLACK_CLIENT_SECRET }}" \
-Dslack.enabled=true \
-DskipTests


Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ src/main/resources/deploy.json
.vscode/*

src/main/resources/keystore.jks
/bin/
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>salesforce-data-api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.mule.tooling.core.muleStudioBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.mule.tooling.core.muleStudioNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Loading