Closed syphax-bouazzouni closed 2 years ago
Script to be suggested to NCBO as a pull request.
A bug was found : In some case (still to determine) the content (files) of the folders are removed but the folder remains
The bug was that I used the wrong ruby function to remove files, I used rm_r , that remove only files. Instead of remove_dir that remove dirs and there contents
The hotfix was made at https://github.com/ontoportal-lirmm/ncbo_cron/commit/5f6fd0862476c4e2f3a797572630abc2969e53dc
The hotfix wasn't tested in production, so I close this issue for now. But we will see in the future if the problem remains.
The need
A script given an "ontology acronym" and a range of submission ids ( from "submission id" to "submission id" ), removes all the data (triple store) and files of the submissions inside that range.
Use case
From "stageportal" server, inside the "/srv/ontoportal/ncbo_cron" folder. The following command :
Will :
Details
--from 2 --to 5
is equal to--from 5 --to 2