Skip to content

Commit

Permalink
1.3.5 (#24)
Browse files Browse the repository at this point in the history
* fix batch job logging of queueables due to their missing completed date (@ChristGottlieb)

* increment version number

* Increment Package Version after opened Pull Request

* I should remember my own pipelines - reset package version

* Update Package Version sfdx-project.json, README and Installation Docs

---------

Co-authored-by: dschibster <dennis.grzyb@outlook.com>
Co-authored-by: GitHub Action Bot <action@github.com>
  • Loading branch information
3 people authored Sep 2, 2024
1 parent 381d768 commit d564f1b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Installation

<div>
<span><a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t09000000r9MwAAI" target="_blank">
<span><a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tJ8000000omLPIAY" target="_blank">
<img width="180" alt="Deploy to Salesforce"
src="https://github.com/dschibster/sfdx-batch-orchestrator/blob/master/resources/deploy_unlocked.png">
</a>
Expand All @@ -22,7 +22,7 @@
<div>
For your Sandbox:
<div><span>
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t09000000r9MwAAI" target="_blank">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tJ8000000omLPIAY" target="_blank">
<img width="180" alt="Deploy to Salesforce"
src="https://github.com/dschibster/sfdx-batch-orchestrator/blob/master/resources/deploy_unlocked.png">
</a></span><div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ public with sharing class BatchJobLogger {
WHERE Id = :asyncJobId
];

DateTime completedDate = job.CompletedDate != null ? job.CompletedDate : DateTime.now();
Datetime completedDate = job.CompletedDate;
if (completedDate == null) {
completedDate = Datetime.now();
}

BatchApexStatusEvent__e statusEvent = new BatchApexStatusEventBuilder()
.withContext('FINISH')
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

| Environment | Package Type | Install Link |
| ----------- | ------------ | ----------------------------------------------------------------------------------------------- |
| Production | Unlocked | [Click here](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t09000000r9MwAAI) |
| Sandbox | Unlocked | [Click here](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t09000000r9MwAAI) |
| Production | Unlocked | [Click here](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tJ8000000omLPIAY) |
| Sandbox | Unlocked | [Click here](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tJ8000000omLPIAY) |
| Production | Unmanaged | Refer to README in Repository |

Simply click on one of the Links to install the App (it's recommended to install the Unlocked Package to easily benefit from future updates). After this, assign the "Batch Job Scheduler" Permission Set to anyone who needs to access. Administrators automatically get access to the App.
Expand Down
7 changes: 4 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"path": "batch-orchestrator",
"package": "sfdx-batch-orchestrator",
"versionName": "ver. 1.3.4",
"versionNumber": "1.3.4.0",
"versionName": "ver. 1.3.5",
"versionNumber": "1.3.5.0",
"default": true
}
],
Expand All @@ -23,6 +23,7 @@
"sfdx-batch-orchestrator@1.3.2-0": "04t09000000ijP5AAI",
"sfdx-batch-orchestrator@1.3.3-0": "04t09000000iktKAAQ",
"sfdx-batch-orchestrator@1.3.3": "04t09000000r9MrAAI",
"sfdx-batch-orchestrator@1.3.4": "04t09000000r9MwAAI"
"sfdx-batch-orchestrator@1.3.4": "04t09000000r9MwAAI",
"sfdx-batch-orchestrator@1.3.5": "04tJ8000000omLPIAY"
}
}

0 comments on commit d564f1b

Please sign in to comment.