OpenMetadata/openmetadata-ui
Abhishek Porwal 4c1c91e6ba
fix: issue-12540 and issue-13992 (apply highlights and sort in summary column as well as for tags). (#14253)
* sort the summarylist items based on the
glossary-term-page and applied tags in explore page

* change path split logic to get the current glossary term

* sort the tags in summaryItem based on current glossary

* prettier-fix

* minor changes

* variable name changed

* unit test update for the sorting items based on tags in entity-summary-panel-utils

* added tag highlight for column tags

* fix: existing e2e test break in glossary.spec file

* e2e for checking the column sort based on current term page in right panel

* minor changes

* e2e for checking columnTagHighlight with sort on term page

* add page tag sort functionality based on filter applied in explore page and based on current term in glossary term page

* minor change

* implement summaeryItem  highlight and sort on global search + also when apply filter

* fix: for the first render after search first elements right panel name, description etc not get highlighted

* Revert "fix: for the first render after search first elements right panel name, description etc not get highlighted"

This reverts commit e69512d625f412263e925598846a0e104561a07c.

* minor change

* add tags sort and highlight functionality in StoreProcedure Page

* add tag sort and highlight functionality in dashboard

* add summary list and tags sort and highlight functionality in Dashboard Data Modal

* remove repeated code and optimize the getFormatEntityData method

* add sort and highlight for global search and filter in Pipeline component

* minor change to fix the entity details value not get parse in some cases

* add sort and highlight for topics in explore page

* added sort and highlight fn for MlModels in explore page

* added sort and highlight functionality for Containers in explore page

* add sort and highlights for charts data

* add sort and filter functionality for searchIndexs in explore page

* cleanup first

* cleanup 2

* move constant in separate file

* some type fix and cleanup

* minor fix

* fix unit test for EntitySummaryPanelUtils

* minor fix

* revert some change and fix unit test in SearchIndexSummary component

* revert some change

* constant file name change

* update the highlight keys constant and add sort and highlight summary list based on column description also

* cleanup in EntitySummaryPanelUtils

* type errors fixing

* fixing type issues wip

* revert a change

* change a variable name and fix type error

* change the sequence of parameter in getFormattedEntityData fn

* fix unit test

* fix type issues

* fix e2e test for sorting and highlighting summaryList and its tag

* added sort and highlight for DatabaseSummary component

* added sort and highlight for DatabaseSchemaSummary component

* added sort and highlight in different service-summary component

* fix: right panel entity display name and description not get highlight on search until we select a entity card

* address comments

* address comments

* address comments 3

* fix: unit test fail after addressing comments

* address comments

* revert some change

* added unit test for newly added methods in EntitySummaryPanelUtils

* added unit test for highlightEntityNameAndDescription method

* fix conflict after taking pull and some cleanup

---------

Co-authored-by: karanh37 <33024356+karanh37@users.noreply.github.com>
2023-12-20 10:57:59 +05:30
..