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

Pod investigator enricher: move the reason-message part from enrinchments to description #1182

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

RobertSzefler
Copy link
Contributor

No description provided.

@RobertSzefler RobertSzefler force-pushed the fix/main-761/add-info-to-description branch 2 times, most recently from 8855ceb to 795613f Compare November 22, 2023 15:56
@RobertSzefler RobertSzefler marked this pull request as ready for review November 22, 2023 18:44
Copy link
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

Looks good
Left one comment

if message is None:
message = "unknown"
event.add_enrichment([MarkdownBlock(f"\n\n{reason}: {message}")])
# The code below is essentially a specialized version of ExcutionBaseEvent.override_finding_attributes
Copy link
Contributor

Choose a reason for hiding this comment

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

I would put this on the parent class, and a new method extend_description or add_to_description
def add_to_description(addition: str)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@RobertSzefler RobertSzefler force-pushed the fix/main-761/add-info-to-description branch from 795613f to 7b71f7a Compare November 23, 2023 10:08
Copy link
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

LGTM

@arikalon1 arikalon1 merged commit f6a2196 into master Nov 23, 2023
12 checks passed
@arikalon1 arikalon1 deleted the fix/main-761/add-info-to-description branch November 23, 2023 12:04
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.

2 participants