Обсуждение: [pgAdmin4][Patch]: RM1570 - Cannot select template databases when creating a database

Поиск
Список
Период
Сортировка

[pgAdmin4][Patch]: RM1570 - Cannot select template databases when creating a database

От
Surinder Kumar
Дата:
Hi

Issue:
We are using 'node-list-by-name' control to get list of db nodes using database 'nodes' method which filters out names based on 'show system objects' value.

Solution:
Override node-list-by-name transform method and define a new method 'get_databases' which fetches all nodes including template nodes.

Please find attached patch and review.

Thanks,
Surinder Kumar
Вложения

Re: [pgAdmin4][Patch]: RM1570 - Cannot select template databases when creating a database

От
Dave Page
Дата:
Thanks, applied.

On Fri, Aug 19, 2016 at 3:17 PM, Surinder Kumar
<surinder.kumar@enterprisedb.com> wrote:
> Hi
>
> Issue:
> We are using 'node-list-by-name' control to get list of db nodes using
> database 'nodes' method which filters out names based on 'show system
> objects' value.
>
> Solution:
> Override node-list-by-name transform method and define a new method
> 'get_databases' which fetches all nodes including template nodes.
>
> Please find attached patch and review.
>
> Thanks,
> Surinder Kumar
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company