Re: node.js: "getView:generate_url" has explicit with_id=false

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Radoslaw Garbacz <radoslaw(dot)garbacz(at)xtremedatainc(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: node.js: "getView:generate_url" has explicit with_id=false
Date: 2020-02-11 05:18:58
Message-ID: CAFOhELdT+Jp5RKtMg1UwNXheXhUEWSQsXicMUqbcj9=phfDH9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

On Mon, Feb 10, 2020 at 11:13 PM Radoslaw Garbacz <
radoslaw(dot)garbacz(at)xtremedatainc(dot)com> wrote:

> Hi,
>
> I am just getting familiar with the sources.
>
> As the title, when requesting node's properties the call to "generate_url"
> has explicit "with_id=false" (node.js line 287 in "getView" function),
> which results in the generated url not to have this node's ID (just it's
> parent).
>
> What is the purpose of 'properties' on a node request, shouldn't it have
> its ID?
>
ID is required to fetch the properties of any object.
In this particular scenario, we have set the urlRoot property of the
backbone model, so when we fetch the data, backbone will append the id to
the urlRoot if it's available in the model.

Ref: https://backbonejs.org/#Model-urlRoot

Thanks,
Khushboo

> Would greatly appreciate some details regarding this issue.
>
> --
> Best Regards,
>
> Radoslaw Garbacz
> XtremeData Incorporated
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2020-02-11 05:22:58 Re: node.js: "getView:generate_url" has explicit with_id=false
Previous Message Radoslaw Garbacz 2020-02-10 17:43:31 node.js: "getView:generate_url" has explicit with_id=false