pgAdmin 4 commit: Fixed code smells 'Define a constant instead of dupli

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: pgAdmin 4 commit: Fixed code smells 'Define a constant instead of dupli
Date: 2020-09-29 09:39:24
Message-ID: E1kNC6W-00015w-Dr@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fixed code smells 'Define a constant instead of duplicating this literal' reported by SonarQube.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=1c70a43b91c414ae927bd1d294116480da289161

Modified Files
--------------
web/migrations/versions/a091c9611d20_.py | 1 +
.../databases/schemas/functions/__init__.py | 6 ++--
.../constraints/check_constraint/__init__.py | 7 ++--
.../constraints/exclusion_constraint/__init__.py | 7 ++--
.../tables/constraints/foreign_key/__init__.py | 8 ++---
.../constraints/index_constraint/__init__.py | 13 +++----
.../constraints/tests/test_constraints_get.py | 27 ---------------
.../servers/databases/schemas/tables/utils.py | 40 +++++++++++++---------
.../servers/databases/schemas/types/__init__.py | 32 +++++++++--------
.../servers/databases/schemas/views/__init__.py | 14 ++++----
.../servers/pgagent/steps/__init__.py | 13 +++----
web/pgadmin/browser/utils.py | 8 +++--
web/pgadmin/dashboard/__init__.py | 12 ++++---
web/pgadmin/misc/bgprocess/processes.py | 13 +++----
web/pgadmin/misc/file_manager/__init__.py | 14 ++++----
web/pgadmin/model/__init__.py | 19 +++++-----
web/pgadmin/setup/data_directory.py | 15 ++++----
web/pgadmin/tools/backup/__init__.py | 20 +++++------
web/pgadmin/tools/sqleditor/__init__.py | 12 ++++---
web/pgadmin/tools/sqleditor/command.py | 17 ++++-----
web/pgadmin/utils/driver/psycopg2/connection.py | 30 ++++++++--------
web/pgadmin/utils/exception.py | 15 ++++----
22 files changed, 167 insertions(+), 176 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-09-29 12:57:42 pgAdmin 4 commit: Removed (Beta) keyword from Schema Diff and High Cont
Previous Message Akshay Joshi 2020-09-29 06:01:37 Re: [pgAdmin][RM3794]:Allow User to Change Database Connection from an Open Query Tool Tab