Skip to content

Add includeDiskInfo to toString() #131358

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

Conversation

joshua-adams-1
Copy link
Contributor

@joshua-adams-1 joshua-adams-1 commented Jul 16, 2025

Adds the includeDiskInfo parameter to the cluster/allocation/explain
toString() method, and adds tests.

Relates #127028

Adds the `includeDiskInfo` parameter to the `cluster/allocation/explain`
 `toString()` method, and adds tests.
@joshua-adams-1 joshua-adams-1 added >non-issue :Distributed Coordination/Network Http and internode communication implementations labels Jul 16, 2025
@joshua-adams-1 joshua-adams-1 self-assigned this Jul 16, 2025
@joshua-adams-1 joshua-adams-1 marked this pull request as ready for review July 16, 2025 15:48
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Jul 16, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

Copy link
Contributor

@DiannaHohensee DiannaHohensee left a comment

Choose a reason for hiding this comment

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

LGTM 👍

You can add a Relates #127028 to the commit message for this. If you had used Closes #127028 for the main commit, it would have auto-closed the issue you're solving -- our docs show using that issue reference format, but don't explain what it does. The issue reference is nice, the rest is fanciness/laziness :)

+ "include_yes_decisions?=true,include_disk_info?=false";
String actual = clusterAllocationExplainRequest.toString();

assertTrue(actual.startsWith(expected));
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be an assertEquals? It looks like you've spelled out the entire string, not just the beginning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in c4a6439

@joshua-adams-1 joshua-adams-1 merged commit df985e6 into elastic:main Jul 17, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants