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

APIGOV-27681 - event generator updates for processing #864

Merged
merged 12 commits into from
Jan 16, 2025

Conversation

jcollins-axway
Copy link
Collaborator

  • create event report interface and builder to help create it
  • add new processor to receive the event report and create transaction events
  • use event report in old create event methods to synchronize logic of all processors
  • cleanup from linting warnings

return beat.Event{}, errors.New("an event was not created")
}
if len(events) > 1 {
return events[0], errors.New("unexpectedly, more than one event was created, only returning the first")
Copy link
Collaborator

Choose a reason for hiding this comment

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

since we are getting only the first one, regardless of if theres more than 1, should this just warn in the if statement, and then fall through to the final return?

Copy link
Collaborator

Choose a reason for hiding this comment

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

...unless you really really wanted to return an error?

Copy link
Collaborator Author

@jcollins-axway jcollins-axway Jan 14, 2025

Choose a reason for hiding this comment

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

that would be the agent implementations issue here, the sdk should not enforce that

@jcollins-axway jcollins-axway merged commit cdee035 into main Jan 16, 2025
2 checks passed
@jcollins-axway jcollins-axway deleted the APIGOV-27681 branch January 16, 2025 16:48
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.

3 participants