Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: b47c856ad5019719bbaae2364dc2eda6e142123a
https://github.com/Checkmk/checkmk/commit/b47c856ad5019719bbaae2364dc2eda6e…
Author: Mazen Alkatlabee <mazen.alkatlabee(a)checkmk.com>
Date: 2023-08-02 (Wed, 02 Aug 2023)
Changed paths:
A web/htdocs/js/modules/figures/cmk_figure_tooltip.ts
M web/htdocs/js/modules/figures/cmk_figures.ts
A web/htdocs/js/modules/figures/cmk_figures_utils.ts
M web/htdocs/js/modules/figures/cmk_stats.ts
M web/htdocs/js/modules/figures/cmk_table.ts
M web/htdocs/js/modules/figures/figure_types.ts
A web/htdocs/js/modules/figures/multi_data_fetcher.ts
Log Message:
-----------
refactor cmk_figures.ts in order to introduce better typing
This file is too big and complex which make it hard to maintain
and introduce strong typing. That's why it's necessary to refactor
and split its functionalities to imporve its structure/types.
In this change the following has been changed:
* only base abstract classes has been kept in cmk_figures.ts
* move types to figure_types.ts
* move FigureTooltip to cmk_figure_tooltip.ts
* move general functions/functionalities to cmk_figures_utils.ts
* move FigureRegistery to figure_registery.ts
* add TODOs and highlight typing problems that don't go along with
the old JS code
Change-Id: Ia6e59ac0729cf6f60ad53bdd99d2f6be22b2346e