-
Notifications
You must be signed in to change notification settings - Fork 226
verdi: Deprecate --db-engine option #6906
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
Conversation
default='postgresql_psycopg', | ||
type=click.Choice(['postgresql_psycopg']), | ||
type=click.Choice(['postgresql_psycopg', 'postgresql_psycopg2']), |
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.
We add back postgresql_psycopg2
since this option is ignored anyway. It might save somebody some trouble when upgrading to aiida 2.7.0
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6906 +/- ##
==========================================
- Coverage 78.58% 78.58% -0.00%
==========================================
Files 564 564
Lines 43126 43130 +4
==========================================
+ Hits 33888 33890 +2
- Misses 9238 9240 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 for taking care it. minor changes requested
@@ -205,6 +212,12 @@ def quicksetup( | |||
# store default user settings so user does not have to re-enter them | |||
_store_default_user_settings(ctx.obj.config, email, first_name, last_name, institution) | |||
|
|||
if non_interactive and db_engine != 'postgresql_psycopg': |
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.
So this is just to avoid the error message to appear when one enters it in interactive mode? I think we could also fire it in interactive mode but no strong opinios.
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.
Yes, I found it quite distracting when I was testing it.
dbinfo_su = { | ||
'host': db_host, | ||
'port': db_port, | ||
'user': su_db_username, | ||
'password': su_db_password, | ||
'database': su_db_name, | ||
'dbname': su_db_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.
@agoscinski FYI: This removes the following deprecation warning coming from the pgsu package that you can trivially see when running verdi quicksetup
and that I saw many times in test suites and never knew where it is coming from :D
This was missed in #6362
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.
I am happy that you found closure
4eba484
to
1e4a3b7
Compare
1e4a3b7
to
d981f0d
Compare
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 for the work! I ignore patch coverage because changes only effect a deprecated cli command
dbinfo_su = { | ||
'host': db_host, | ||
'port': db_port, | ||
'user': su_db_username, | ||
'password': su_db_password, | ||
'database': su_db_name, | ||
'dbname': su_db_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.
I am happy that you found closure
@danielhollas ok?
|
I would mention in the commit message that the option doesn't actually influence anything, since the actual DB engine is hardcoded. So it's safe to accept the old value. Otherwise looks good! |
Partly addresses #6905, see the issue for more details and motivation behind this.