-
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
Check for legacy imports in vis types and fix problems #56763
Merged
+901
−765
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0dbdbe0
check for legacy imports in vis types and fix problems
flash1293 b8b2974
Merge remote-tracking branch 'upstream/master' into vis_type_linting
flash1293 b20a04d
remove commented out code
flash1293 61ab22b
improve getter_setter typing
flash1293 28c5304
Merge remote-tracking branch 'upstream/master' into vis_type_linting
flash1293 33d6440
fix unit tests
flash1293 82988a0
fix typo in tsvb
flash1293 c33dad4
fix bad merge
flash1293 b735afb
Merge remote-tracking branch 'upstream/master' into vis_type_linting
flash1293 9a35309
fix mock
flash1293 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
// these are necessary to bootstrap the local angular. | ||
// They can stay even after NP cutover | ||
import angular from 'angular'; | ||
import 'ui/angular-bootstrap'; | ||
import { IPrivate } from 'ui/private'; | ||
import { EuiIcon } from '@elastic/eui'; | ||
// @ts-ignore | ||
|
@@ -76,6 +75,7 @@ import { createFieldChooserDirective } from './np_ready/components/field_chooser | |
import { createDiscoverFieldDirective } from './np_ready/components/field_chooser/discover_field'; | ||
import { CollapsibleSidebarProvider } from './np_ready/angular/directives/collapsible_sidebar/collapsible_sidebar'; | ||
import { DiscoverStartPlugins } from './plugin'; | ||
import { initAngularBootstrap } from '../../../../../plugins/kibana_legacy/public'; | ||
import { createCssTruncateDirective } from './np_ready/angular/directives/css_truncate'; | ||
// @ts-ignore | ||
import { FixedScrollProvider } from './np_ready/angular/directives/fixed_scroll'; | ||
|
@@ -88,6 +88,7 @@ import { createRenderCompleteDirective } from './np_ready/angular/directives/ren | |
* needs to render, so in the end the current 'kibana' angular module is no longer necessary | ||
*/ | ||
export function getInnerAngularModule(name: string, core: CoreStart, deps: DiscoverStartPlugins) { | ||
initAngularBootstrap(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the new way how to load angular-bootstrap modules. They still have to be listed as dependencies in the angular app modules. |
||
const module = initializeInnerAngularModule(name, core, deps.navigation, deps.data); | ||
configureAppAngularModule(module, core as LegacyCoreStart, true); | ||
return module; | ||
|
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
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
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
46 changes: 0 additions & 46 deletions
46
src/legacy/core_plugins/vis_type_table/public/table_vis.mock.ts
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
angular-bootstrap
got moved intokibana_legacy
- while doing this, I adjusted the naming conventions to our code where necessary.