polifonia-project / clef

Light-weight Linked Open Data native cataloguing and crowdsourcing platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues in deleting templates and resources

Bianca-LM opened this issue · comments

I'm using the new version of clef, and some problems occurred to me when creating and deleting templates:

  • when a template is deleted, its JSON file is not removed from the folder "resource_templates". It is correctly deleted from the list inside the "ask_json.json" file, but it remains in the file "templates.json" list. This can create inconsistencies when loading the application. At the same time, if a template has been deleted and is created again with the same name, the file of the deleted one changes name by adding numbers to it, but it still stays both in the folder and the list in "templates.json" with the new status "deleted".

The same thing happens when it comes to resources: even if they have been deleted as triples from the knowledge graph, their turtle file stays in the folder resources.