From: | Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com> |
---|---|
To: | Sarah McAlear <smcalear(at)pivotal(dot)io> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [question] |
Date: | 2017-04-12 13:33:36 |
Message-ID: | CAKKotZRW4hX3RNQnkH58GWLGcooTpo7r1ZkU4NG3cB4M1W4K-g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi Sarah,
Each number represent mapping of id for the node.
For example in your case,
/browser/<node>/children/<server-group-id>/<server-id>
/browser/server/children/1/3
Here <node> is the type of object (eg: server-group, server, database,
table etc) and <server-id> will be the column 'id' of server
table(pgadmin4.db), I guess you have multiple entries of a same server with
different name in sqltite database.
/browser/<node>/children/<server-group-id>/<server-id>/<database-id>
/browser/database/children/1/1/12641
Here <database-id> is OID of connected database.
We follow this same URL object mapping almost everywhere in pgAdmin4.
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
On Wed, Apr 12, 2017 at 3:39 AM, Sarah McAlear <smcalear(at)pivotal(dot)io> wrote:
> Hello Hackers,
>
> We are working with the tree and are looking into the paths that are used
> to get tree data from the Python backend. We noticed that the path has a
> component that has to be numeric, but it appears that what this number is,
> is irrelevant. Here's an example:
>
> /browser/server/children/1/3
>
> So in this case, the '1' seems to be required and appears to represent the
> server-group, but we're not sure. It appears that the response is the same
> no matter what number is passed in. Is there any behavior in the
> application that depends on that number?
>
> Thanks,
> Sarah & George
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sarah McAlear | 2017-04-12 13:37:48 | Re: [patch] Move to Alembic migration system |
Previous Message | Surinder Kumar | 2017-04-12 12:52:36 | Re: [pgAdmin4][Patch]: RM#2333 - Server Activity data is not updating when server is disconnected in Dashboards |