Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjOci-0007nT-4H for pgadmin-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 10:38:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjOch-0006Kl-Ld for pgadmin-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 10:37:59 +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_2) (envelope-from ) id 1bjOcg-0006JO-U8 for pgadmin-hackers@postgresql.org; Mon, 12 Sep 2016 10:37:59 +0000 Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bjOcZ-0000Wp-6o for pgadmin-hackers@postgresql.org; Mon, 12 Sep 2016 10:37:58 +0000 Received: by mail-oi0-x230.google.com with SMTP id y2so304472720oie.0 for ; Mon, 12 Sep 2016 03:37:51 -0700 (PDT) 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:from:date:message-id:subject:to :cc; bh=3Cs8UCuk32Bu3qFVI0grm6zmjr4u3wINgfgHK7t1jmE=; b=D90hpmuyqEeqLoR7BjpV4Ns7W8UuuK4nsP5WcJBAwW5cYYYneIyRmLLv0DV+wKxbVb j2HH40sgBvJ70cb4IIfK0gh49zcIPrcbn7JzD+crAwcmhIHdTDruR03xvc2bdvwTQXb3 Er3R0r+GlkwmTnSzKdyGVKnRzgehA9n/FAYw5pZzLGju0hvVF90hyaJPenIj1Xoc9Xzk TPOP/C2ZVOI2KLV52QxyRRzKVhjxgKgYbV6QztmhiUZOSDVdiyFkKJAweaLhn6DKbHfi sYAfixLmz60/52aTTb30HZPPnxpESwpKPCNvx+hkzZXtZu8kDIA1Vo/eYCBhG7x5D+OK prPw== 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:from:date :message-id:subject:to:cc; bh=3Cs8UCuk32Bu3qFVI0grm6zmjr4u3wINgfgHK7t1jmE=; b=d/uEuHV27VBHYoHhS9gSkKj3KZGBceDjMFxuVPKw6zxVlrhuuV+HzjPu2eIUSxUVaC QPbNIRUfB9fsxGMXrNCBySbo/0f0ojepaUIi+AvNlGFtisGBg3w8cV+jpwMKsV/F9PEH qUwo9gGVEwR4bjASQW1K/Jv+QXjUVigsBPf41wCC8slt/k2pRKcf1Y3NdRn25VWTaSiu MWAatdFO0+u8tX+f9zKFaQe68JlJiwKmSGv73Ev/KtYzMP8Bv/l7Kci1P+EFKMFdTkYH 3liMJwF11WHCpmMxQQYmHKjOwyc3fg+Ma1G3E0eJUhhJvSBHawr8HSQSjlpO7v+EsWdF yb+A== X-Gm-Message-State: AE9vXwN0m0CekJwsEWAaHQwwfQ2r9w+X9JA1AfFOfIELaKjzVWMKyPaoG5b17AsDemocU3VXHjDgCEdYDWT5Ng== X-Received: by 10.202.216.8 with SMTP id p8mr24916125oig.140.1473676668805; Mon, 12 Sep 2016 03:37:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Mon, 12 Sep 2016 03:37:48 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 12 Sep 2016 11:37:48 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM1682 - create new Procedure option should not available on System catalog 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 Thanks, applied. On Mon, Sep 12, 2016 at 6:12 AM, Surinder Kumar wrote: > Hi > > Please find attached with following fixes: > > 1) The function 'canCreateProc' that checks if package is auth to create > under catalog gets failed due to improper check of 'type'. Instead check > should be like > node_hierarchy['server'].server_type == "ppas" not > node_hierarchy['server'].type == "ppas" > > 2) Also found, package.js was loading at schema level, due to this, context > menu doesn't popup under catalog. Now it is load at database level. > > 3) In package.js, remove extra comma from columns array. > > 4) Rule create option should not available on table under catalogs. Fixed. > > Please review. > > Thanks, > Surinder Kumar > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- 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