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 <smcal...@pivotal.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
>

Reply via email to