RE-QDA / requal

Free and open-source software for computer-assisted qualitative data analysis
https://www.requal.app
Other
12 stars 1 forks source link

Problem when creating a project duplicate #91

Closed martin-hajek closed 1 year ago

martin-hajek commented 2 years ago

If I create a project in a folder where another project with the same name already exists, I get this error: "Text to be written must be a length-one character vector". Fortunatelly, the old project is not overwritten. In the console, I get this: Warning: Error in writeImpl: Text to be written must be a length-one character vector 109: stop 108: writeImpl 107: textWriter$write 106: tagWrite 105: FUN 104: lapply 103: tagWrite 102: doRenderTags 101: processDeps 100: transform 99: func 97: f 96: Reduce 87: do 86: hybrid_chain 85: renderFunc 84: output$user_ui_1-user 3: runApp 2: print.shiny.appobj 1: I wish the program would warn me, when creating a project in a folder with the project of the same name.

martin-hajek commented 1 year ago

Fix 101 solved something, but not the whole problem for the desktop version. It is still possible to create a project file that has the same name&path as an existing project file. The new project FILE is silently added as a new PROJECT inside the same project FILE, but the users are preserved and the current user is added to the database. If an attempt is made to create a duplicate project FILE with a name&path, the correct behavior should be to warn the user that a FILE with the same name already exists and either (a) inform the user that the original project FILE will be overwritten and then this action must be properly completed, or (b) prompt the user to use a different name. I prefer option (b).

NOTE: The relationship between "project file" and "project" should be made clear to users of the desktop version. I prefer to allow only one project within a project file.