Skip to content
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

Custom path for data directory configuration is ignored #157659

Merged
merged 6 commits into from
May 15, 2023

Conversation

Ikuni17
Copy link
Contributor

@Ikuni17 Ikuni17 commented May 13, 2023

Fixes #142865

Summary

The user can set a path for local data storage through CLI or kibana.yml, but this setting was not implemented and the default data directory was being used.

There are a few instances of hard coded data/xxx paths in the codebase for babel, ci and testing which are not applicable to production.

Checklist

@Ikuni17 Ikuni17 added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels May 13, 2023
@Ikuni17 Ikuni17 requested a review from a team as a code owner May 13, 2023 01:11
@Ikuni17 Ikuni17 self-assigned this May 13, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented May 15, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/utils 14 15 +1
Unknown metric groups

API count

id before after diff
@kbn/utils 24 25 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 400 404 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 480 484 +4
total +6

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Ikuni17

@Ikuni17 Ikuni17 merged commit 9aa186e into elastic:main May 15, 2023
@Ikuni17 Ikuni17 deleted the fix/142865/path.data-config-unused branch May 15, 2023 21:42
jasonrhodes pushed a commit that referenced this pull request May 17, 2023
Fixes #142865

## Summary

The user can set a path for local data storage through CLI or
`kibana.yml`, but this setting was not implemented and the default
`data` directory was being used.

There are a few instances of hard coded `data/xxx` paths in the codebase
for babel, ci and testing which are not applicable to production.

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <[email protected]>
Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request May 18, 2023
Fixes elastic#142865

## Summary

The user can set a path for local data storage through CLI or
`kibana.yml`, but this setting was not implemented and the default
`data` directory was being used.

There are a few instances of hard coded `data/xxx` paths in the codebase
for babel, ci and testing which are not applicable to production.

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 9aa186e)

# Conflicts:
#	packages/kbn-utils/src/path/index.test.ts
#	packages/kbn-utils/src/path/index.ts
#	packages/kbn-utils/tsconfig.json
@Ikuni17
Copy link
Contributor Author

Ikuni17 commented May 18, 2023

💚 All backports created successfully

Status Branch Result
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request May 23, 2023
Ikuni17 added a commit that referenced this pull request May 23, 2023
@Ikuni17 Ikuni17 restored the fix/142865/path.data-config-unused branch May 24, 2023 00:25
delanni pushed a commit to delanni/kibana that referenced this pull request May 25, 2023
@caraxlr
Copy link

caraxlr commented Oct 20, 2023

Hi, I've noticed that the commits have been reverted, but I still value the 'path.data' feature. I was wondering if there are any plans to address this bug in the future? Thank you very much.

@mistic
Copy link
Member

mistic commented Oct 20, 2023

@caraxlr this PR caused some problems and we are trying and intend to recreate it at #158426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes reverted Team:Operations Team label for Operations Team v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

path.data config is not respected everywhere
7 participants