Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDKGh-0004dq-L1 for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Sep 2020 04:21:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDKGf-0005NZ-CT for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Sep 2020 04:21:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDKGe-0005NS-LX for pgadmin-hackers@lists.postgresql.org; Wed, 02 Sep 2020 04:21:05 +0000 Received: from sonic311-15.consmr.mail.bf2.yahoo.com ([74.6.131.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kDKGW-0005X3-6y for pgadmin-hackers@lists.postgresql.org; Wed, 02 Sep 2020 04:21:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1599020453; bh=3nUKSVKautb7FFnWUhQqxOVeoynUZoqn5BStLOZrNfs=; h=Date:From:To:Subject:References:From:Subject; b=rixJIiEIjCUqJz6udwX8dmuyfLUSLGzA7M6VWzl60Fjah1mF2qXry4XuA5EJKj9pyUbuymJ7uh83kxZsZcoEv5tQK6oTmIXOfLKbDd03EfBGl7jhnaRCymRUwsQXG3PGy6VvnzAz2n495R0EYNgU21PH8ZlN/BHiF6PTlvUaxxeWsMR/x494IM6oC3twumqoM9aGzLLYw1zCA3izLR+ftt1/xR6EnQg98dOZ8rhWIUCra2upFPovsI7Soj8UzEp2j5SLb5vivir3W4607xEzbNz5gzew/6vc1r9Iciw4yq4WMpSIHsAHA/R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Ifn1mOPnK4D0jd0Vxb PqE4_Fk2KBxC5XV8BgBI0o0l4UTQ6Z51qukJvrS7ndapZ4E.7a_Dv7_WnQ7ltLzuF_Ih3G1OKo4k QjpXJ5thxfYj6o4gchTaerxFPtqz1Glc3vaemdDZdI.vlMf2hJkeRl8os5EdkkzNND2aX20Eo3gz dPpH844Qd1atSXqoYtijFyD.FrXkOg671c7vb0QtNrK_Ghe_NjdXDkFmYDeYilZdiBhDurtLI0Hn JuVmmLYOJa7I3CaXEdV4TSWSQ2lhCjt2dZjCQ7kSI2h68xkulxM2n5laUSjb9WqoWpUe_mxTj1F5 dqMoNY4tko2xssRjWIwjlQCzSz2T_OXQZBVo2E.M9TU1CEldhRe5XVW.74afvIMsRK66oXoorhQm 8eCKyijFzR4ImQh_9TpsdsrPdcGRaNl42FK2bufwFyJSDmmRs6oFNBXyPfXj5CsLvsFZm Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Wed, 2 Sep 2020 04:20:53 +0000 Date: Wed, 2 Sep 2020 04:20:46 +0000 (UTC) From: Warren Chan To: "pgadmin-hackers@lists.postgresql.org" Message-ID: <1872014587.1397537.1599020446172@mail.yahoo.com> Subject: pgAdmin4 - help adding new node to Browser Tree MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1397536_434113518.1599020446171" References: <1872014587.1397537.1599020446172.ref@mail.yahoo.com> X-Mailer: WebService/1.1.16565 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0 Content-Length: 6067 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1397536_434113518.1599020446171 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I'm trying to learn about the pgAdmin4 project and am hoping to make some contributions sometime in the future. I'm new to Flask and python but am keen to learn. While trying to familiarize myself with the application and the way it works, I've tried to create a 'test' node under the schema node, I want to list test items under this node - not listing anything particular at the moment but wanted to get an understanding of how the application ties together). In order to just get a new node added under schema, I've copied the sequence folder under \web\pgadmin\browser\server_groups\servers\databases\schemas and renamed the applicable folders to tests (I want a test node to appear under schema). I've updated the \tests\_init_.py file so that the SequenceModule has been changed to TestModule (updated the NODE_TYPE etc). I've also updated the SequenceView to become TestView and other parts of the view like the template path etc. In addition to this I've changed the name in the \tests\static\js\sequence.js file to \tests\static\js\test.js and have also updated the test.js file so that any references to sequence has been changed to test and have added 'pgadmin.node.tests' to the webpack.config.js and 'pgadmin.node.test': path.join(__dirname, './pgadmin/browser/server_groups/servers/databases/schemas/tests/static/js/test') to the webpack.shim.js file Doing this I was hoping that a new 'Test' node would appear under the schema directory and opening this node, would render all the sequences (as I haven't changed any of the sql). However I only get the new 'Test' node being rendered, and when I open this, I get a Server Node with the server I'm connected to being added, not the list of sequences I was hoping for. Is there an additional setting / steps I need to add somewhere in order to get the TestView to render under the TestModule node? I'd appreciate any pointers to get this working as the next thing I'd like, would be to start modifying the sql and getting different database objects being listed. Best regards,Warren Chan ------=_Part_1397536_434113518.1599020446171 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I'm trying to learn about the pgAdmin4= project and am hoping to make some contributions sometime in the future.

I'm new to Flask and python= but am keen to learn.

Whi= le trying to familiarize myself with the application and the way it works, = I've tried to create a 'test' node under the schema node, I want to list te= st items under this node - not listing anything particular at the moment bu= t wanted to get an understanding of how the application ties together). In = order to just get a new node added under schema, I've copied the sequ= ence folder under=20 \web\pgadmin\browser\server_groups\servers\databases\schemas and=20 renamed the applicable folders to tests (I want a test node to appear under= schema).

I've updated the \tests\_init_.py file so that the SequenceModule= has been changed to TestModule (updated the NODE_TYPE etc). I've also upda= ted the SequenceView to become TestView and other parts of the view like th= e template path etc.

In addition to this I've changed the name in the = \tests\static\js\sequence.js file to \tests\static\js\test.js a= nd have also updated the test.js file so that any references to sequence ha= s been changed to test and have added 'pgadmin.node.tests' to the webpack.c= onfig.js and 'pgadmin.node.test': path.join(__dirname, './pgadmin/bro= wser/server_groups/servers/databases/schemas/tests/static/js/test') to the = webpack.shim.js file

= Doing this I was hoping that a new 'Test' node woul= d appear under the schema directory and opening this node, would render all= the sequences (as I haven't changed any of the sql). However I only get th= e new 'Test' node being rendered, and when I open this, I get a Server Node= with the server I'm connected to being added, not the list of sequences I = was hoping for.

Is there an additional settin= g / steps I need to add somewhere in order to get the TestView to render un= der the TestModule node?

I'd appreciate any pointers to get this wo= rking as the next thing I'd like, would be to start modifying the sql and g= etting different database objects being listed.=

Be= st regards,
<= span>Warren Chan


------=_Part_1397536_434113518.1599020446171--