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 eventCode to event input #943

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add eventCode to event input #943

wants to merge 4 commits into from

Conversation

VDubber
Copy link
Contributor

@VDubber VDubber commented Aug 16, 2023

No description provided.

@VDubber VDubber requested a review from a team as a code owner August 16, 2023 22:28
@@ -399,20 +405,27 @@ export class IntegrationLogger

validationFailure(err: Error) {
const eventName = 'validation_failure';
const { errorId, description } = createErrorEventDescription(
const { errorId, errorCode, description } = createErrorEventDescription(
Copy link
Contributor Author

@VDubber VDubber Aug 16, 2023

Choose a reason for hiding this comment

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

All we get from the graph projects is an error during the validationFailure phase. We could enhance this but I don't know if it is necessary. Since integrationType + validationFailure is rather unique.

@@ -40,6 +40,10 @@ export type IntegrationEvent = {
export type PublishEventInput = {
name: string;
description: string;
/**
* Allows the event to be identified via a code.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add examples to the docstrings?

ndowmon
ndowmon previously approved these changes Aug 17, 2023
ndowmon
ndowmon previously approved these changes Aug 17, 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.

3 participants