Re: [pgAdmin4] [Patch]: Extension Module

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4] [Patch]: Extension Module
Date: 2016-02-23 11:07:22
Message-ID: CAM5-9D8cMiiUsSYt8sE+-+hhLPm0F+2ughxvohuqUMi1f_Xs0A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

PFA patch with changes suggested by Dave

Please review the patch and let me know for any comments.

On Mon, Feb 15, 2016 at 4:37 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Hi
>
> On Mon, Feb 15, 2016 at 9:55 AM, Surinder Kumar <
> surinder(dot)kumar(at)enterprisedb(dot)com> wrote:
>
>> Hi,
>>
>> PFA patch with following changes:
>>
>> 1. Added "Create Extension" menu item in context menu of Database
>> node.
>> 2. Added a new method "node_node" in ExtensionModule class. If a node
>> has child, returns True, otherwise False.
>> 3. Fixed an issue in which icon won't display in create extension
>> link in context menu.
>> 4. Added Docstring for the class and methods in python file and
>> proper commenting in js file.
>> 5. Followed PEP-08 coding conventions.
>>
>>
> I haven't tested this, but a few initial comments:
>
> - The commenting of the JS code is better than I've seen in other patches
> \o/, but the commenting style is inconsistent. We should use /* */ for
> multi-line comments, and // for single line.
> - The JS code could use some carefully introduced blank lines to help
> make it more readable.
>
Done

> - s/}else{/} else {/
>
Done

> - Dependency/depends display is missing (see previous email to Akshay).
> This is essential for this node!
>
Implemented dependency and depends

> - There's no pydoc comment introducing __init__.py
>
Added pydoc

> - Shouldn't "data='-- Modified SQL --'," be "data=gettext('-- Modified SQL
> --'),"?
>
Yes, it should be. Fixed.

>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

Attachment Content-Type Size
extension_v6.patch application/octet-stream 33.7 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Murtuza Zabuawala 2016-02-23 12:11:12 Re: PATCH: Schema/Catalog Node [pgAdmin4]
Previous Message Dave Page 2016-02-23 10:40:46 Re: patch for cast module