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

Add setDatabaseResult(EmptyRecycleBinResult) and setDatabaseResult(List<EmptyRecycleBinResult>) #806

Merged
merged 16 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.

## Unlocked Package - v4.15.1
## Unlocked Package - v4.15.2

[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015ohhQAA)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015ohhQAA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class MicrobatchSelfRegController {
public String communityNickname {
get;
set {
communityNickname = value == null ? value : value.trim();
communityNickname = value?.trim();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ public with sharing class SiteRegisterController {
public String password {
get;
set {
password = value == null ? value : value.trim();
password = value?.trim();
}
}
public String confirmPassword {
get;
set {
confirmPassword = value == null ? value : value.trim();
confirmPassword = value?.trim();
}
}
public String communityNickname {
get;
set {
communityNickname = value == null ? value : value.trim();
communityNickname = value?.trim();
}
}

Expand Down
64 changes: 52 additions & 12 deletions docs/apex/Logger-Engine/LogEntryEventBuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ LogEntryEventBuilder

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(Database.LeadConvertResult leadConvertResult)` → `LogEntryEventBuilder`
Copy link
Contributor Author

@TrangOul TrangOul Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swapped with DeleteResult to maintain alphabetical order.
Similar changes in other classes.

#### `setDatabaseResult(Database.DeleteResult deleteResult)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields

##### Parameters

| Param | Description |
| ------------------- | --------------------------------------------------- |
| `leadConvertResult` | The instance of `Database.LeadConvertResult` to log |
| Param | Description |
| -------------- | ---------------------------------------------- |
| `deleteResult` | The instance of `Database.DeleteResult` to log |

##### Return

Expand All @@ -160,15 +160,15 @@ LogEntryEventBuilder

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(List<Database.LeadConvertResult> leadConvertResults)` → `LogEntryEventBuilder`
#### `setDatabaseResult(Database.EmptyRecycleBinResult emptyRecycleBinResult)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields

##### Parameters

| Param | Description |
| -------------------- | ------------------------------------------------ |
| `leadConvertResults` | The list of `Database.LeadConvertResult`s to log |
| Param | Description |
|-------------------------|---------------------------------------------------------|
| `emptyRecycleBinResult` | The instance of `Database.EmptyRecycleBinResult` to log |

##### Return

Expand All @@ -180,15 +180,15 @@ LogEntryEventBuilder

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(Database.DeleteResult deleteResult)` → `LogEntryEventBuilder`
#### `setDatabaseResult(Database.LeadConvertResult leadConvertResult)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields

##### Parameters

| Param | Description |
| -------------- | ---------------------------------------------- |
| `deleteResult` | The instance of `Database.DeleteResult` to log |
| Param | Description |
| ------------------- | --------------------------------------------------- |
| `leadConvertResult` | The instance of `Database.LeadConvertResult` to log |

##### Return

Expand Down Expand Up @@ -300,6 +300,46 @@ LogEntryEventBuilder

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields

##### Parameters

| Param | Description |
|--------------------------|------------------------------------------------------|
| `emptyRecycleBinResults` | The list of `Database.EmptyRecycleBinResult`s to log |

##### Return

**Type**

LogEntryEventBuilder

**Description**

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(List<Database.LeadConvertResult> leadConvertResults)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields

##### Parameters

| Param | Description |
| -------------------- | ------------------------------------------------ |
| `leadConvertResults` | The list of `Database.LeadConvertResult`s to log |

##### Return

**Type**

LogEntryEventBuilder

**Description**

The same instance of `LogEntryEventBuilder`, useful for chaining methods

#### `setDatabaseResult(List<Database.MergeResult> mergeResults)` → `LogEntryEventBuilder`

Sets the log entry event&apos;s database operation result fields
Expand Down
2 changes: 1 addition & 1 deletion docs/apex/Logger-Engine/LogMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Constructor to handle dynamically formatting a string with a list of inputs

```java
String unformattedMessage = 'my string with 1 input: {0}';
List<Object> arguments = new List<Object>{ System.now() };
List<Object> arguments = new List<Object>{ System.Datetime.now() };
String formattedMessage = new LogMessage(unformattedMessage, arguments).getMessage();
```

Expand Down
Loading