Skip to content

Commit a13a0cd

Browse files
author
guyplusplus
committed
Preparing for 8.0.0
1 parent 6a61c2a commit a13a0cd

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $ sudo vi /etc/kibana/kibana.yml
5353
server.host: "192.168.1.77" [update with correct value]
5454
```
5555

56-
4. Start ElasticSearch then Kibana. Then open browser http://192.168.1.77:5601
56+
4. Start ElasticSearch then Kibana. Then open browser http://192.168.1.77:5601 [update with correct value]
5757

5858
```
5959
$ sudo systemctl start elasticsearch
@@ -73,7 +73,7 @@ $ sudo apt update
7373
$ sudo apt install yarn
7474
```
7575

76-
6. Download Kibana source code and select the target version (v7.6.2, v7.0.0, etc.). `kibana` is the top directory
76+
6. Download Kibana source code and select the target version (v7.6.2, v7.7.1, etc.). `kibana` is the top directory
7777

7878
```
7979
$ git clone https://github.com/elastic/kibana.git
@@ -99,7 +99,7 @@ $ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
9999
$ sudo sysctl -p
100100
```
101101

102-
10. If you have problem to start Kibana 7.7.0 (from Git. For some reason it thinks it is already in version 8.0.0) with ElasticSearch 7.7.0, add this line in `config/kibana.yml` config file. When upgrading from 7.6 to 7.7 I had to delete all indexes `curl -XDELETE localhost:9200/*`
102+
10. If you have problem to start Kibana 7.7.1 (from Git. For some reason it thinks it is already in version 8.0.0) with ElasticSearch 7.7.1 with the error message `[error][savedobjects-service] This version of Kibana (v8.0.0) is incompatible with the following Elasticsearch nodes in your cluster: v7.7.1 @ 127.0.0.1:9200 (127.0.0.1)`, add this line in `config/kibana.yml` config file. When upgrading from 7.6.2 to 7.7.1 I had to delete all indexes `curl -XDELETE localhost:9200/*`
103103

104104
```
105105
elasticsearch.ignoreVersionMismatch: true
@@ -136,12 +136,16 @@ I use [Microsoft Code](https://code.visualstudio.com/) to edit code and [Google
136136

137137
## Packaging the plugin as a zip file
138138

139-
Simply add the plugin directory inside a `kibana` folder and zip the file. Do not include the `my-plugin/target` directory in the zip file. The zip structure is
139+
Simply add the plugin directory inside a `kibana` folder and zip the file. Filename format carries the Kibana version (i.e. 7.7.1) followed by the plugin version (i.e. 1.0.0). Do not include the `vis_type_custom_form_filter_accounts/target` directory in the zip file.
140+
141+
To change the Kibana version, just change the file `kbn_tp_custom_form_filter_accounts/package.json`, value `kibana.version`.
142+
143+
The zip structure is
140144

141145
```
142-
my-plugin_7.7.0.zip
146+
vis_type_custom_form_filter_accounts_7.7.1_1.0.0.zip
143147
kibana/
144-
my-plugin/
148+
vis_type_custom_form_filter_accounts/
145149
package.json
146150
config.js
147151
public/
@@ -155,14 +159,18 @@ my-plugin_7.7.0.zip
155159
The plugin can then be installed like this for an apt installed Kibana.
156160

157161
```
158-
$ sudo ./bin/kibana-plugin --allow-root install file:///home/john/downloads/vis_type_custom_form_filter_accounts_7.7.0_1.0.0.zip
159-
$ sudo ./bin/kibana-plugin --allow-root install https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization/releases/download/1.0.0/vis_type_custom_form_filter_accounts_7.7.0_1.0.0.zip
162+
$ sudo ./bin/kibana-plugin --allow-root install file:///home/john/downloads/vis_type_custom_form_filter_accounts_7.7.1_1.0.0.zip
163+
$ sudo ./bin/kibana-plugin --allow-root install https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization/releases/download/1.0.0/vis_type_custom_form_filter_accounts_7.7.1_1.0.0.zip
160164
```
161165

162166
Deleting then installing the plugin often fails for me. I fix it by running this command.
163167

164168
```
165-
$ rm -rf /usr/share/kibana/optimize/bundles
169+
$ sudo ./bin/kibana-plugin --allow-root remove vis_type_custom_form_filter_accounts
170+
Removing vis_type_custom_form_filter_accounts...
171+
Plugin removal complete
172+
$ sudo rm -rf /usr/share/kibana/optimize/bundles
173+
$
166174
```
167175

168176
## Project TODO List
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"id": "visTypeCustomFormFilterAccounts",
3-
"version": "kibana",
4-
"ui": true,
5-
"server": true,
6-
"requiredPlugins": ["expressions", "visualizations", "data"]
2+
"id": "visTypeCustomFormFilterAccounts",
3+
"version": "7.7.1",
4+
"ui": true,
5+
"server": true,
6+
"requiredPlugins": ["expressions", "visualizations", "data"]
77
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "vis_type_custom_form_filter_accounts",
3+
"version": "1.0.0",
4+
"kibana": {
5+
"version": "8.0.0",
6+
"templateVersion": "1.0.0"
7+
},
8+
"license": "Apache-2.0"
9+
}

0 commit comments

Comments
 (0)