Re: Patch for setting preferences with user id - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Patch for setting preferences with user id
Date
Msg-id CA+OCxoysu-TLa43aEzOQEDnfDwoHo0t+ZXeziN5SpB2i9t0JQQ@mail.gmail.com
Whole thread Raw
In response to Re: Patch for setting preferences with user id  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
List pgadmin-hackers


On Mon, Oct 8, 2018 at 12:55 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, Oct 8, 2018 at 4:18 PM Dave Page <dpage@pgadmin.org> wrote:
Hi
On Mon, Oct 8, 2018 at 9:08 AM Usman Muzaffar <usman.muzaffar@enterprisedb.com> wrote:
Hi Hackers,

Please find here attached patch for following

"modified the function test_utils/set_preference to accommodate user_id."

It will help setting preferences in case user_id is other than 1(depending on the user which has been logged in).

How would that ever happen? When running the tests, we initialise a new settings database, so we're guaranteed that the user ID will be 1. If it isn't, something is wrong. 

This is true for pgAdmin but not for PEM. 

And this is the pgAdmin project, not PEM :-)

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-hackers by date:

Previous
From: Khushboo Vashi
Date:
Subject: Re: Patch for setting preferences with user id
Next
From: Ashesh Vashi
Date:
Subject: Re: Patch for setting preferences with user id