-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
adapt ObjectToConfigAdapter.getFlattenedPaths to consider arrays as final values #56105
Merged
pgayvallet
merged 3 commits into
elastic:master
from
pgayvallet:kbn-55576-config-flattened-paths
Jan 28, 2020
Merged
adapt ObjectToConfigAdapter.getFlattenedPaths to consider arrays as final values #56105
pgayvallet
merged 3 commits into
elastic:master
from
pgayvallet:kbn-55576-config-flattened-paths
Jan 28, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pgayvallet
added
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Feature:New Platform
labels
Jan 28, 2020
Pinging @elastic/kibana-platform (Team:Platform) |
pgayvallet
added
release_note:skip
Skip the PR/issue when compiling release notes
v7.7.0
labels
Jan 28, 2020
mshustov
approved these changes
Jan 28, 2020
describe('ObjectToConfigAdapter', () => { | ||
describe('#getFlattenedPaths()', () => { | ||
it('considers arrays as final values', () => { | ||
const data = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a nested layer to make sure it works with flattened keys?
const data = {
system: {
name: 'Elastic',
},
components: [{ name: 'Kibana' }, { name: 'Elasticsearch' }],
};
const config = new ObjectToConfigAdapter(data);
expect(config.getFlattenedPaths()).toEqual(['system.name', 'components']);
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
pgayvallet
added a commit
to pgayvallet/kibana
that referenced
this pull request
Jan 28, 2020
…inal values (elastic#56105) * adapt getFlattenedPaths to consider arrays as final values * add getUnusedConfigKeys test * improve tests
3 tasks
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Jan 28, 2020
* master: (21 commits) [SIEM][Detection Engine] critical blocker updates to latest ECS version [Monitoring] Fix inaccuracies in logstash pipeline listing metrics (elastic#55868) Resetting errors and removing duplicates (elastic#56054) Add flag to opt out from sub url tracking (elastic#55672) [SIEM][Detection Engine] critical bug, fixes duplicate tags [ML] Anomaly Detection: Fix persist/restore of refreshInterval in globalState. (elastic#56113) [ML] Single Metric Viewer: Fix annnotations refresh. (elastic#56107) adapt ObjectToConfigAdapter.getFlattenedPaths to consider arrays as final values (elastic#56105) Add Appender.receiveAllLevels option to fix LegacyAppender (elastic#55752) [ML] Process delimited files like semi-structured text (elastic#56038) Charts plugin (combining ui/color_maps and EuiUtils) (elastic#55469) fix tutorial documentation (elastic#55996) [ML] Fix persist/restore of time/refreshInterval in data visualizer. (elastic#56122) [Index Management] Fix errors with validation (elastic#56072) [Index Management] Add try/catch when parsing index filter from URI (elastic#56051) [NP] add HTTP resources testing strategies (elastic#54908) [ML] Single Metric Viewer: Fix brush update on short recent timespans. (elastic#56125) [Uptime] Add timeout for slow process to skipped functional tests (elastic#56065) refactor (elastic#56121) Move tests in dashboard into appropriate folders (elastic#55304) ...
pgayvallet
added a commit
to pgayvallet/kibana
that referenced
this pull request
Mar 2, 2020
…inal values (elastic#56105) * adapt getFlattenedPaths to consider arrays as final values * add getUnusedConfigKeys test * improve tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:New Platform
release_note:skip
Skip the PR/issue when compiling release notes
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
v7.6.1
v7.7.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fix #55576
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers