-
-
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
Bugs while deleting database connection #3361
Comments
@Anish9901 thanks for opening this and for correctly applying the new labels! 🙂 Parts 1 and 2 seem to be independent. If they are related, can you clarify how? If they're independent, then can you please close this issue and open two separate ones to track these bugs independently? Also as a side note, for bugs I think it helps to have some clearer steps to reproduce. With sufficiently clear repro steps, I don't think we even need the "Expected behavior" section. See #1563 and #2724 as examples. Whenever I write repro steps I try to think of them like pseudocode for a unit test. The repro steps should have some setup, some action, an expectation, and an observation. If you can write these steps out in that manner, I think it will help a community contributor pick these up more easily. Alternatively, I think it's also okay to keep tickets a bit more vague and messy if they are labeled "restricted: maintainers". |
@seancolsen I've updated the repro steps.
Since the flag |
Hello there @Anish9901 , can I work on this issue? I know I can't be assigned yet hence I already worked on the part 1, just wanted your permission to continue further..! |
Go ahead and submit a PR @Taherpatrawala, FYI the team will be on winter break from 23rd till 1st of next month so your PR will be reviewed once the break is over. |
@Anish9901 @Taherpatrawala I think that "Internal Server Error" is the correct error type (though we can add a more granular detail) if you try to delete a connection and the underlying schemas, but find that you can't reach the underlying DB in some (maybe most) cases. |
Description
Part 1: (Fixed in #3377)
del_msar_schemas
being set to true or false.Part 2:
del_msar_schemas=true
whose database is deleted outside of mathesar results in an Internal server error.Expected behavior
Part 1:
del_msar_schemas
.Part 2:
To Reproduce
Part 1:
mathesar_tables
docker exec -it mathesar_dev_db psql -U mathesar
\dn
in the psql shell. Notice the different schemas in the database.Delete associated Mathesar schemas
box through the UI.\dn
in the psql shell and notice that the schemasmsar, __msar, and mathesar_types
get dropped regardless.Part 2:
mathesar_tables
, follow the steps in the note section if you don't see the connection.drop database mathesar with (force);
Delete associated Mathesar schemas
checked.Note:
To recreate the deleted mathesar_tables connection you can send a post request to the following with the provided json until #3319 isn't merged:
The text was updated successfully, but these errors were encountered: