Thread: [pgAdmin4][RM#3014] Fix validation issues while creating new sequence
Hi,
PFA patches,
1) To fix the validation issue while creating new sequence
RM#3014
2) Fix PEP-8 issues in sequence module
pycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/schemas/sequences/
3) To fix the regression test for Tablespace when running with Python3.x
RM#3138
--
Regards,
Attachment
Re: [pgAdmin4][RM#3014] Fix validation issues while creating new sequence
From
Joao De Almeida Pereira
Date:
Hi Murtuza,
Looks good.
Was there any reason for the change in position of the if statements in the sql file. Makes the output more readable?
Looks like we need some test to ensure that the Sequence issue does not happen again. Maybe a Unit Test is good enough, to ensure that we are creating a good SQL
Thanks
Joao
On Wed, Feb 21, 2018 at 3:13 AM Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi,PFA patches,1) To fix the validation issue while creating new sequenceRM#30142) Fix PEP-8 issues in sequence modulepycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/schemas/sequences/3) To fix the regression test for Tablespace when running with Python3.xRM#3138--Regards,
On Wed, Feb 21, 2018 at 3:54 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
-- Hi Murtuza,Looks good.Was there any reason for the change in position of the if statements in the sql file. Makes the output more readable?Looks like we need some test to ensure that the Sequence issue does not happen again. Maybe a Unit Test is good enough, to ensure that we are creating a good SQL
I think we need to come up with a framework or standard method for testing the generated SQL and reverse engineered SQL for all objects. That's been bugging me for a while - the problem is that for just a single object type there may be thousands of possible combinations of options to test to ensure complete coverage.
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Thanks, applied.
On Wed, Feb 21, 2018 at 8:13 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi,PFA patches,1) To fix the validation issue while creating new sequenceRM#30142) Fix PEP-8 issues in sequence modulepycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/ schemas/sequences/ 3) To fix the regression test for Tablespace when running with Python3.xRM#3138--Regards,
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Re: [pgAdmin4][RM#3014] Fix validation issues while creating new sequence
From
Murtuza Zabuawala
Date:
Hi Joao,
Thank you for your time in reviewing the patch.
On Wed, Feb 21, 2018 at 9:24 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hi Murtuza,Looks good.Was there any reason for the change in position of the if statements in the sql file. Makes the output more readable?
Yes
Looks like we need some test to ensure that the Sequence issue does not happen again. Maybe a Unit Test is good enough, to ensure that we are creating a good SQL
I'll add a test case for the same.
ThanksJoaoOn Wed, Feb 21, 2018 at 3:13 AM Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Hi,PFA patches,1) To fix the validation issue while creating new sequenceRM#30142) Fix PEP-8 issues in sequence modulepycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/ schemas/sequences/ 3) To fix the regression test for Tablespace when running with Python3.xRM#3138--Regards,
Re: [pgAdmin4][RM#3014] Fix validation issues while creating new sequence
From
Murtuza Zabuawala
Date:
Hi Dave,
PFA patch to add test case to cover the scenario against RM#3014
On Wed, Feb 21, 2018 at 11:09 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprised b.com> wrote:
Hi Joao,Thank you for your time in reviewing the patch.On Wed, Feb 21, 2018 at 9:24 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:Hi Murtuza,Looks good.Was there any reason for the change in position of the if statements in the sql file. Makes the output more readable?YesLooks like we need some test to ensure that the Sequence issue does not happen again. Maybe a Unit Test is good enough, to ensure that we are creating a good SQLI'll add a test case for the same.ThanksJoaoOn Wed, Feb 21, 2018 at 3:13 AM Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Hi,PFA patches,1) To fix the validation issue while creating new sequenceRM#30142) Fix PEP-8 issues in sequence modulepycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/schemas/se quences/ 3) To fix the regression test for Tablespace when running with Python3.xRM#3138--Regards,
Attachment
Thanks, applied.
On Fri, Feb 23, 2018 at 11:34 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi Dave,PFA patch to add test case to cover the scenario against RM#3014On Wed, Feb 21, 2018 at 11:09 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Hi Joao,Thank you for your time in reviewing the patch.On Wed, Feb 21, 2018 at 9:24 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:Hi Murtuza,Looks good.Was there any reason for the change in position of the if statements in the sql file. Makes the output more readable?YesLooks like we need some test to ensure that the Sequence issue does not happen again. Maybe a Unit Test is good enough, to ensure that we are creating a good SQLI'll add a test case for the same.ThanksJoaoOn Wed, Feb 21, 2018 at 3:13 AM Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Hi,PFA patches,1) To fix the validation issue while creating new sequenceRM#30142) Fix PEP-8 issues in sequence modulepycodestyle --config=.pycodestyle ./pgadmin/browser/server_groups/servers/databases/schemas/se quences/ 3) To fix the regression test for Tablespace when running with Python3.xRM#3138--Regards,
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company