Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn5Rm-0005lb-Vd for pgadmin-hackers@arkaria.postgresql.org; Thu, 22 Sep 2016 14:57:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bn5Rm-0001IC-FG for pgadmin-hackers@arkaria.postgresql.org; Thu, 22 Sep 2016 14:57:58 +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 1bn5Rl-0001HD-Sl for pgadmin-hackers@postgresql.org; Thu, 22 Sep 2016 14:57:57 +0000 Received: from mail-it0-x229.google.com ([2607:f8b0:4001:c0b::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bn5Rh-0006jn-Pl for pgadmin-hackers@postgresql.org; Thu, 22 Sep 2016 14:57:57 +0000 Received: by mail-it0-x229.google.com with SMTP id o3so159692955ita.1 for ; Thu, 22 Sep 2016 07:57:53 -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=CPBr84K8Nc82s+/tVTuk25R5iQaS2B5Qda4wiKz/93Y=; b=bV+5k1Wy5aMQOP7nGympKA81c1P/QGO7pyH9W3rLRH1dS8fMgKXdgj26Jkwxs/xY1F rHcWfP4QKgEfCdSza0RUaErpi2uwdsTt/hWHp5xG5nVpcSI96OAr4Yfhz58/kipk637o EJNJRzSydQexpkaQit5sogpYP69h/AiX8U/p8Ftd1miymtcxq3+Wc9lN+VW47Ppkwak+ jy7gANkVSBmQHiHev6oIekKGSA4Qj4dM5/ie83cvLEmy8kft+hI+YpD5vfEFRB83ODdi 9aXcGhE0ShF49TZXP+FTdS0DIixMj+Kqr6UMnvrmS3zUpqBPeQEddWbjztCA1G2R1mez w6Xg== 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=CPBr84K8Nc82s+/tVTuk25R5iQaS2B5Qda4wiKz/93Y=; b=WqIkELFNvMDAhvQIHJTic8996cyYai3hDSN29PqkS7+0NOnlmuiDwCqMUd+DhSNBqV jWjqS6Xd35EwQYRSxmZcj5+QT3FvUl2VDIeoj2Ops0QXEJ1IsmiXm8xcY189s6CNqkgj 6bURzSz325q4Urbg5bw8lz7tband91menYzB+Mv1evPHhm2WJn3aDWZKYwwVa+wOT86G EiPJmDq1J0w1+o3mKDu+7O2uuHNgakqWAJdPhdy+LaDhknmXkyfaGQcrQYSEpR9GiIrg f9UvLuw1xsE1Kakt1ZpZFECMPnUqNvYRapxar8tsELE4qNgRDt3sg9pESNymfkHI7SX9 fSXQ== X-Gm-Message-State: AE9vXwPLikLNq7CNleVqtYtjUmNOZ0hmZo4TqBZFcZWth1w7+i9nI/AOjiKtwR/jkNWvuzllGoy6PwqR9DN2wA== X-Received: by 10.36.236.69 with SMTP id g66mr11568521ith.32.1474556270783; Thu, 22 Sep 2016 07:57:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Thu, 22 Sep 2016 07:57:49 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Thu, 22 Sep 2016 15:57:49 +0100 Message-ID: Subject: Re: PATCH: pgAgent support To: Ashesh Vashi 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. From the pgAgent patch: - The date/time format is different again. Should be locale or ISO (consistent across the app) - I think we need to add hints under the less obvious options - e.g. Job class and host agent - On the job step subnode control, lets move the Script to it's own tab (called Code). We should alter the label based on the Kind option - either "SQL query" or "Script" - Why can't we use the Date/time picker for Exceptions? I assume we just need to either disable Date or Time selection? - The SQL tab doesn't use the available space. See screenshot. - The SQL should have blank lines between sections, e.g. before -- Steps and -- Schedules On Thu, Sep 22, 2016 at 3:49 PM, Ashesh Vashi wrote: > Will look at them. > > > On Sep 22, 2016 20:08, "Dave Page" wrote: >> >> Hmm - that was clearly hiding from me. I'll take a look now. >> >> Did you see the rest of my comments? >> >> On Thu, Sep 22, 2016 at 3:37 PM, Ashesh Vashi >> wrote: >> > I sent an updated patch immediately. >> > >> > >> > On Sep 22, 2016 20:01, "Dave Page" wrote: >> >> >> >> Hi >> >> >> >> On Thu, Sep 22, 2016 at 11:47 AM, Ashesh Vashi >> >> wrote: >> >>> >> >>> Hi Dave, >> >>> >> >>> Please find the patch for support for paAgent in pgAdmin 4. >> >> >> >> >> >> Did you forget the binary switch? >> >> >> >> piranha:web dpage$ git apply --binary ~/Downloads/pgagent_v2.patch >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/schedules/static/img/coll-pga_schedule.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/schedules/static/img/coll-pga_schedule.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/schedules/static/img/pga_schedule.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/schedules/static/img/pga_schedule.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/static/img/coll-pga_job.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/static/img/coll-pga_job.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/static/img/pga_job-disabled.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/static/img/pga_job-disabled.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/static/img/pga_job.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/static/img/pga_job.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/steps/static/img/coll-pga_jobstep.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/steps/static/img/coll-pga_jobstep.png: >> >> patch does not apply >> >> error: cannot apply binary patch to >> >> >> >> 'web/pgadmin/browser/server_groups/servers/pgAgent/steps/static/img/pga_jobstep.png' >> >> without full index line >> >> error: >> >> >> >> web/pgadmin/browser/server_groups/servers/pgAgent/steps/static/img/pga_jobstep.png: >> >> patch does not apply >> >>> >> >>> >> >>> I have also attached another patch for miscellaneous fixes, and adding >> >>> new controls. >> >>> It includes: >> >>> - Added DatetimepickerControl, MomentCell (using moment.js) >> >>> - Used the 'DatetimepickerControl' in Role (Also - resolved an issue, >> >>> when unset the datetime for 'Valid Until'.) >> >>> - Added a 'Select All/Unselect All' adaptor for Select2 used by >> >>> pgAgent >> >>> nodes. >> >>> - Fixed an issue with SubNodeCollectionControl, which was not starting >> >>> the modification session of the child model, when created default >> >>> value for >> >>> collection is not null/undefined. And, hence - validation on the child >> >>> model >> >>> was not working. >> >>> - Fixed a memory leak with SqlFieldControl, and SqlTabControl, which >> >>> was >> >>> not releasing the CodeMirror properly. >> >> >> >> >> >> Urgh, that's big. Applied - but can you look at the following please? >> >> >> >> - Account expires has a hint of 'MMM D YYYY HH:mm:ss.SSS Z". Are >> >> milliseconds really needed? I also get 00 as a fractional timezone >> >> offset. >> >> Perhaps we should hide that, when it's 00? >> >> >> >> - The date format differs from the ISO format displayed by the query >> >> tool. >> >> They should be consistent - and really should be either based on the >> >> client's locale settings, or ISO format. >> >> >> >> Thanks. >> >> >> >> -- >> >> Dave Page >> >> Blog: http://pgsnake.blogspot.com >> >> Twitter: @pgsnake >> >> >> >> EnterpriseDB UK: http://www.enterprisedb.com >> >> The Enterprise PostgreSQL Company >> >> >> >> -- >> Dave Page >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake >> >> EnterpriseDB UK: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company -- 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