IQEngine icon indicating copy to clipboard operation
IQEngine copied to clipboard

Refresh local data

Open robgardien opened this issue 1 year ago • 9 comments

When I refresh the local data, it doesn't reflect newly added meta and data files. When I stop and start the docker container the newly added data is visible. Is there any way to add new data without restarting the container?

robgardien avatar Apr 11 '24 13:04 robgardien

Yep, in your env var where you set feature flags, there's one for adding a refresh button to the top-right https://iqengine.org/docs/config-feature-flags eg IQENGINE_FEATURE_FLAGS={"allowRefreshing": true, "bypassLandingPage": true}

777arc avatar Apr 11 '24 20:04 777arc

Thank you, I have enabled that function but the refresh button doens't seem te be reloading the content. When I restart the container the new content does show.

robgardien avatar Apr 12 '24 07:04 robgardien

Oh weird, you're using the latest docker image right? When you hit refresh the backend logs should show the same activity that happens when you start the backend, where it goes through and parses each file.

777arc avatar Apr 12 '24 14:04 777arc

Yes but it is a local directory, does it work the same?

robgardien avatar Apr 18 '24 10:04 robgardien

I have some info. When using the Local To Backend I can't see the dataset:

local_to_backend

but using the query it works:

Regular_query

robgardien avatar Apr 18 '24 12:04 robgardien

It does seem to update over time, but I would like to use the refresh button for refreshing the local data

robgardien avatar Apr 18 '24 13:04 robgardien

When you say local data do you mean the local directory option (showed below), or using IQENGINE_BACKEND_LOCAL_FILEPATH to serve recordings local to the server?

image

777arc avatar Apr 18 '24 20:04 777arc

For now I use a PUT request on /api/datasources/local/local/datasource with the same data and a refresh to do the refresh, I use the Local to Backend default datasource (/tmp/myrecordings)

robgardien avatar Apr 23 '24 10:04 robgardien

Can you ping me on Discord or email me, my contact info is on pysdr.org, we should hop on a call to work this out

777arc avatar Apr 23 '24 19:04 777arc