[TIP] Cleanup structure and imports for the entire indicators module#142788
Merged
PhilippeOberti merged 2 commits intoelastic:mainfrom Oct 13, 2022
Merged
[TIP] Cleanup structure and imports for the entire indicators module#142788PhilippeOberti merged 2 commits intoelastic:mainfrom
PhilippeOberti merged 2 commits intoelastic:mainfrom
Conversation
b3a5901 to
f34c67b
Compare
- rename indicator_field_label to field_label - rename indicator_field_value to field_value - rename index.tsx to index.ts - move indicators_page.tsx under pages folder and rename to indicators.tsx - rename use_indicators_filters_context to use_filters_context - rename use_indicators_total_count to use_total_count - add index.ts at root of indicators module and update imports in other modules accordingly
f34c67b to
1337689
Compare
lgestc
approved these changes
Oct 13, 2022
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
This PR continues the Threat Intelligence plugin code cleanup (see https://github.com/elastic/security-team/issues/4983) by focusing on the
indicatorsmodule folder.There are a lot of file changed but the changes are actually pretty small:
indicator_field_labeltofield_labelindicator_field_valuetofield_valueindex.tsxtoindex.tsindicators_page.tsxunder pages folder and rename toindicators.tsxuse_indicators_filters_contexttouse_filters_contextuse_indicators_total_counttouse_total_countindex.tsat root of indicators module and update imports in other modules accordinglyNo UI changes.
Here's the folder structure for the entire
indicatorsmodule folder: