public inbox for [email protected]  
help / color / mirror / Atom feed
From: Surinder Kumar <[email protected]>
To: Dave Page <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: Control for displaying "auto vacuum" fields into grid
Date: Wed, 23 Mar 2016 21:34:31 +0530
Message-ID: <CAM5-9D8=DMS75mhNCpPP3jn6=_JkT=drNkUr9gPRXBs5xLLDBg@mail.gmail.com> (raw)
In-Reply-To: <CA+OCxoyfVBMqgLC7EevtULMg_pGu5voMmfST6k_eZ7rFsy=omg@mail.gmail.com>
References: <CAM5-9D9Nwm2SKkaRpWpMy=95RhKO+qm1O9TvhXE8dmCiUFe1Cw@mail.gmail.com>
	<CA+OCxoyfVBMqgLC7EevtULMg_pGu5voMmfST6k_eZ7rFsy=omg@mail.gmail.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Hi,


On Fri, Mar 18, 2016 at 8:58 PM, Dave Page <[email protected]> wrote:

> On Fri, Mar 18, 2016 at 10:37 AM, Surinder Kumar
> <[email protected]> wrote:
> > Hi,
> >
> > PFA control for displaying auto vacuum fields into grid. This control is
> > common for
> > Materialized View Node and Table Node.
> >
> > Usage:
> >
> > {
> >   id: 'vacuum_table', label: '{{ _("Vacuum Table") }}',
> >   model: VacuumTableModel, editable: false, type: 'collection',
> >   canEdit: true, group: '{{ _("Table") }}',
> >   mode: ['edit', 'create'], url: 'get_vacuum_defaults',
> >   control: Backform.VacuumCollectionControl.extend({
> >     grid_columns :[
> >       {
> >         name: 'label', label: '{{ _("Label") }}',
> >         cell: 'string', editable: false
> >       },
> >       {
> >         name: 'value', label: '{{ _("Value") }}',
> >         cellFunction: cellFunction, editable: function(m) {
> >           if(m.handler.has('autovacuum_enabled')) {
> >             return m.handler.get('autovacuum_enabled');
> >           }
> >           return !m.handler.isNew();
> >         }
> >       },
> >       {
> >         name: 'setting', label: '{{ _("Default value") }}',
> >         cellFunction: cellFunction, editable: false
> >       }
> >     ]
> >   }),
> >
> >
> > When using this control, provide following parameters in schema:
> > 1. model
> > 2. url - to fetch default values for auto vacuum fields.
> > 3. grid columns - Name of the columns to display in the grid.
> >
> >
> > Please review the patch.
>
> It's hard to review this without being able to test. Do you have a
> simple test case?
>

I have submitted patch for materialized view which is using this control.
so you can test it in materialized view.

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


view thread (8+ 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]
  Subject: Re: Control for displaying "auto vacuum" fields into grid
  In-Reply-To: <CAM5-9D8=DMS75mhNCpPP3jn6=_JkT=drNkUr9gPRXBs5xLLDBg@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