-
-
Notifications
You must be signed in to change notification settings - Fork 163
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 setRecord method to LogEntryEventBuilder for handling Set of Ids and List of Ids #792
Conversation
nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls
Outdated
Show resolved
Hide resolved
nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @alanjaouen - @jongpie will create a new package version for you
thanks for your feedback please rebase before merging to squash commits together |
…t<Id>) works as expected
…erable', added a name-shadow class for 'Iterable' This ensures Nebula Logger can be installed/works correctly in orgs that decide to use name-shadowing
ccc4377
to
18cfb37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alanjaouen thanks so much for working on this, and @jamessimone thanks for reviewing it! I've pushed up a couple of small changes:
- Rebased the branch to
main
- Added an extra test method to validate that
List<Id>
also works as a parameter forsetRecord()
- Made the reference to
Iterable
use a fully qualified refSystem.Iterable
- Bumped the version number & name + created a new package version
I'm working on release notes now, I should have this released later today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed 1 more change to handle null
values for the Iterable<Id>
parameter - previously, a null
value caused a NullPointerException
.
Nice, thanks! |
Alright, this is now available in release |
As LogEntryEventBuilder provide methods
setRecord(SObject record)
andsetRecord(List<SObject> records)
, I sugest to addsetRecord(Set<Id> recordsIds)
to completesetRecord(Id recordId)
I reused
setRecord(List<SObject> records)
to avoid duplicating code, but feel free to give me your though on this