-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Schemas are not returned in the APIs right after editing the database connection details #3230
Comments
Still can't reproduce. Could be some kind of race condition, but the I'll start out by having backend automatically reflect when you edit a connection string. And, to only reflect the affected db (the |
@dmos62 I already tried to do that, but it results in a bunch of failed test cases. |
@Anish9901 yeah, I'm running into some tech debt. You'd want to reflect the database whenever you make changes to the connection string (because it might now be a totally different database), but during reflection we actually make changes to the database models too (to mark them as deleted or not deleted), which causes infinite recursion, because it triggers reflection. I think it's fairly important to get reflection right; I'm seeing what I can do. |
One possible solution I see for this problem is to detect which fields are altered in the model and triggering reflection only when |
I had similar ideas. Though I opted to just get rid of the |
When rebasing #3223 on top of #3245, I can't reproduce this anymore. Though, before I wasn't able to reproduce too, sort of: then I succeeded to reproduce, and couldn't tell why I couldn't reproduce from the beginning. My point is that I'm not confident that the bug is fixed. @rajatvijay would you find the time to checkout #3223, merge #3245 on top (note that it removes the |
Sure @dmos62 I will get to it later today or first thing in morning tomorrow. |
@rajatvijay thanks! By the way, with changes in that pr, frontend shouldn't have to trigger reflection manually when making changes via api. |
@mathemancer since you're already assigned to the corresponding PR, I'm assigning you to figure out the next steps with this issue no that Dom will non longer be working on it. |
@seancolsen I closed the referenced PR, since huge chunks of it are no longer relevant with the new way of handling connections. As for this issue, it's always been difficult to reproduce, the reason behind it wasn't clear to me, and it may have disappeared on its own. I'm going to try to reproduce it myself, and close this issue if I can't. We can reopen or create a fresh issue. |
Okay, I tried a few times and can't reproduce. I did crash into the bug reported in #3329 , and we should certainly resolve that one. |
To Reproduce
Additional information
POST: /api/ui/v0/reflect/
API right the editing of the database connection succeeds.db-connection-pages
The text was updated successfully, but these errors were encountered: