Re: pgAdmin IV API test cases patch

From: Priyanka Shendge <priyanka(dot)shendge(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Kanchan Mohitey <kanchan(dot)mohitey(at)enterprisedb(dot)com>
Subject: Re: pgAdmin IV API test cases patch
Date: 2016-06-09 12:37:08
Message-ID: CAKmZXFRj8yY91TTxwQQ01eOQE8Rc7FPWuxGcjxaVY+QcWpgWDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Dave,

PFA updated patch. I have made changes suggested by you.

Kindly, review and let me know for more changes.

On 6 June 2016 at 14:09, Priyanka Shendge <priyanka(dot)shendge(at)enterprisedb(dot)com
> wrote:

>
>
> On 6 June 2016 at 14:03, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
>> Hi
>>
>> On Sun, Jun 5, 2016 at 6:56 PM, Priyanka Shendge
>> <priyanka(dot)shendge(at)enterprisedb(dot)com> wrote:
>> > Hi,
>> >
>> > PFA patch for API test cases for tree nodes/modules. This patch does not
>> > include
>> > api tests for following modules:
>> >
>> > 1. Type
>> > 2. Table child nodes
>> > 3. FTS modules
>> >
>> > Kindly, review the same and let me know for any modification.
>>
>> I took a very quick look at the patch and immediately saw a serious
>> problem I'm afraid - you cannot hard-code paths like this:
>>
>> + if
>> os.path.isfile('/home/edb/Downloads/pgadmin4/web/regression/'
>> + 'parent_id.pkl'):
>> + exst_server_id = open('/home/edb/Downloads/pgadmin4/web'
>> + '/regression/''parent_id.pkl',
>> 'rb')
>>
>> You need to dynamically generate such paths so this will work on any
>> machine. Look at line 19 of web/pgAdmin4.py to see how to get the
>> patch to the current file as an example.
>>
> Sure, i'll check and update accordingly.
>
>>
>> Also; despite this not being part of the end-user interface, please
>> try to follow the standards for messages, e.g. instead of:
>>
>> No event trigger(s) to update!!!
>>
>> use
>>
>> No event trigger(s) to update.
>>
> Noted. I will update for all applicable files.
>
>>
>> There is likely more to change of course, but please fix these issues
>> first.
>>
> Sure.
>
> Thank you.
>
>>
>> Thanks!
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>
>
> --
> Best,
> Priyanka
>
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>

--
Best,
Priyanka

EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Attachment Content-Type Size
pgadmin_api_test2.patch application/octet-stream 240.1 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Surinder Kumar 2016-06-09 12:52:34 [pgAdmin4][Patch]: RM#1324 - Grant wizard does not show privileges option again if Click on Back button on Privileges page
Previous Message Surinder Kumar 2016-06-09 12:24:36 [pgAdmin4[Patch]: RM#1319 - Unable to select sql file through query tool on windows operating system