Skip to content
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

Button to select latest ingested dataset #68

Open
falkamelung opened this issue Jul 31, 2022 · 5 comments
Open

Button to select latest ingested dataset #68

falkamelung opened this issue Jul 31, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@falkamelung
Copy link
Member

It would be nice to have a button that allows to display the latest ingested dataset. And/or a scroll window that allows to select one of the latest 3 ingested datasets - if we can do this in a way that not too much screen real estate is used

@falkamelung falkamelung added the enhancement New feature or request label Jul 31, 2022
@stackTom
Copy link
Contributor

Do you mean the latest "last_date"? Or the latest table ingested?

If it's the latter, we don't record a time stamp of ingestion time in the database. I'll have to see if there's another way to get when a table was created in postgresql, but last I checked there wasn't a fully reliable way. I can research some more.

@falkamelung
Copy link
Member Author

The latest dataset. This is what you call table, I suppose. I saw on the server a file which is updated every time a new dataset is ingested. But is it OK to open this file from within insarmaps?

It's not a high priority. I could simply create a little script to display the latest entries if you have no easy way to do this.

@stackTom
Copy link
Contributor

Which file is this?

@falkamelung
Copy link
Member Author

Actually, it is not a file. But the entries in this dir have the relevant date stamp
[insaradmin@insarweb tileserver]$ pwd
/data/tileserver

-rw-r--r-- 1 apache apache 85094400 Aug 18 00:52 S1_IW12_087_0527_0531_20180902_XXXXXXXX.mbtiles
-rw-r--r-- 1 apache apache 909312 Aug 18 01:15 S1_IW3_048_0081_0082_20150921_20211112_SM2_PS.mbtiles
-rwxrwxr-x 1 insaradmin apache 42369024 Aug 18 14:08 S1_IW3_106_1177_1182_20161119_20180525.mbtiles
-rw-r--r-- 1 apache apache 909312 Aug 18 16:50 S1_IW3_048_0081_0082_20150921_20211112_SM3_PS.mbtiles
-rw-r--r-- 1 apache apache 913408 Aug 18 16:52 S1_IW3_048_0081_0082_20150921_20211112_SM_PS.mbtiles

@stackTom
Copy link
Contributor

Oh that is a good idea. We can use the mbtiles files as an indirect way to determine this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants