Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

list for aio-lib-state

ursboller
Community Advisor
Community Advisor

is there a function to retrieve all variables set in aio-lib-state? something like the function "list()" from aio-lib-files...

1 Accepted Solution
duypnguyen
Correct answer by
Employee
Employee

Hi @ursboller - currently we don't expose "list" of all values in aio-lib-state.

We are working on a local monitoring UI for state and files, so that as an app admin you have more controls over the files and values stored in state.

However there is no plan to support "list" programmatically in state, as it has large impact on the SDK performance and security.

Could you please share your use case for this feature?

View solution in original post

8 Replies
duypnguyen
Correct answer by
Employee
Employee

Hi @ursboller - currently we don't expose "list" of all values in aio-lib-state.

We are working on a local monitoring UI for state and files, so that as an app admin you have more controls over the files and values stored in state.

However there is no plan to support "list" programmatically in state, as it has large impact on the SDK performance and security.

Could you please share your use case for this feature?

View solution in original post

ursboller
Community Advisor
Community Advisor
currently I have built both UI and actions to manage all aio-lib-files (read/edit/delete files from UI - let me know if you want a screenshot). and I would love to have something similar for states - just to see what values I have from the UI, maybe change the data ...
ursboller
Community Advisor
Community Advisor

@duypnguyen here are some screenshots from my current app development:
1) see all files within aio-lib-files with option to see/edit the content as well as delete files (download-option will follow)

ursboller_0-1601283900362.png

2) screenshot to edit the file content

ursboller_0-1601284014163.png

 

duypnguyen
Employee
Employee
@ursboller - thanks for the screenshots. This UI will also be available as part of the Firefly developer tooling. Let me follow up with the team about its timeline.
duypnguyen
Employee
Employee
@ursboller - I got informed that the state ops UI is targeted in Q1 2021 timeframe.
ursboller
Community Advisor
Community Advisor
thanks for the update! any plans for a "files-UI" similar to my screenshot?
duypnguyen
Employee
Employee
yes - the ops UI will support both State and Files SDK, CRUD stuff like you have in the screenshot (not editing text files though, I think it's a more specific feature). Another feature in that release which might be of your interest is the possibility to set TTL for files (similar to state), so that the files are automatically cleaned up if their life time is known.
ursboller
Community Advisor
Community Advisor
@duypnguyen great to know! and yes, TTL is really needed since I intend to have a expiry (currently set by string in filename and manual cleanup) - so TTL is the way to go!