Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hayYN-00074d-9E for pgadmin-hackers@arkaria.postgresql.org; Wed, 12 Jun 2019 08:24:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hayYK-0000Q1-E6 for pgadmin-hackers@arkaria.postgresql.org; Wed, 12 Jun 2019 08:24:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hayYJ-0000Pu-Us for pgadmin-hackers@lists.postgresql.org; Wed, 12 Jun 2019 08:24:16 +0000 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hayYE-0004nP-Rt for pgadmin-hackers@postgresql.org; Wed, 12 Jun 2019 08:24:14 +0000 Received: by mail-io1-xd41.google.com with SMTP id i10so12223469iol.13 for ; Wed, 12 Jun 2019 01:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=enJUxhKsaoLKYoFHe047D3aCKDN9xJ4xiDu5bDQ/n/c=; b=NLEf8z14abVqCtt56a8/CNyvTkKLCDQYqb9SmQKdZAFxmv9cyyScAFWktzjK+oDnsB 84In3wC3fFd06T+B4/lNi5EJbRZjDPeG2TsLUiNc0sKSqO+EwIsfqng2gAOaGNii/1JM v+uaXg2dOa+vv0f8NssmqEKxyYKP/aqH2OvBCmHCCvgkvyhPrYA/fAqhKWxqda3R48dk STRYdOs/YxPs9OqX9ZAwI91GI29wxKlyJfBBCPqLvlYZaF88GluxEEbaSesNfgyhZDbY 50tQhFkaB4H+sgZGR8xMjE9B+wsBqk1fO5oGU5ktAQU+pmyG0212lhRY/7VHCr4DeLmo IiDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=enJUxhKsaoLKYoFHe047D3aCKDN9xJ4xiDu5bDQ/n/c=; b=IcDwCoOGhNWCcUeMSI022zaBeEBuAuS31xEJXbtechivgJ7Mm76ksw0efVyYoF5uyS +aI4bzAj+U3El7VWaTnSWUIpo095D3fMuw2c/KSJOqPehnSalEUtGu1r93MX5oxBYjIp vwRRYAScwELcFuEPrTN6ZRNHjJV1LGtzzWPMaLaKErlbgWc2aPdis6PenoPctbb/1gme SX75Gi+9WveJJfWE8oejxXSaTdljI7Az4HVyf2R5mrhCag5PnaDEB8WTt4HsvP8EBQBf O6qE3x8kuUVDQgdVpwACtxdTojada42J9uIXPxHYhd8BzQajmrapqtL3gogIHZ7mbGlw lMQA== X-Gm-Message-State: APjAAAUofq4RGw2sQSvkTphCkQcmN9O21XoEMjdzKaBMoaPM3EgMTuAp wDHj9KCnJyTbr8GbHJykmw8q9fFwA/w6Tx/o95ICeQ== X-Google-Smtp-Source: APXvYqzy3CQNEtfcj4Hb09i08xL73HEFSNawdhbAeewn+Nbs/eJBOSSy2WLPVia9VWjQXgzFFg163ItcHRg4QahNFEU= X-Received: by 2002:a5d:9d83:: with SMTP id 3mr44348421ion.65.1560327849732; Wed, 12 Jun 2019 01:24:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Wed, 12 Jun 2019 09:23:57 +0100 Message-ID: Subject: Re: [pgAdmin][RM3782] Debugger title should show connection and object details To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000378a67058b1c23bf" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000378a67058b1c23bf Content-Type: text/plain; charset="UTF-8" Hi On Wed, Jun 12, 2019 at 7:03 AM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to add more information on connection details to > debugger panel title and content title similar to Query Tool and View/Edit > data. > Adding the object name with arguments is not a good idea for the panel > title, so I have kept to connection details similar to query tool. The > content title will have all the details. > > Kindly review. > I think not having the function name in there is a big limitation. With all this hacking going on, I think what we need to do is stop and make this configurable as has been both requested by users and suggested by us. I propose adding 2 preference options for each tab type. Each of these would be a string with placeholders, one for the tab title, and one for the tab tooltip. For example: - Query Tool * Placeholders: %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST% * Tab title default: %DATABASE% on %SERVER% * Tooltip title default: Query Tool: %DATABASE% on %USERNAME%@%SERVER% - View Data * Placeholders: %TABLE%, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST% * Tab title default: %SCHEMA%.%TABLE% in %DATABASE% on %SERVER% * Tooltip title default: View/Edit Data: %SCHEMA%.%TABLE% in %DATABASE% on %USERNAME%@%SERVER% - Script * Placeholders: %ACTION%, %OBJECT%, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST% * Tab title default: %ACTION% %SCHEMA%.%OBJECT% in %DATABASE% on %SERVER% * Tooltip title default: %ACTION% Script: %SCHEMA%.%OBJECT% in %DATABASE% on %USERNAME%@%SERVER% - Debugger * Placeholders: %FUNCTION_ARGS%, %FUNCTION_NOARGS%, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST% * Tab title default: %FUNCTION_NOARGS%.%OBJECT% in %DATABASE% on %SERVER% * Tooltip title default: Debugger: %SCHEMA%.%FUNCTION_ARGS% in %DATABASE% on %USERNAME%@%SERVER% Or something like that. Thoughts? -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --000000000000378a67058b1c23bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Wed, Jun 12, 2019 at 7:03 AM Aditya Toshniwal &l= t;aditya.toshniwal@ent= erprisedb.com> wrote:
Hi Hackers,

<= div style=3D"font-family:verdana,sans-serif">Attached is the patch to add m= ore information on connection details to debugger panel title and content t= itle similar to Query Tool and View/Edit data.
Adding the object name with arguments is not a good= =C2=A0idea for the panel title, so I have kept to connection details simila= r to query tool. The content title will have all the details.
Kindly review.

I think not having th= e function name in there is a big limitation.

With= all this hacking going on, I think what we need to do is stop and make thi= s configurable as has been both requested by users and suggested by us.

I propose adding 2 preference options for each tab ty= pe. Each of these would be a string with placeholders, one for the tab titl= e, and one for the tab tooltip. For example:

- Que= ry Tool
=C2=A0 * Placeholders: %DATABASE%, %SERVER%, %USERNAME%, = %PORT%, %HOST%
=C2=A0 * Tab title default: %DATABASE% on %SERVER%=
=C2=A0 * Tooltip title default: Query Tool: %DATABASE% on %USERN= AME%@%SERVER%

- View Data
=C2=A0 * = Placeholders: %TABLE%, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, = %HOST%
=C2=A0 * Tab title default: %SCHEMA%.%TABLE% in %DATABASE%= on %SERVER%
=C2=A0 * Tooltip title default: View/Edit Data: %SCH= EMA%.%TABLE% in=C2=A0%DATABASE% on %USERNAME%@%SERVER%

=
- Script
=C2=A0 * Placeholders: %ACTION%, %OBJECT= %, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST%
=C2= =A0 * Tab title default: %ACTION% %SCHEMA%.%OBJECT% in %DATABASE% on %SERVE= R%
=C2=A0 * Tooltip title default: %ACTION% Script: %SCHEMA%.%OBJ= ECT% in=C2=A0%DATABASE% on %USERNAME%@%SERVER%

- Debugger
=C2=A0 * Placeholders: %FUNCTION_ARGS%, %FUNCT= ION_NOARGS%, %SCHEMA%, %DATABASE%, %SERVER%, %USERNAME%, %PORT%, %HOST%
=C2=A0 * Tab title default: %FUNCTION_NOARGS%.%OBJECT% in %DATABASE%= on %SERVER%
=C2=A0 * Tooltip title default: Debugger: %SCHEMA%.%= FUNCTION_ARGS% in=C2=A0%DATABASE% on %USERNAME%@%SERVER%
Or something like that. Thoughts?

--
<= div dir=3D"ltr" class=3D"gmail_signature">Dave Page
Blog: http://pgsnake.blogspot.com=
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterpr= ise PostgreSQL Company
--000000000000378a67058b1c23bf--