Re: Feature test regression failures

From: Atira Odhner <aodhner(at)pivotal(dot)io>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Joao Pedro De Almeida Pereira <jpereira(at)pivotal(dot)io>, Matthew Kleiman <mkleiman(at)pivotal(dot)io>
Subject: Re: Feature test regression failures
Date: 2017-03-27 16:05:48
Message-ID: CA+Vc24oW85E8BJg+X6UgrvnAN6E3JKfudfNcUwLCy_VZweo52A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

>
> A change as large as moving to React will be for v2.x, not v1.x, so we
> cannot really wait unless we want to write off the feature tests as
> unusable for the forseeable future.

I don't think we should wait on moving the entire codebase to react before
releasing features that use it. React allows us to implement things
piecemeal so for example we can implement this tree in react and ship that
as a fully functional user-facing change. Over time we can introduce more
components in react while still having a working product.

I'm tinkering with ideas for optimising the code we ship to users in
> my spare time. This isn't something I'm prioritising. If you're
> working on similar ideas, please do share.

The best practice for using React is to use a preprocessing pipeline so
we'll definitely share that as we get it set up. We will definitely be
doing minification and bundling code into a single file.

Tira & Matt

On Mon, Mar 27, 2017 at 11:52 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> On Mon, Mar 27, 2017 at 11:47 AM, Atira Odhner <aodhner(at)pivotal(dot)io> wrote:
> >>
> >> Tira's various patches all seem to be flakey :-(:
> >
> >
> > Yes, that's because the way it was working before was to arbitrarily
> wait a
> > full second. My intent with the patches was not to apply them to the
> code,
> > but to demonstrate that the issue was not related to time spent loading
> js
> > files through require.
> >
> > George and Sarah did a little poking around using aciTree and it seemed
> like
> > the issue was related to pgadmin code not aciTree code.
> > Since we are working on re-doing much of the tree in React, it seems
> like it
> > might make sense to wait on that for trying to solve this issue.
>
> A change as large as moving to React will be for v2.x, not v1.x, so we
> cannot really wait unless we want to write off the feature tests as
> unusable for the forseeable future.
>
> >> I also wonder if this would tie in with some of the code optimisation
> work
> >> I've been tinkering with. I've been looking at having a build step for
> >> packages that creates minimised versions of HTML/CSS/JS files, and
> >> automatically using those if DEBUG == False and they are present,
> falling
> >> back to un-minimised if required. I do wonder if as part of that
> >> minimisation, we could actually combine all these files together, and
> load
> >> everything in one go, saving not just bandwidth but round trips as well.
> >
> >
> > Oh, you're working on a build step! Cool! We should probably coordinate
> > since we are also adding a build step in order to bring in React. We are
> > pulling in Grunt and either browserify or webpack.
>
> I'm tinkering with ideas for optimising the code we ship to users in
> my spare time. This isn't something I'm prioritising. If you're
> working on similar ideas, please do share.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-03-27 16:14:07 Re: Feature test regression failures
Previous Message Dave Page 2017-03-27 15:52:04 Re: Feature test regression failures