public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sarah McAlear <[email protected]>
To: Murtuza Zabuawala <[email protected]>
To: Ashesh Vashi <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Cc: Matthew Kleiman <[email protected]>
Subject: Re: [pgAdmin4][PATCH] SlickGrid column resize triggers column select
Date: Fri, 5 May 2017 11:25:22 -0400
Message-ID: <CAGRPzo-Pfn7GR1Pz1Aj4ue2biVgkZqA9+EZGBfxNUJ6-jW=hAw@mail.gmail.com> (raw)
In-Reply-To: <CAKKotZRr9gmtsw8yitx2B-QQUXRn2MeKGix4XpCMGnoDkVF=tw@mail.gmail.com>
References: <CAKKotZRr9gmtsw8yitx2B-QQUXRn2MeKGix4XpCMGnoDkVF=tw@mail.gmail.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Hi Murtuza and Ashesh!

We are currently working on a number of features related to the query
results grid. Some of the changes we are working on is that the checkboxes
are going away. The implementation of this patch will have to change based
on this. We noticed that 5 Javascript Tests are failing, in part because
this patch introduces a new bug with the selection of rows.

Replication steps:
- select a column
- select a row

Now notice that the checkbox for the column is still checked, even though
the column's cells are no longer selected.

One of the tests that was failing was covering this behavior. Unfortunately
there was a typo in the naming of the test (it originally was called
"ColumnSelector selecting columns when a row is selected deselects the row"
but should have been called "ColumnSelector selecting columns when a row is
selected deselects the *column*"), but we have copied it with the correct
naming below:

describe("when a row is selected", function () {
  beforeEach(function () {
    var selectedRanges = [new Slick.Range(0, 0, 0, 1)];
    rowSelectionModel.setSelectedRanges(selectedRanges);
  });

  it("deselects the column", function () {
    container.find('.slick-header-column')[1].click();
    var selectedRanges = rowSelectionModel.getSelectedRanges();

    expect(selectedRanges.length).toBe(1);

    var column = selectedRanges[0];

    expect(column.fromCell).toBe(1);
    expect(column.toCell).toBe(1);
    expect(column.fromRow).toBe(0);
    expect(column.toRow).toBe(9);
  })
});



Since we are finishing up this feature anyway, if this bug can wait another
week, we can take it into our backlog and address it and submit the fix
with our next patch.


Thanks!
Matt & Sarah

On Fri, May 5, 2017 at 5:54 AM, Murtuza Zabuawala <
[email protected]> wrote:

> Hi,
>
> PFA patch to fix the issue where in SlickGrid column resize also triggers
> 'onHeaderClick' event and triggers column selection, In this
> scenario before drag event which column is under mouse gets selected, So to
> fix the issue we will check if header checkbox is clicked.
> RM#2348
>
> Please review.
>
> --
> Regards,
> Murtuza Zabuawala
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
>


view thread (3+ 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], [email protected]
  Subject: Re: [pgAdmin4][PATCH] SlickGrid column resize triggers column select
  In-Reply-To: <CAGRPzo-Pfn7GR1Pz1Aj4ue2biVgkZqA9+EZGBfxNUJ6-jW=hAw@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