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

External log integration in report #987

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Conversation

vchaitanya
Copy link
Collaborator

PR attempts to resolve #482

Copy link
Collaborator

@therealryan therealryan left a comment

Choose a reason for hiding this comment

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

Changes look good, but I think there's a slight conflict in the naming of the types and methods:

  • ReportCustomizer can change any aspect of a flow's report data
  • The motivation method that lets you add a customizer implies that only the flow motivations can be changed

I think it might be preferable to change ReportCustomizer to be MotivationCustomizer - have effectively it be a BiFunction<String, Assertion, String> that gets supplied with the motivation and the test results, and produces the new motivation.

I'm leaning in that direction rather than renaming the motivation method because we should try to limit the places where the report data can be changed. If you see unexpected results in a report you have to try and find out where it came from, if we can avoid the external log-linker thing being able to change (e.g.:) report message data then we've made that debugging a bit easier.

Copy link

sonarcloud bot commented Oct 30, 2024

Copy link
Collaborator

@therealryan therealryan left a comment

Choose a reason for hiding this comment

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

nice one!

@vchaitanya vchaitanya marked this pull request as ready for review October 30, 2024 13:26
@vchaitanya vchaitanya merged commit f99e9d3 into main Oct 30, 2024
7 checks passed
@vchaitanya vchaitanya deleted the external_log_integration branch October 30, 2024 13:27
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.

External log integration
2 participants