-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove methods causing issues during initialization and creation of schema when database has different name than postgres #1842
Conversation
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Remove once kvesteri/sqlalchemy-utils#372 is merged and new release of sqlalchemy_utils is releasedstorages/thoth/storages/graph/postgres.py Lines 269 to 274 in 3beaa1d
This comment was generated by todo based on a
|
thoth/storages/graph/postgres.py
Outdated
try: | ||
self._engine = create_engine(self.construct_connection_string(), echo=echo) | ||
self._sessionmaker = sessionmaker(bind=self._engine) | ||
except Exception: | ||
self._is_successfully_started = True |
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.
Is there a need for a new object attribute? If so it should go to the __init__
if we want to use it in other methods. Otherwise it can be a variable.
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.
Removed and implemented methods in postgres_utils.py
:)
Build failed.
|
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Remove once kvesteri/sqlalchemy-utils#372 is merged and new release of sqlalchemy_utils is issuedstorages/thoth/storages/graph/postgres.py Lines 269 to 274 in 0e8223f
This comment was generated by todo based on a
|
Build failed.
|
remove once kvesteri/sqlalchemy-utils#372 is mergedstorages/thoth/storages/graph/postgres_utils.py Lines 3 to 8 in c5dae67
This comment was generated by todo based on a
|
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Build failed.
|
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.
let's have it in 👍
thanks! 👏
recheck |
Build failed.
|
Build failed.
|
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Build failed.
|
recheck |
Build failed.
|
Build failed.
|
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Build failed.
|
Signed-off-by: Francesco Murdaca <fmurdaca@redhat.com>
Build failed.
|
Build failed.
|
recheck |
Build succeeded.
|
Build failed (gate pipeline). For information on how to proceed, see
|
I'll merge this manually to ship new release. |
Related Issues and Dependencies
Due to issue in
sqlalchmey_utils
which use default postgres database name: kvesteri/sqlalchemy-utils#372Fixes: thoth-station/thoth-application#41
This introduces a breaking change
This should yield a new module release
This Pull Request implements
Adapt methods that were causing issue when the name of the database is not postgres from sqlalchemy utils.