geonetwork datadir checker useless ressources#35
geonetwork datadir checker useless ressources#35jeanmi151 merged 39 commits intogeorchestra:masterfrom
Conversation
landryb
left a comment
There was a problem hiding this comment.
I've tested it again and it looks better, there a still a bunch of cleanups to do..
now i know why didn't like the size to be 'humanized' in the display (versus raw bytes).. now you cant easily sort to figure out which leftover dir takes the most space. filtering on 'MB' and sorting doesnt help either because 44 is between 1 and 9, as those are strings..
|
ah, and can you also use |
|
now that we use a bootstrap table to display the values, i think we can use a formatter to humanize the numbers on the fly, like the ones in gaia/geordash/static/js/script.js Line 561 in c70ae82 this way, no need for jinja another note.. i dont think we need to store the path/url twice, nor the problem type in the results: unless you plan to tackle the other cases i had listed in #11 (comment) - for now the type is always the same value, and i dont think we call |
done in my last commit 0b9e744 |

following #11 ...
The aim of this is to add a checker to spot files that are no longer needed because geonetwork forget to delete them
it checks the database records (metadata table) and search in the /mnt/geonetwork_datadir/data/metadata_data/
(value here https://github.com/georchestra/datadir/blob/docker-master/geonetwork/geonetwork.properties#L2)