Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1abpxN-0004OT-UY for pgadmin-hackers@arkaria.postgresql.org; Fri, 04 Mar 2016 13:39:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1abpxN-0003cf-DZ for pgadmin-hackers@arkaria.postgresql.org; Fri, 04 Mar 2016 13:39:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1abpxN-0003cV-01 for pgadmin-hackers@postgresql.org; Fri, 04 Mar 2016 13:39:49 +0000 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1abpxJ-00020o-Hw for pgadmin-hackers@postgresql.org; Fri, 04 Mar 2016 13:39:48 +0000 Received: by mail-ig0-x235.google.com with SMTP id ir4so796323igb.1 for ; Fri, 04 Mar 2016 05:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=6lsgoGR2bT4TtUbWw10ZBjjOyasvl1cNJBHtzxVPJXE=; b=mmVeW6EK5cvllAILNbBZ3ZdomB3Q7hvbidF/hQ0Z0i02bs1xlIMg509vBlFk/ltmzz rGSlLuR5f/8sk8FbEL70PR3IjkMl0KM797wg2dNKcIZUtNQkFlTcsZWUCtig+80wXbX6 6Zn+yQ3RWBpKvRzv7Ju8Cirgr3kpIP6D7vhDtQl3/+jCTAvuT/PxTEpL8V2xuxKyX+BJ /AaReoYnohiB8Z5/nmmdzrI9GDZR8q17Od9Q9LdI/2z0s7VORRBmmpWVSJXE/WMfzn80 Yh1uqB/hJVC+5A+TfZYnpUvtkPruW2UceYMq7QaKGdefNXJ40G45TFp47IZK5jdI2Im1 dC9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=6lsgoGR2bT4TtUbWw10ZBjjOyasvl1cNJBHtzxVPJXE=; b=WtC5BCq3RYufAW7FTH7qWmInQRvHWmyf/Nz8bMHEjWs4TSdJMPpR+hgabNHxzl7UyG Y/dlUEIH3DssXsGYAxvL22000eND6nzl2mnd8NwesU4EFCtD4ypQQs4Nm7Krq+hheAQb hdwleww0TGsCIYj0DTcFI5D8csrFYW0hPvAy+FdOOBEmg7dKCN7Po4k3gsoJCGQSioLN +kg8FNnUOUI6CSLlPBCCa8qX+o5rvmM8djxJgzLzFGUizFBIcAylLz5ZVq/3sEqlZ6zg oDBGUnFTMOorUiwiweBCDQMlkPB60OjnJE4mppisPVFRdXeoG9foLNKsfze9r3gk9NGi OBSw== X-Gm-Message-State: AD7BkJISeQzQ5QNOBnwipXjsdg2uNemVIpN4jezBSwquIz6+hpiH/8+vgleNGrwBOTO3rXwD5F86beUfEILjdA== MIME-Version: 1.0 X-Received: by 10.50.73.133 with SMTP id l5mr3678251igv.69.1457098783874; Fri, 04 Mar 2016 05:39:43 -0800 (PST) Received: by 10.64.90.3 with HTTP; Fri, 4 Mar 2016 05:39:43 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Mar 2016 13:39:43 +0000 Message-ID: Subject: Re: [pgAdmin4] [Patch]: Grant Wizard From: Dave Page To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Thu, Mar 3, 2016 at 12:49 PM, Surinder Kumar wrote: > Hi, > > PFA patch for Grant Wizard. > > Before applying grant wizard patch: > > 1. Apply patch for "wizard JS file" which Khushboo had shared with > Ashesh personally. > I am using that patch with few changes in that. Ashesh will > review > and commit that patch. > > 2. Apply patches of "Sequence" and "Functions" macros. > > > Please review the patch and Let me know for any comments. Initial feedback: - Why does this add specific knowledge of the Grant Wizard to the Browser module? It should be a plugin that loads itself at runtime. Any changes to the browser to support that should be entirely generic and usable by any module. - The comment above also applies to the core templates. CSS should be advertised by the plugin, and the browser can add it into the rendered output when the module is dynamically loaded. - +""" Implements Grant Wizard""" - why the leading space? Please review all comments and code for such small details. - The Python code to detect and alias various Python 2/3 classes should be centralised, as I've seen it in at least one other module. - In other module names, we've separated multiple words with a hypen. e.g. server-groups. s/grantwizard/grant-wizard/g - The published routes for this module are all under - "GET /browser/static/js/wizard.js HTTP/1.1" 404 - - For consistency, when naming CSS/JS files that are core to a module, please use the module name, e.g. /web/pgadmin/tools/grant-wizard/static/css/grant-wizard.css Thanks. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers