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: Placeholder event representation for filtered journal events #31985

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

johanandren
Copy link
Member

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

"Event was not loaded. Use eventOption and load the event on demand with LoadEventQuery.")
if (filtered) {
throw new IllegalStateException(
"Event was filtered so payload is not present. Use eventOption to handle more gracefully.")
Copy link
Member

Choose a reason for hiding this comment

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

👍

case _ => throw new IllegalArgumentException(s"Can't serialize object of type ${o.getClass}")
}

override def fromBinary(bytes: Array[Byte], manifest: String): AnyRef = FilteredPayload
Copy link
Member

Choose a reason for hiding this comment

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

for sanity, match on the manifest and throw if unexpected

find . -name '*.scala' -type f | xargs grep "def identifier =" | sort

echo "## In reference.conf"
awk '/serialization-identifiers/,/}/' */src/main/resources/reference.conf
Copy link
Member

Choose a reason for hiding this comment

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

👍

@patriknw patriknw merged commit b179bb1 into main Jun 29, 2023
6 checks passed
@patriknw patriknw deleted the wip-persistence-filtered-event-payload branch June 29, 2023 11:57
@patriknw patriknw added this to the 2.8.3 milestone Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants