Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-09-22 Thread Aditya Toshniwal
Hi, Please find the updated patch. On Tue, Sep 22, 2020 at 2:56 PM Akshay Joshi wrote: > Hi Aditya > > The patch fixes only 1 code smell and introduce 1 new. Please fix those > and resend the patch. > > On Tue, Sep 22, 2020 at 11:04 AM Aditya Toshniwal < > aditya.toshni...@enterprisedb.com> wro

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-09-22 Thread Akshay Joshi
Hi Aditya The patch fixes only 1 code smell and introduce 1 new. Please fix those and resend the patch. On Tue, Sep 22, 2020 at 11:04 AM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached path will reduce the cognitive complexity as > below:web/pgadmin/misc/

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-09-08 Thread Akshay Joshi
Thanks, patch applied. On Tue, Sep 8, 2020 at 6:13 PM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Attached patch reduces the cognitive complexity as below: > web/pgadmin/tools/sqleditor/utils/is_begin_required.py - 89 to 15 > web/pgadmin/utils/driver/psycopg2/connection.py - 16

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-09-03 Thread Akshay Joshi
Thanks, patch applied. On Thu, Sep 3, 2020 at 3:38 PM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to reduce cognitive complexity as below: > web/pgadmin/misc/file_manager/__init__.py 20 to 15 > web/pgadmin/tools/grant_wizard/__init__.py 55

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-09-02 Thread Akshay Joshi
Thanks, patch applied. On Tue, Sep 1, 2020 at 3:34 PM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached patch reduces cognitive complexity as below: > > web/.../server_groups/servers/pgagent/__init__.py - 23 to 15 > web/pgadmin/utils/driver/psycopg2/__init__.

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-08-12 Thread Akshay Joshi
Thanks, patch applied. On Wed, Aug 12, 2020 at 4:03 PM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to fix certain errors occurring when saving > preferences. This is the regression of patch committed. > Please review. > > On Tue, Aug 11, 20

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-08-12 Thread Aditya Toshniwal
Hi Hackers, Attached is the patch to fix certain errors occurring when saving preferences. This is the regression of patch committed. Please review. On Tue, Aug 11, 2020 at 3:32 PM Akshay Joshi wrote: > Thanks, patch applied. > > On Tue, Aug 11, 2020 at 11:42 AM Aditya Toshniwal < > aditya.tosh

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-08-11 Thread Akshay Joshi
Thanks, patch applied. On Tue, Aug 11, 2020 at 11:42 AM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached patch will reduce cognitive complexity for functions as below: > web/.../servers/pgagent/schedules/__init__.py - 17 to 15 > web/.../servers/pgagent/steps

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-07-27 Thread Akshay Joshi
Thanks, patch applied. On Mon, Jul 27, 2020 at 11:00 AM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Please ignore the previous patch. Attached is the latest. > > On Mon, Jul 27, 2020 at 10:42 AM Aditya Toshniwal < > aditya.toshni...@enterprisedb.com> wrote: > >>

Re: [pgAdmin][SonarQube] Reduce cognitive complexity

2020-07-26 Thread Aditya Toshniwal
Hi Hackers, Please ignore the previous patch. Attached is the latest. On Mon, Jul 27, 2020 at 10:42 AM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to reduce cognitive complexity for: > 1) web/.../databases/schemas/views/__init__.py from 11

Re: [pgAdmin][SonarQube] Reduce cognitive complexity of functions

2020-07-23 Thread Akshay Joshi
Thanks, patch applied. On Mon, Jul 20, 2020 at 12:25 PM Aditya Toshniwal < aditya.toshni...@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to reduce cognitive complexity of functions: > 1) web/.../exclusion_constraint/__init__.py > create > from 25 to 15 > 2) web/.../exclusion_c