Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Mar 7, 2025

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test and two production locations where they are
used incorrectly). This commit just removes them.
@DaveCTurner DaveCTurner added >non-issue :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Mar 7, 2025
@DaveCTurner DaveCTurner requested a review from nielsbauman March 7, 2025 16:41
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Mar 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

private static void appendCommaSeparatedSet(Set<String> items, StringBuilder sb) {
sb.append("[");
Strings.collectionToDelimitedString(items, ", ", "'", "'", sb);
Strings.collectionToDelimitedString(items, ", ", sb);
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I missed this usage when I looked at your other PR - TBH I missed the whole method without the limit. Here there actually is a non-empty prefix and suffix... I'm inclined to think that it probably wouldn't have a huge effect if we don't wrap the items with single quotes, but technically we're changing something here. How do you feel about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oof that's a subtle one, the dataflow-to-here results pane in IntelliJ uses a proportional font in which "" and "'" are indistinguishable to my eyes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh this is a great workaround!

Copy link
Contributor

@nielsbauman nielsbauman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks David!

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit 80deeb8 into elastic:main Mar 7, 2025
17 checks passed
@DaveCTurner DaveCTurner deleted the 2025/03/07/collectionToDelimitedString-useless-prefix-suffix branch March 7, 2025 18:09
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Mar 7, 2025
…ic#124353)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Mar 7, 2025
…ic#124353)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Mar 7, 2025
…ic#124353)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.x
9.0

elasticsearchmachine pushed a commit that referenced this pull request Mar 7, 2025
…) (#124366)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
elasticsearchmachine pushed a commit that referenced this pull request Mar 7, 2025
…) (#124365)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
elasticsearchmachine pushed a commit that referenced this pull request Mar 7, 2025
…) (#124367)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Mar 11, 2025
…ic#124353)

These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants