Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

No description provided.

@stephen-carter-at-sf stephen-carter-at-sf changed the title @W-14573108@ Fix cli-messaging tests and make subprojects use same gradle version as root CHANGE(OTHER): @W-14573108@ Fix cli-messaging tests and make subprojects use same gradle version as root Nov 29, 2023
@stephen-carter-at-sf stephen-carter-at-sf changed the title CHANGE(OTHER): @W-14573108@ Fix cli-messaging tests and make subprojects use same gradle version as root CHANGE (OTHER): @W-14573108@: Fix cli-messaging tests and make subprojects use same gradle version as root Nov 29, 2023

private EventKey eventKey;
public static Stream<EventKey> getAllInfoEventKeyValues() {
return getAllEventKeyValues().filter(eventKey -> eventKey.getMessageType() == MessageType.INFO);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do this method and getAllWarningEventKeyValues() filter by getMessageType() == instead of getMessageKey().startsWith()? As is, since the tests themselves check getMessageType() they're basically just checking A == A.

Copy link
Contributor Author

@stephen-carter-at-sf stephen-carter-at-sf Nov 29, 2023

Choose a reason for hiding this comment

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

Notice that INFO_TELEMETRY starts with "info." and yet it isn't of MessageType.INFO ... it is MessageType.TELEMETRY. That's why I chose to use the MessageType wheenever possible instead of the naming convention. Thoughts?

Oh wait I see what you mean now... the assertion for MessageType.INFO is kind of useless now. What do you want to do with the INFO_TELEMETRY then? Should we rename it so that it isn't under info.* but instead under something like telementry.*?

Copy link
Contributor Author

@stephen-carter-at-sf stephen-carter-at-sf Nov 29, 2023

Choose a reason for hiding this comment

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

Fixed. Just updated the test for now.

@jfeingold35 jfeingold35 merged commit 663b323 into dev Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants