-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error when editing the schema of the resource #467
Comments
@roll could you take a look at this issue? It is not clear what are the responsibilities of the There is a smelly comment in that part of the code which suggest we can improve it, but there is no context on why that code is there or why it is needed: # Clear database
# TODO: use smarter logic to delete only if needed
if updated and not toPath:
delete_record(project, path=path, onlyFromDatabase=True) |
@pdelboca |
Good idea, @roll. Asides from a nice case like the ability to change the Column titles in the Metadata schema below (while seeing the change in real time in the split above), a Panel UI style isn't what I'd expect for an app primarily for non-technical users. A Dialog workflow is definitely one approach to consider once I get to this section of the app |
@roll could you provide more context on why is this happening? I agree that data/metadata logic should be separated, I'm just wondering if this is an error that can be handled under the current logic instead of rewriting it. |
@pdelboca |
Overview
When editing the schema of a resource, the application raises an error due to a missing table in the database. (The table that holds the dump of the file)
Steps to reproduce
simplescreenrecorder-2024-07-23_09.25.06.webm
Technical notes
The problem is that inside
/table/patch
, the methodhelpers.patch_record()
deletes the table of the resource from the database and then when trying to executeresource.write_table(path=str(target))
it fails due to a missing table.The text was updated successfully, but these errors were encountered: