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

send situations to the datalake when accepted, add alarm(s), remove a… #100

Merged
merged 7 commits into from
Dec 14, 2022

Conversation

BenjaminJ
Copy link
Contributor

@BenjaminJ BenjaminJ commented Dec 5, 2022

send situations to the datalake when situation is created,accepted or modified
also fix feedback for rejected situation
add unit test
use async client

Copy link

@j-white j-white left a comment

Choose a reason for hiding this comment

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

These changes look fine. Comments are mostly related to SituationClient impl.

initialize mapper in SituationClient
sendSituation can return void
initialize channel only if the user opted-in
@BenjaminJ BenjaminJ marked this pull request as draft December 9, 2022 17:55
update guava version
@BenjaminJ BenjaminJ marked this pull request as ready for review December 13, 2022 17:16
Copy link
Contributor

@aramosvizcarra aramosvizcarra left a comment

Choose a reason for hiding this comment

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

LGTM

@BenjaminJ BenjaminJ merged commit 55e9006 into develop Dec 14, 2022
@BenjaminJ BenjaminJ deleted the feature/fix_store_situation branch December 14, 2022 16:33
Copy link

@geraldhumphries geraldhumphries left a comment

Choose a reason for hiding this comment

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

I wrote this review before it was merged but forgot to submit it. Figured I'd submit it now to get the comments out there.

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1.1-jre</version>

Choose a reason for hiding this comment

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

You should pull this version number up into a property or into dependencyManagement.

client = new SituationClient(canWeStore(kvStore), grpcConnectionConfig);
}

//Only for testing

Choose a reason for hiding this comment

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

I see that this constructor only exists so we can mock SituationClient in the unit tests. Does it make sense for SituationClient to be converted into a bean, and injected directly? That would probably be cleaner, but it would need some refactors and I'm not sure about the implications regarding the number of SituationClients we need to use.

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.

4 participants