Skip to content

Commit

Permalink
[Console] Delete unused sense models and unused files (#195344)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Oct 9, 2024
1 parent f2b9348 commit d273c07
Show file tree
Hide file tree
Showing 61 changed files with 9 additions and 10,277 deletions.
31 changes: 0 additions & 31 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,37 +74,6 @@ under a "BSD" license.

Distributed under the BSD license:

Copyright (c) 2010, Ajax.org B.V.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Ajax.org B.V. nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---
This product includes code that is based on Ace editor, which was available
under a "BSD" license.

Distributed under the BSD license:

Copyright (c) 2010, Ajax.org B.V.
All rights reserved.

Expand Down
8 changes: 2 additions & 6 deletions src/plugins/console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ POST /_some_endpoint
```

## Architecture
Console uses Ace editor that is wrapped with [`CoreEditor`](https://github.com/elastic/kibana/blob/main/src/plugins/console/public/types/core_editor.ts), so that if needed it can easily be replaced with another editor, for example Monaco.
Console uses Monaco editor that is wrapped with [`kbn-monaco`](https://github.com/elastic/kibana/blob/main/packages/kbn-monaco/index.ts), so that if needed it can easily be replaced with another editor.
The autocomplete logic is located in [`autocomplete`](https://github.com/elastic/kibana/blob/main/src/plugins/console/public/lib/autocomplete) folder. Autocomplete rules are computed by classes in `components` sub-folder.

## Autocomplete definitions
Expand Down Expand Up @@ -317,8 +317,4 @@ Another change is replacing jQuery with the core http client to communicate with
### Outstanding issues
#### Autocomplete suggestions for Kibana API endpoints
Console currently supports autocomplete suggestions for Elasticsearch API endpoints. The autocomplete suggestions for Kibana API endpoints are not supported yet.
Related issue: [#130661](https://github.com/elastic/kibana/issues/130661)

#### Migration to Monaco Editor
Console plugin is currently using Ace Editor and it is planned to migrate to Monaco Editor in the future.
Related issue: [#57435](https://github.com/elastic/kibana/issues/57435)
Related issue: [#130661](https://github.com/elastic/kibana/issues/130661)
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
*/

import { MonacoEditorActionsProvider } from '../../containers/editor/monaco_editor_actions_provider';
import { SenseEditor } from '../../models/sense_editor';

export class EditorRegistry {
private inputEditor: SenseEditor | MonacoEditorActionsProvider | undefined;
private inputEditor: MonacoEditorActionsProvider | undefined;

setInputEditor(inputEditor: SenseEditor | MonacoEditorActionsProvider) {
setInputEditor(inputEditor: MonacoEditorActionsProvider) {
this.inputEditor = inputEditor;
}

Expand Down
3 changes: 1 addition & 2 deletions src/plugins/console/public/application/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

export { useSetInputEditor } from './use_set_input_editor';
export { useRestoreRequestFromHistory } from './use_restore_request_from_history';
export { useSendCurrentRequest, sendRequest } from './use_send_current_request';
export { sendRequest } from './use_send_current_request';
export { useSaveCurrentTextObject } from './use_save_current_text_object';
export { useDataInit } from './use_data_init';

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

export { useSendCurrentRequest } from './use_send_current_request';
export { sendRequest } from './send_request';

This file was deleted.

This file was deleted.

Loading

0 comments on commit d273c07

Please sign in to comment.