-
Notifications
You must be signed in to change notification settings - Fork 379
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
Creating a product through the web interface creates a product with a schema mismatch #3459
Comments
@andrewg-spectra By default in case of Sqlite if you start a CodeChecker server to an empty workspace directory (
In case of PostgreSQL the default configuration database name is
So I think you tried to create a product with a wrong and already existing database. |
@csordasmarton The UX here is confusing because "Database Name" on the web form or
I think the correct answer is the latter. When I specify the name of a new database that does not exist, I get this error:
Honestly, as a user, I don't even want to be exposed to the db internals of CodeChecker. That's just my own personal thoughts though and not the issue I want to raise here. Overall I am very happy with CodeChecker have a workaround to this issue by using the CLI. |
Correct UX would be catching that the user is trying to use the CodeChecker config database, and explaining that they need to make a separate database for every product that they're adding. Even better UX would be to automatically create a database, instead of having the end-user do it first. |
Describe the bug
Creating a product through the web interface
creates a product with a schema mismatch
The server produces the following output:
CodeChecker version
v6.17.0
To Reproduce
Create a codechecker-web server with a PostgreSQL database. I use something similar to this sample compose file.
Using the web interface create a new product (see image above).
Expected behaviour
I expect the new product to be created without a schema mismatch.
Desktop (please complete the following information)
Additional context
Using the command
CodeChecker cmd products add test --url <server_url>
will create a product without displaying the schema mismatch error.The text was updated successfully, but these errors were encountered: