Re: Patch for setting preferences with user id

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Usman Muzaffar <usman(dot)muzaffar(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Patch for setting preferences with user id
Date: 2018-10-08 10:48:41
Message-ID: CA+OCxowy0pSqdMMunom58JF+dUZyZ7+9ZZw3YbSMPa9MrBrfhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi
On Mon, Oct 8, 2018 at 9:08 AM Usman Muzaffar <
usman(dot)muzaffar(at)enterprisedb(dot)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.

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

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

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Khushboo Vashi 2018-10-08 11:49:49 Re: [pgAdmin4][Patch]: RM #1513 - Unable to do max selection to drop tables/sequences/functions
Previous Message Dave Page 2018-10-08 10:43:22 Re: [pgAdmin4][RM3660] Rename 'SQL Editor' into 'Query Tool' in Preferences