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

#16: 🐛 fix forked session issues with manual action notifications… #17

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

d-ryan-ashcraft
Copy link
Contributor

…; write notifications and then read them rather than passing around in the Maven Session

@d-ryan-ashcraft d-ryan-ashcraft requested review from tylerashcraft and a team June 21, 2023 16:10
File outputFile = new File(projectParentFile, fileName + "-" + i++ + ".txt");
try {
FileUtils.forceMkdir(projectParentFile);
FileUtils.write(outputFile, subMapEntry.getValue().getNotificationAsString(), Charset.defaultCharset());
Copy link
Contributor

Choose a reason for hiding this comment

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

A: Minor, but java.nio.Files can do both of these things without a 3rd party lib.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair, though this library is already there, so feels like 6 and one half

}
}

if (manualActionCount > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

A: We are baking in the notion that "notifications" == "manual actions". Maybe/probably fine for incremental addition, but I could see this being more universal, e.g. profile deprecation notifications.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah - agree. Debated this but didn't have a good example of what wouldn't be a manual action that we are outputting. Easy to refactor to a more general concept if we want to, however.

Copy link

@tylerashcraft tylerashcraft 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.

…ite notifications and then read them rather than passing around in the Maven Session; with PR feedback
@d-ryan-ashcraft d-ryan-ashcraft merged commit 32c1ec7 into dev Jun 21, 2023
@d-ryan-ashcraft d-ryan-ashcraft deleted the 16-fix-forked-manual-actions branch June 21, 2023 20:33
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