connect
connect copied to clipboard
[IDEA] Add filtering capabilties on Global Map tab on the dashboard
Is your feature request related to a problem? Please describe. Not a problem per se - however as $g and $gc usage grows, it is painful to sroll down to find value sets.
Describe your use case I need this feature so I can accomplish faster coding / debugging / troubleshootig.
Describe the solution you'd like Add filtering / search capability - not all that unlike the filter on the channe list. Given a preference, that could be SQL or JS like for the filter box. e.g.
Key == 'ASDF'
Value.indexOf('2020-01-01') == -1
Additional context None
Frame challenge - Why do you have so many values in $g and $gc?
Would restructuring your code so that instead of storing many values in these maps, you store fewer values which are objects (serialized to JSON) which then store the data you need?
I suppose the filtering would be helpful to find the values you need to do such a refactoring though...
That are serialized to JSON in many cases. However for speed of lookup (as in by the engineer) reasons they are not all gigantic arrays of data. This has changed over time for our work of course. Also there are times we just don't care about "other" values in those maps when viewing / debugging.
This one is common, show me:
- This site's json blob of config data in a $g array (i.e. 1..n sites' config data are stored in one larger area in this case)
- This sites token - not stored in an array (i.e. "ABCD_token", "ABCD_token_last_refresh")
- All $gc vars for this channel. (usually some static stuff sourced on deploy from the deploy script)