More efficient data structure for favorites #2026
Labels
enhancement
New feature or request
priority-medium
Not functioning - next quarter if capacity permits
v3
Milestone
Is your feature request related to a problem? Please describe.
Related to favorites management (add/removing favorites for Data Sets, Jobs and USS section)
Describe the solution you'd like
Change method of storing favorites such that the nodes can be mapped 1:1; this should shorten lookup time for corresponding nodes and make logic more straightforward for adding/removing favorites. Since we are searching based on labels, we could assign the node labels as keys for a map-based structure.
The
findFavoritedNode
andfindNonFavoritedNode
functions are marked deprecated, but they're being used in the codebase. Refactor w/ the map-based structure (as suggested above), or keep the same structures and remove the deprecation warnings?Additional context
The text was updated successfully, but these errors were encountered: