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
API for database config #3170
API for database config #3170
Conversation
There is an issue with the install script that I'd like to point out, whenever there is a change in the function signature of our SQL functions the install script executes without termination even though psycopg exceptions can be noticed in the logs. I don't think it's a good idea to reinstall those schema without the consent of the users as there might be db objects dependent on those schemas. I'd like to here your thoughts on it @silentninja |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start! However, there are a few issues
-
The Database model does not contain the unique name field. We cannot use the database name as a reference as it can be changed too even though the data inside the database is the same. Please add it to the
Database
model. -
I have made specific comments to highlight other issues
I thought we decided not to have a breaking function signature between release. If you are noticing this in the
For the sake of easier upgrades, we decided to not have any breaking changes. So I don't think it will affect any dependent objects |
If the database object is added using a .env file, the only way to track the database object across database name change is by using a unique database key which is not tied to the property of the database. So we need a unique database key on top of database name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Anish9901, it looks good to me! I would like to wait until the frontend work is done to merge this PR as it will be easier to confirm if something is broken.
…f database connection fails
@silentninja said:
Given that @rajatvijay has made significant progress on the front end PR now, do you think we could merge this backend PR? If not, then stwWhat's the reason to keep this PR open? We can handle any subsequent backend changes in other PRs, right? |
Fixes #3157
Fixes #3158
Technical details
API Signature:
Changed
common_data
dict:databases
key in thecommon_dict
will now provide a dict something like this for the corresponding stale database object:Checklist
Update index.md
).develop
branch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin