mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 17:04:01 -04:00
Closes https://github.com/elastic/kibana/issues/169545 Closes https://github.com/elastic/kibana/issues/170657 While investigating https://github.com/elastic/kibana/issues/169545, it was determined that Maps current error handling leaves a lot to be desired. This PR cleans up several problems at once since they are all intertwined. #### Problem 1 - layer error removed when another data request finished Redux store contains error state in a single location, `__errorMessage` key in `LayerDescriptor`. This resulted in other operations, like "fitting to bounds", "fetching supports feature state", or "fetching style meta" clearing layer error state. #### Solution to problem 1 Redux store updated to contain isolated error state 1) `error` key added `DataRequestDescriptor`, allowing each data request to store independent error state. This will capture data fetching errors when fetching features and join metrics. 2) `error` key added to `JoinDescriptor`, allowing each join to store independent error state. This will capture join errors like mismatched join keys 3) `__tileErrors` added to `LayerDescriptor`, allowing each tile error to be stored independently. This will capture tile fetch errors. #### Problem 2 - tile status tracker clears error cache when map center tile changes This resulted in removing tile errors that may still be relevant if tiles have not been refetched. #### Solution to problem 2 Updated tile status tracker to only clear a tile error when the tile is reloaded. #### Problem 3 - Tile Errors do not surface elasticsearch ErrorCause This results in useless error messages like in the screen shot below <img width="300" alt="Screenshot 2023-11-01 at 2 39 01 PM" src=" |
||
---|---|---|
.. | ||
index.ts | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/mapbox-gl
Default instantiation for mapbox-gl.