Make the UI components module in Arranger standalone by removing 3 specific elements from the mapping-utils library that only the components module uses. This will greatly simplify mapping-util.
They are:
esToAggTypeMap - This is a static object, only used in components module
mappingToDisplayTreeData - Single method with no dependencies, only used in components module
columnsToGraphql - A standalone method that is used in bothcomponents and schema modules
NOTE: The columnsToGraphql method shared with the schema module will take a small amount of work to determine what amount of this logic should exist separately in the front end library.
Make the UI
components
module in Arranger standalone by removing 3 specific elements from themapping-utils
library that only thecomponents
module uses. This will greatly simplifymapping-util
.They are:
esToAggTypeMap
- This is a static object, only used incomponents
modulemappingToDisplayTreeData
- Single method with no dependencies, only used incomponents
modulecolumnsToGraphql
- A standalone method that is used in bothcomponents
andschema
modulesNOTE: The
columnsToGraphql
method shared with theschema
module will take a small amount of work to determine what amount of this logic should exist separately in the front end library.