Limit Global variable and Debug Dialog

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Limit Global variable and Debug Dialog

Post by Desmanto » 12 Aug 2017 15:58

Hi Martin,

Is there a way to implement a limit on Global Variable, so it will be limited only to certain flow? I have created a lot of flows, and my GloVar keep growing until it need scrolling now when selecting variable. What I want is I can select certain GloVar and make it only visible to 2 or 3 flows, but not visible in other flows. There will be checklist, that the GloVar will be available in certain flows and all new created flows (or only current available flows) I know the name will be inapproriate, since it supposed to be global. Maybe create a new tag for the spesific flow, such as tag flow_variable will be the one managed in this way.

I found the debug dialog to be one of the most useful feature in debugging, especially with scripting. I used this a lot when creating flow. However, this GloVar problem also affecting the debug dialog. When I need only to check 2-3 variables, the GloVar still shows up at the bottom and kinda distracting. If limiting the GloVar is not possible, maybe you can add a check box at the debug dialog, to show only local variable. There is a function to list all available variable and we can parse only the local ones, show them in notification on screen. But that defeats the purpose of the powerful debug dialog, where we can check, edit, copy the value of the variables on the fly. So, it will be better to have the option at the debug dialog.

Thank & Regards,
Desmanto
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Limit Global variable and Debug Dialog

Post by Martin » 13 Aug 2017 12:49

Hi,

Adding a checkbox to the debug dialog is a good idea. I'll add it to the todo list.

Where exactly is the scrolling most annoying, in the menu->Select Variable dialog? I could also add a checkbox there to hide global variables and provide a button to filter by name.

Regards,
Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Limit Global variable and Debug Dialog

Post by Desmanto » 13 Aug 2017 13:13

Yes, at the select variable. I have to scroll past thru the global_ if my variable is x, y, z. If you're going to make that checkbox, please make it persistent. I mean if I tick hide GloVar already, the next time I select variable, it is still ticked. As I usually deal with GloVar twice only, in the beginning and end of the flow. So in the middle, no need to tick that hide GloVar everytime I select variable. Filter by name is also nice to have, since other elements already implement this. Thanks for adding it to the todo list :)
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Limit Global variable and Debug Dialog

Post by bogdyro » 13 Aug 2017 15:08

Hi all.
Had a request awhile back regarding debug dialog. The post wasn't answered though.
viewtopic.php?f=4&t=6588
Basically would like to Organize variables by the action that produces them with collapse expand support,sorted maybe by action order and/or alphabetically.
Example: action http request has tons of variables which I almost never check. Would be nice to quickly get them out of the way
Thx

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Limit Global variable and Debug Dialog

Post by Desmanto » 13 Aug 2017 18:08

Oh, your thread is buried deep, can't find it during my search before creating this thread. That is also a nice feature to have. Maybe it is very hard to implement it, since it has to check all elements for supplied/used variables. While Martin probably has other priority first.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Locked