Re: [pgAdmin4][Patch]: RM #3607 Edit Data: Not able to remove filter SQL condition

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch]: RM #3607 Edit Data: Not able to remove filter SQL condition
Date: 2018-09-12 09:03:49
Message-ID: CANxoLDezjSyBF4pL5Tpm-uNuE7+jMPgQZEvu+6X65KjboF+o9w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Tue, Sep 11, 2018 at 7:10 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Hi
>
> On Tue, Sep 11, 2018 at 10:12 AM, Akshay Joshi <
> akshay(dot)joshi(at)enterprisedb(dot)com> wrote:
>
>> Hi Hackers,
>>
>> Attached is the patch to fix the following for filter dialog:
>>
>> - OK button should be disabled for Filter dialog when filter string
>> is empty. Filter dialog should be opened using context menu View Data
>> -> Filtered Rows or shortcut toolbar.
>> - On validation error dialog should not be closed.
>> - User should be able to clear the filter string from the Query Tool.
>> - Validation error should be thrown when filter dialog opened from
>> Query Tool and provide some wrong filter string.
>>
>> Please review it.
>>
>
> This works better now, but I think there are still some related issues. If
> I clear the filter, then the filter/sort button stays blue in this mode;
> and that is because we sort by default.
>
> However; when we open in first/last/view modes, we also sort by default,
> but *don't* colour the button.
>
> I think that the button should always be blue if there is sorting and/or
> filtering in place, and that the standard "View" option should *not* sort
> at all by default.
>
> Make sense?
>

Attached is the modified patch where I have added following:

- When user click on View Data -> All Row, data will not sorted by
default, when filter dialog opens from query tool it won't show anything
(empty dialog).
- When user click on View Data -> All Row, and later change the limit
then data will be sorted based on primary keys.
- When user click on View Data -> First/Last 100 rows then it will be
sorted on primary keys and when filter dialog opens from query tool then it
shows the sorting columns.

Please review it.

>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

--
*Akshay Joshi*

*Sr. Software Architect *

*Phone: +91 20-3058-9517Mobile: +91 976-788-8246*

Attachment Content-Type Size
RM_3607_v2.patch application/octet-stream 13.0 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2018-09-12 13:01:04 Re: [pgAdmin4][Patch]: RM #3607 Edit Data: Not able to remove filter SQL condition
Previous Message Akshay Joshi 2018-09-12 05:32:06 pgAdmin 4 commit: Fixed issue where wrong menu id passed when click on