Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Adds methods to DiscoveryNodeRole.UnknownRole to compare these objects'
values for equality, and adds a specialized toString() implementation for
clearer test failures.

Relates #43175

Adds methods to `DiscoveryNodeRole.UnknownRole` to compare these objects'
values for equality, and adds a specialized `toString()` implementation for
clearer test failures.

Relates elastic#43175
@DaveCTurner DaveCTurner added :Core/Infra/Plugins Plugin API and infrastructure v8.0.0 v7.3.0 labels Jun 14, 2019
@DaveCTurner DaveCTurner requested a review from jasontedor June 14, 2019 09:34
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

I left a question.

"roleName='" + roleName() + '\'' +
", roleAbbreviation='" + roleNameAbbreviation() + '\'' +
'}';
}
Copy link
Member

Choose a reason for hiding this comment

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

I think these can all go in the base class, as final, with adding getClass() to the toString implementation?

@DaveCTurner
Copy link
Contributor Author

Closing in favour of #43257

@DaveCTurner DaveCTurner deleted the 2019-06-14-DiscoveryNodeRole-UnknownRole-as-value-objects branch June 15, 2019 08:19
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.

4 participants