Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elastic/kibana into show-all-prop…
Browse files Browse the repository at this point in the history
…erties
  • Loading branch information
dgieselaar committed Sep 30, 2021
2 parents 5845799 + 3bd687e commit bb92b03
Show file tree
Hide file tree
Showing 85 changed files with 784 additions and 1,912 deletions.
1 change: 0 additions & 1 deletion src/plugins/dashboard/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"data",
"embeddable",
"inspector",
"kibanaLegacy",
"navigation",
"savedObjects",
"share",
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/dashboard/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { createKbnUrlTracker } from './services/kibana_utils';
import { UsageCollectionSetup } from './services/usage_collection';
import { UiActionsSetup, UiActionsStart } from './services/ui_actions';
import { PresentationUtilPluginStart } from './services/presentation_util';
import { KibanaLegacySetup, KibanaLegacyStart } from './services/kibana_legacy';
import { FeatureCatalogueCategory, HomePublicPluginSetup } from './services/home';
import { NavigationPublicPluginStart as NavigationStart } from './services/navigation';
import { DataPublicPluginSetup, DataPublicPluginStart, esFilters } from './services/data';
Expand Down Expand Up @@ -98,7 +97,6 @@ export interface DashboardSetupDependencies {
data: DataPublicPluginSetup;
embeddable: EmbeddableSetup;
home?: HomePublicPluginSetup;
kibanaLegacy: KibanaLegacySetup;
urlForwarding: UrlForwardingSetup;
share?: SharePluginSetup;
uiActions: UiActionsSetup;
Expand All @@ -107,7 +105,6 @@ export interface DashboardSetupDependencies {

export interface DashboardStartDependencies {
data: DataPublicPluginStart;
kibanaLegacy: KibanaLegacyStart;
urlForwarding: UrlForwardingStart;
embeddable: EmbeddableStart;
inspector: InspectorStartContract;
Expand Down
9 changes: 0 additions & 9 deletions src/plugins/dashboard/public/services/kibana_legacy.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/dashboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"references": [
{ "path": "../../core/tsconfig.json" },
{ "path": "../inspector/tsconfig.json" },
{ "path": "../kibana_legacy/tsconfig.json" },
{ "path": "../kibana_react/tsconfig.json" },
{ "path": "../kibana_utils/tsconfig.json" },
{ "path": "../share/tsconfig.json" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,18 +504,21 @@ export const useField = <T, FormType = FormData, I = T>(
const { resetValue = true, defaultValue: updatedDefaultValue } = resetOptions;

setPristine(true);
setIsModified(false);
setValidating(false);
setIsChangingValue(false);
setIsValidated(false);
setStateErrors([]);

if (resetValue) {
hasBeenReset.current = true;
const newValue = deserializeValue(updatedDefaultValue ?? defaultValue);
// updateStateIfMounted('value', newValue);
setValue(newValue);
return newValue;

if (isMounted.current) {
setIsModified(false);
setValidating(false);
setIsChangingValue(false);
setIsValidated(false);
setStateErrors([]);

if (resetValue) {
hasBeenReset.current = true;
const newValue = deserializeValue(updatedDefaultValue ?? defaultValue);
// updateStateIfMounted('value', newValue);
setValue(newValue);
return newValue;
}
}
},
[deserializeValue, defaultValue, setValue, setStateErrors]
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/kibana_legacy/public/angular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

// @ts-ignore
export { watchMultiDecorator } from './watch_multi';
export * from './angular_config';
// @ts-ignore
export { createTopNavDirective, createTopNavHelper, loadKbnTopNavDirectives } from './kbn_top_nav';
export { subscribeWithScope } from './subscribe_with_scope';
186 changes: 0 additions & 186 deletions src/plugins/kibana_legacy/public/angular/subscribe_with_scope.test.ts

This file was deleted.

74 changes: 0 additions & 74 deletions src/plugins/kibana_legacy/public/angular/subscribe_with_scope.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/plugins/kibana_legacy/public/angular/watch_multi.d.ts

This file was deleted.

Loading

0 comments on commit bb92b03

Please sign in to comment.