kibana/x-pack/plugins/maps
Nathan Reese 76f6dc3d13
[maps] ignore indices without geometry field in vector tile requests (#171472)
Closes https://github.com/elastic/kibana/issues/170656

PR adds exists filter to ensure geo field exists 

### Test instructions
1. In console, run:
    ```
    PUT geo1
    {}

    PUT geo1/_mapping
    {
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    }

    PUT geo1/_doc/1
    {
      "location": "25,25"
    }

    PUT geo2
    {}

    PUT geo2/_doc/1
    {}
    ```
2. Create `geo*` data view
3. create new map
4. add documents layer from `geo*` data view.
5. Add heatmap layer from `geo*` data view.
6. Verify geo1 data is displayed and warning is not displayed fro geo2
shard failures

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-22 12:37:52 -07:00
..
common [fix] Using max_result_window to set up MVT size request leads to not showing all results (#171344) 2023-11-16 12:11:13 -07:00
public [maps] ignore indices without geometry field in vector tile requests (#171472) 2023-11-22 12:37:52 -07:00
server async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
config.ts [Breaking] Remove deprecated enabled settings from plugins. (#113495) 2021-10-17 16:54:30 +01:00
jest.config.js [jest] update config files to get coverage per plugin (#111299) 2021-09-09 08:14:56 +02:00
kibana.jsonc [Serverless] Partially fix lens/maps/visualize breadcrumbs missing title (#163476) 2023-08-11 10:33:50 +02:00
README.md [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json [maps] display incomplete results warning in layer legend (#171144) 2023-11-16 12:09:43 -07:00

Maps

Visualize geo data from Elasticsearch or 3rd party geo-services.

Testing

Run all tests from the x-pack root directory

  • Unit tests: yarn test:jest x-pack/plugins/maps --watch
  • Functional tests:
    • Run node scripts/functional_tests_server
    • Run node ../scripts/functional_test_runner.js --config ./test/functional/apps/maps/group1/config.ts
    • Run node ../scripts/functional_test_runner.js --config ./test/functional/apps/maps/group2/config.ts
    • Run node ../scripts/functional_test_runner.js --config ./test/functional/apps/maps/group3/config.ts
    • Run node ../scripts/functional_test_runner.js --config ./test/functional/apps/maps/group4/config.ts