New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement periodic refresh of the base dir and the remote server #375
Comments
as reported in #371 this should be the local folder organization: Datasets can be located everywhere on the user's machine, just as long as their respective Trends.Earth base dirThe structure of the base dir shall be:
|
@ricardogsilva I can't move the card in ready or in progress |
@ricardogsilva full path or path relative to Trends.Earth base dir ? or by default relative and full path only if it's an absolute path? |
@ricardogsilva @Samweli FYI in https://github.com/luipir/trends.earth/tree/implement_periodic_refresh_%23375 I started implementing the interaction with the server... The implementation tried to follow the same architecture followed by @azvoleff to read and validate response (e.g. using marshmallow schemas) that allow us to load (and validate) and dump object schema in a simple way. I used a schema that weren't used in the code APIResponseSchema that seems follow the possible response of the server... btw the population of the schema depend of the status of the processing. => for this reason I had to create some workaround to e.g. infer the location where to save the json descriptor because there weren't any indication of the script-name in the the first response of the run. I'll continue populating the datasets (witth a path walk visitor that instance a datasets descriptor) and updating the run descriptor from the dataset descriptor. |
as discussed in slack; ricardo 12:15 PM Luigi Pirelli 12:20 PM |
FYI there is no api (or I can't find) to get a single exection by run_id => I've always to get all execution list and update datasets all together => I can't update a dataset one by one nor run update asynchronously one by one. |
@ricardogsilva should be implemented via #395 |
in the meantime I continue with downloading dataset |
reason of this folder? is it really necessary? status is inside the json |
Trends.Earth shall periodically refresh its own datasets list. Refreshing means:
Implement the code that performs this periodic refresh in an asynchronous fashion, in order to prevent locking up the main QGIS UI. After refreshing, the dataset list shown on the
datasets
tab of the dock shall also be updated.Set the refresh frequency to
60
seconds by default. We will deal with how this is exposed to the user in #374The text was updated successfully, but these errors were encountered: