Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1abqq8-0008Ag-Au for pgadmin-hackers@arkaria.postgresql.org; Fri, 04 Mar 2016 14:36:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1abqq7-0000F7-Hs for pgadmin-hackers@arkaria.postgresql.org; Fri, 04 Mar 2016 14:36:23 +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 1abqq7-0000Ec-15 for pgadmin-hackers@postgresql.org; Fri, 04 Mar 2016 14:36:23 +0000 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1abqpv-0003IQ-RD for pgadmin-hackers@postgresql.org; Fri, 04 Mar 2016 14:36:22 +0000 Received: by mail-io0-x236.google.com with SMTP id m184so64074989iof.1 for ; Fri, 04 Mar 2016 06:36:11 -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=01V5Kq7SLVCCvXfOIOuWzn3SxYnhp6/lc8cCA3qg9aI=; b=gPAtpHOca7aQBUam73r8me5nDVONyuH1Wh6pMhT/d97Qra8nUpGW6MuDqEbnnPbpU8 fq+1fjilO6uTw2kRkT1Ucj1/nbPvB0yZ8XFPykgPRHVdwOhpci9nClfecpfejYqo1iwk iGh9LjiP2fhh+wTzvhSYAJNdHoJsKJYAxHhW12siOm8ZjXQ1+XSJmCznqrFqa0TKkhVr GpcsexTJMJH4l4n6PH5oJcTgx6fFFgIo+ZCWOYR6y3vWFWLYEq7TbqbdJs4rG7MjFdtW 5LQKSNBCmpK7It55o6V7KhD4OyRN3bUPeTzpmMDqJHcCvgPFdE2+dTJNehrrrWQzvQv4 Ey6A== 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=01V5Kq7SLVCCvXfOIOuWzn3SxYnhp6/lc8cCA3qg9aI=; b=agLMIklNe0Ru95rbmxsj6KSbQY/kjD938HmLBbRYG83Eed9Z1Oaj9gqlIh02rPWs1A VDlLDVvLEvwY9pX9eY3aFPdUHwZybB4HjCXH00YQLOgwTeqoNEZX0G5N3QK+M6ZkyKTE wZC9j8FBEj7Ggw6YNsSjD+m7948nuwRRejBdgzM5yEEhzlXR/rC6yJgubfQoLACP6AA7 k3KUyw1oZfeYPUSTlYibz+S/bFRTT04s33JkgwaJti22wdpCDhmAQo/7i6BEHIxvRdt4 1ixZ3Ua4oevcPNz73teovoekkiSoN+9/slSO2A7MVw9g28UUO3Zd5haOADA//MxJpRRx 3xJg== X-Gm-Message-State: AD7BkJKTcNvWVnQsGN3tsmShFPtaNPW0cyfXbgHfJnQ7SkB1CCcqnP7fIhUGE/FBwAyhR8H7qMoHYUr5/rMyJg== MIME-Version: 1.0 X-Received: by 10.107.12.226 with SMTP id 95mr9117438iom.70.1457102169920; Fri, 04 Mar 2016 06:36:09 -0800 (PST) Received: by 10.64.90.3 with HTTP; Fri, 4 Mar 2016 06:36:09 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Mar 2016 14:36:09 +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 A couple of corrections below On Fri, Mar 4, 2016 at 1:39 PM, Dave Page wrote: > 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 That should be an underscore, not a hyphen: 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 /web/pgadmin/tools/grant_wizard/static/css/grant_wizard.css -- 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