-
Notifications
You must be signed in to change notification settings - Fork 2
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
Using "Re-order" in Questionnaires #66
Comments
@HTsybenko I tried to reproduce this error, but could not see any error been thrown for saving the re-ordered structural types. Could you please let me know when exactly this problem have you noticed? |
@jmurugan-fzj This issue can be recreated, for example, like this:
After the last step, the terminal will respond with: |
@HTsybenko I retried with the fresh database installation in the main branch version and could not reproduce this error! Please see this video: re_order_issue_trial Log also does not show any critical errors: @SteffenBrinckmann Since I am trying this on main branch, could this be something version specific? I mean, specific to the version used by Hanna? |
@jmurugan-fzj I have checked the video you uploaded, and there you have immediately clicked the re-order button twice to move the "status" property above "-name" and then saved. However, moving the "status" property in two steps, as described in my previous comment, does lead to an error message. Please try following the exact steps of the prior comment and let me know if there are any new messages. |
I will investigate this issue using the main branch |
@HTsybenko @jmurugan-fzj Yes it is a bug but it is not due to the questionaires, it is the "well known" issue of couchDB and the python-library that we use: some/all updates to a previously written document (in the same Pasta session) lead to stupid results as the library seems to cache (save in between versions) and then gets confused. |
In 2.4.16, the issue is still there. |
@HTsybenko This issue has not been fixed yet, I guess! @SteffenBrinckmann I think, it's better to attach a list of issues which were fixed too along with your release version email, so Hanna can only tests those have been addressed.. I don't think she has look into every PRs for this purpose and moreover PR's are just meant for the developers! |
|
@SteffenBrinckmann Save and Close means, when you click the save button it should save the data and close the ontology editor? But how does that fix this issue? I remember, this error was occurring inside self.database.initDocTypeViews(16), closing the tool will stop the error been thrown inside initDocTypeViews? How does that work? :) |
@jmurugan-fzj The close would result in a restart, which removes all the caches. That would then result in old caches not causing problems. |
Using "re-order" of properties for existing data types (e.g. Projects) and then saving leads to the following response:
**ERROR dsv01: something unexpected has happend. Log-file has traceback
Log:
09-28 18:41:32|INFO:Start PASTA GUI
09-28 18:41:34|INFO:End PASTA GUI
09-28 18:41:38|INFO:Setting up slots for the editor..
09-28 18:41:38|INFO:User loaded the ontology data in UI
09-28 18:41:38|INFO:New type selected in UI: {Structure level 0}
09-28 18:41:38|INFO:Table Data updated..
09-28 18:41:38|INFO:Table Data updated..
09-28 18:41:38|INFO:Table Data updated..
09-28 18:41:38|INFO:New property category selected in UI: {default}
09-28 18:41:38|INFO:Table Data updated..
09-28 18:42:24|INFO:Re-order signal emitted for the position: {1} in the table..
09-28 18:42:24|INFO:Reordered the data, Actual position: {1}, New Position: {0}, data: {{'name': '-tags', 'query': 'What are the tags associated with the project?', 'required': True}})
09-28 18:42:26|INFO:User clicked the save button..
09-28 18:42:26|INFO: traceback initDocTypeView startMain()|app.exec()|self.triggered.connect(lambda : widget.execute(command))|ontologyForm.instance.exec()|self.database.initDocTypeViews(16)
09-28 18:42:43|INFO:Re-order signal emitted for the position: {2} in the table..
09-28 18:42:43|INFO:Reordered the data, Actual position: {2}, New Position: {1}, data: {{'name': 'status', 'query': 'What is the project status', 'list': ['active', 'paused', 'passive', 'finished']}})
09-28 18:42:45|INFO:User clicked the save button..
09-28 18:42:45|INFO: traceback initDocTypeView startMain()|app.exec()|self.triggered.connect(lambda : widget.execute(command))|ontologyForm.instance.exec()|self.database.initDocTypeViews(16)
The text was updated successfully, but these errors were encountered: