Re: [pgadmin4][Patch]: Display Functions node for GreenPlum database - Mailing list pgadmin-hackers

From Joao De Almeida Pereira
Subject Re: [pgadmin4][Patch]: Display Functions node for GreenPlum database
Date
Msg-id CAE+jjancAAxeGuWrfRinWUvQEvGUoUE-JZOF15pCSGbnzBB67A@mail.gmail.com
Whole thread Raw
In response to Re: [pgadmin4][Patch]: Display Functions node for GreenPlum database  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Responses Re: [pgadmin4][Patch]: Display Functions node for GreenPlum database
List pgadmin-hackers
Hello,
I changed that function to make the retrieval quicker because the return type of all the types in the database for GreenPlum can be quite big.

Nevertheless the "Data Types" in the front end do not get filled up with the values.

Where is the Javascript code that does the mapping between the call of get_types and that table in the screenshot?

Thanks
Joao


On Fri, Jan 12, 2018 at 12:37 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi Joao,

We have written common function 'def get_types(...)' in a class called 'DataTypeReader' to fetch datatypes in a file '../pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/utils.py' and we have inherited from DataTypeReader in Function module's 'FunctionView' class to use it check line no. 120

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


On Thu, Jan 11, 2018 at 9:31 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hello Hackers,
We had some requests from GreenPlum users to display the functions node again.
This patch reintroduces functions as a node underneath the Schemas.


Unfortunately this patch is not final because I could not find the place where the Data Type is populated from. (See next image)Inline image 1

Can anyone explain me how these types get populated?



Thanks
Joao


Attachment

pgadmin-hackers by date:

Previous
From: Murtuza Zabuawala
Date:
Subject: Re: [pgAdmin4][Patch]: Adding connection status in Query tool
Next
From: Murtuza Zabuawala
Date:
Subject: Re: [pgadmin4][Patch]: Display Functions node for GreenPlum database