Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Feb 5, 2025

The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.

The node environment has many paths. The accessors for these currently
use a "file" suffix, but they are always directories. This commit
renames the accessors to make it clear these paths are directories.
@rjernst rjernst added :Core/Infra/Core Core issues without another label >refactoring auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Feb 5, 2025
@rjernst rjernst requested a review from a team as a code owner February 5, 2025 18:23
@rjernst
Copy link
Member Author

rjernst commented Feb 5, 2025

Note that although the change is large, it was completely mechanical, renaming with IntelliJ.

@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Feb 5, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@prdoyle prdoyle left a comment

Choose a reason for hiding this comment

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

Makes sense

assertEquals(actual.tmpFile(), expected.tmpFile(), "tmpFile");
assertEquals(actual.dataDirs(), expected.dataDirs(), "dataFiles");
assertEquals(actual.repoDirs(), expected.repoDirs(), "repoFiles");
assertEquals(actual.configDir(), expected.configDir(), "configFile");
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose these strings ought to have been changed too.

@prdoyle
Copy link
Contributor

prdoyle commented Feb 5, 2025

This is a great idea. This always added a small amount of mental friction.

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Feb 5, 2025
@rjernst rjernst merged commit 0cf42f2 into elastic:main Feb 5, 2025
16 checks passed
@rjernst rjernst deleted the node/env_dir_names branch February 5, 2025 22:03
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Feb 5, 2025
The node environment has many paths. The accessors for these currently
use a "file" suffix, but they are always directories. This commit
renames the accessors to make it clear these paths are directories.
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts
9.0

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 121803

rjernst added a commit to rjernst/elasticsearch that referenced this pull request Feb 5, 2025
The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Feb 5, 2025
The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
The node environment has many paths. The accessors for these currently
use a "file" suffix, but they are always directories. This commit
renames the accessors to make it clear these paths are directories.
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
* Rename environment dir accessors (#121803)

The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
* Rename environment dir accessors (#121803)

The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
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 backport pending :Core/Infra/Core Core issues without another label >refactoring serverless-linked Added by automation, don't add manually 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