Top-Q / difido-reports

This project aims to provide a generic implementation for HTML test reports.
http://top-q.github.io/difido-reports
Apache License 2.0
47 stars 31 forks source link

Integration with Kibana 6.x and above is broken #226

Open itaiag opened 5 years ago

itaiag commented 5 years ago

The index that is used by Kibana to store all the data about visualization and dashboards was changed in version 6.x and above. Information about the changes can be found in this blog. This affects us when we try to get the names of the dashboards directly from the Elastic.

HenGold commented 5 years ago

i was facing the same issue update you json mapping to i overcome this by changing difido-server/config/mapping.json this is my file content

{
        "settings": {
                "index": {
                        "number_of_shards": 2,
                        "number_of_replicas": 1
                }
        },
        "mappings": {
                "test": {
                        "properties": {
                                "name": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "uid": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "parent": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "status": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "url": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "description": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "execution": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "executionId": {
                                        "type": "long"
                                },
                                "executionDuration": {
                                        "type": "long"
                                },
                                "machine": {
                                        "type": "keyword",
                                        "index": "true"
                                },
                                "timestamp": {
                                        "type": "date",
                                        "format": "yyyy/MM/dd HH:mm:ss"
                                },
                                "executionTimestamp": {
                                        "type": "date",
                                        "format": "yyyy/MM/dd HH:mm:ss"
                                },
                                "duration": {
                                        "type": "long"
                                }
                        },
                        "dynamic_templates": [
                                {
                                        "long_prop": {
                                                "match": "long_*",
                                                "match_mapping_type": "string",
                                                "mapping": {
                                                        "type": "long",
                                                        "index": "true"
                                                }
                                        }
                                },
                                {
                                        "int_prop": {
                                                "match": "int_*",
                                                "match_mapping_type": "string",
                                                "mapping": {
                                                        "type": "integer",
                                                        "index": "true"
                                                }
                                        }
                                },
                                {
                                        "double_prop": {
                                                "match": "double_*",
                                                "match_mapping_type": "string",
                                                "mapping": {
                                                        "type": "double",
                                                        "index": "true"
                                                }
                                        }
                                },
                                {
                                        "date_prop": {
                                                "match": "date_*",
                                                "match_mapping_type": "string",
                                                "mapping": {
                                                        "type": "date",
                                                        "index": "true",
                                                        "format": "yyyy/MM/dd HH:mm:ss"
                                                }
                                        }
                                },
                                {
                                        "notanalyzed": {
                                                "match": "*",
                                                "unmatch": "^(long_|int_|double_|date_)$",
                                                "match_mapping_type": "string",
                                                "mapping": {
                                                        "type": "keyword",
                                                        "index": "true"
                                                }
                                        }
                                }
                        ]
                }
        }
}