public inbox for [email protected]
help / color / mirror / Atom feedFrom: Murtuza Zabuawala <[email protected]>
To: Joao De Almeida Pereira <[email protected]>
Cc: Dave Page <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgAdmin4][RM#3073] Allow user to schedule without End date from UI
Date: Thu, 1 Mar 2018 11:31:45 +0530
Message-ID: <CAKKotZS6ExcFqt06DSsHLYbBanbhPZtjzYcbYJJUUwCzBvRmiQ@mail.gmail.com> (raw)
In-Reply-To: <CAE+jjakteFP4_hVEBAsY5GYOAQ81iPkahmuV7G+Y7CR+3M3rag@mail.gmail.com>
References: <CAKKotZR-a320X7Jq30Nf+wWNk13z_TV-DLPsZNdaZHw9wj5oiQ@mail.gmail.com>
<CA+OCxoy7sOE1xUZWtdyi2UJjJucQCTjcJy=ep21KqsbXEi-Bsw@mail.gmail.com>
<CAKKotZQ_QLJ+pgz0Q8Tjg3-oOezG7OTUXDSgg_SYXm2pX4itgQ@mail.gmail.com>
<CA+OCxox8yPw33SHwvTmbtDJcgCjYx2nMZf3dFFk6hk0A6=HX3w@mail.gmail.com>
<CAKKotZSbDqjKKNaprnXM7eEW3wR1ffbDbmmh2B-xqtybUVv_Bw@mail.gmail.com>
<CA+OCxoxWZUZX1KAXr+_xyagF8Zai21C7YAC_Sfb5ZJwm-ywMLA@mail.gmail.com>
<CAKKotZTA_zDhuarKGhqYVaGf0u7bb72uvaJoWkOdRPWKmDqPyg@mail.gmail.com>
<CA+OCxowhpCOc8puFNRzxPArGyHg5ZB01C-Cpb0xVGy3h-WWWpQ@mail.gmail.com>
<CAKKotZRnze=prpL7ohQJPsZkoKE8C8+eGvWAVNQ1CQqUTxS7iA@mail.gmail.com>
<CAKKotZQo0DXegscBji=YTJ5arJ95BH_VFmrKZzXV6G_xVFaQYQ@mail.gmail.com>
<CAE+jjakteFP4_hVEBAsY5GYOAQ81iPkahmuV7G+Y7CR+3M3rag@mail.gmail.com>
Hi Joao,
It is difficult to test scenario with unit test as html input source has
proper date value in both the cases but bootstrap datetime picker itself
was not displaying the value on the UI.
I'm attaching the screenshot for Start field (Both the scenario when it
displays with Valid date and with invalid date when it doesn't).
Let me know if you have anything in mind.
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
On Wed, Feb 28, 2018 at 8:40 PM, Joao De Almeida Pereira <
[email protected]> wrote:
> Hello Murtuza,
> I do not have the pgAgent installed so it was a little it hard to test
> this.
> After looking into the code I think we are missing some testing coverage
> around the pga_job Javascript part so that we can catch these problems.
> Even some code extraction can be done around the pg_jobset change
>
> Nevertheless I passed the patch through our CI and it is all green
>
> Thanks
> Joao
>
> On Wed, Feb 28, 2018 at 5:36 AM Murtuza Zabuawala <murtuza.zabuawala@
> enterprisedb.com> wrote:
>
>> Hi Dave,
>>
>> I have found the issue, it was in Backform control itself :)
>> Issue: We were passing today's date value as minDate option in pgAgent
>> schedule schema while rendering the control, So when server was sending
>> previous datetime value it was not displaying it causing sync problem.
>>
>> --
>> Regards,
>> Murtuza Zabuawala
>> EnterpriseDB: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>>
>> On Tue, Feb 27, 2018 at 8:39 PM, Murtuza Zabuawala <murtuza.zabuawala@
>> enterprisedb.com> wrote:
>>
>>> Thanks Dave, I'll look into it.
>>>
>>>
>>>
>>> On Tue, Feb 27, 2018 at 8:37 PM, Dave Page <[email protected]> wrote:
>>>
>>>> Hi
>>>>
>>>> On Tue, Feb 27, 2018 at 12:03 PM, Murtuza Zabuawala <murtuza.zabuawala@
>>>> enterprisedb.com> wrote:
>>>>
>>>>> I'm not able to re-produce the issue, Could you hard refresh and try
>>>>> again?
>>>>>
>>>>
>>>> I still see it.
>>>>
>>>>
>>>>>
>>>>> If possible could you please provide exact steps?
>>>>>
>>>>
>>>> Attached is a dump of my test pgagent schema.
>>>>
>>>> 1) Load the schema dump into the maintenance database
>>>> 2) Connect pgAdmin
>>>> 3) Browse to pgAgent Jobs
>>>> 4) Right-click Properties, and select the Schedules tab
>>>> 5) Open the subnode for sched1
>>>>
>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Murtuza Zabuawala
>>>>> EnterpriseDB: http://www.enterprisedb.com
>>>>> The Enterprise PostgreSQL Company
>>>>>
>>>>>
>>>>> On Tue, Feb 27, 2018 at 5:30 PM, Dave Page <[email protected]> wrote:
>>>>>
>>>>>> Sorry - here it is.
>>>>>>
>>>>>> On Tue, Feb 27, 2018 at 11:59 AM, Murtuza Zabuawala <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Dave,
>>>>>>>
>>>>>>> Could you please send screenshot?
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Murtuza Zabuawala
>>>>>>> EnterpriseDB: http://www.enterprisedb.com
>>>>>>> The Enterprise PostgreSQL Company
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Feb 27, 2018 at 5:24 PM, Dave Page <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Still not quite right - see the attached screenshot which is the
>>>>>>>> result of simply viewing the properties of an existing job. Note that the
>>>>>>>> start time is shown in the grid but not the subnode control.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> On Tue, Feb 27, 2018 at 8:26 AM, Murtuza Zabuawala <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi Dave,
>>>>>>>>>
>>>>>>>>> As validation related patch was committed with RM#3148 [ Sorry
>>>>>>>>> about that I forgot to checkout :) ]
>>>>>>>>> PFA patch to fix the issues you mentioned, I have also removed
>>>>>>>>> extra error message from sub node collection control and made it optional
>>>>>>>>> via flag.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Regards,
>>>>>>>>> Murtuza Zabuawala
>>>>>>>>> EnterpriseDB: http://www.enterprisedb.com
>>>>>>>>> The Enterprise PostgreSQL Company
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, Feb 26, 2018 at 10:14 PM, Dave Page <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi
>>>>>>>>>>
>>>>>>>>>> On Mon, Feb 26, 2018 at 2:46 PM, Murtuza Zabuawala <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> PFA patch to fix the issue where user was not able to create
>>>>>>>>>>> pgAgent job from UI without entering End date in schedule section.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Whilst this does resolve the validation issue, there are still a
>>>>>>>>>> couple of other related problems, as can be seen in the attached
>>>>>>>>>> screenshots:
>>>>>>>>>>
>>>>>>>>>> - The Start date/time in the subnode control doesn't seem to be
>>>>>>>>>> properly synchronised with the value in the grid.
>>>>>>>>>>
>>>>>>>>>> - If you leave the End date/time blank (but maybe click into it
>>>>>>>>>> first), the grid will show "Invalid date".
>>>>>>>>>>
>>>>>>>>>> It's possible there are other oddities as well - please check
>>>>>>>>>> carefully for anything else.
>>>>>>>>>>
>>>>>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dave Page
>>>> Blog: http://pgsnake.blogspot.com
>>>> Twitter: @pgsnake
>>>>
>>>> EnterpriseDB UK: http://www.enterprisedb.com
>>>> The Enterprise PostgreSQL Company
>>>>
>>>
>>>
>>
Attachments:
[image/png] With Invalid Date.png (152.4K, 3-With%20Invalid%20Date.png)
download | view image
[image/png] With Valid Date.png (209.5K, 4-With%20Valid%20Date.png)
download | view image
view thread (14+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [pgAdmin4][RM#3073] Allow user to schedule without End date from UI
In-Reply-To: <CAKKotZS6ExcFqt06DSsHLYbBanbhPZtjzYcbYJJUUwCzBvRmiQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox