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 1gegLh-0007wp-2a for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 13:14:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gegLf-00084T-9P for pgadmin-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 13:14:15 +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 1gegLe-00084M-SY for pgadmin-hackers@lists.postgresql.org; Wed, 02 Jan 2019 13:14:15 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gegLa-00035D-Po for pgadmin-hackers@postgresql.org; Wed, 02 Jan 2019 13:14:13 +0000 Received: by mail-wr1-x441.google.com with SMTP id l9so30400349wrt.13 for ; Wed, 02 Jan 2019 05:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=0Cg/JJaTwfL0hqfl14a3a1Sschvz1pSqW8eKXtzb6k8=; b=JKbTH7TEqw3nfUM9UTkx64oprlnUzf3QZHj0yTT5cK5e+Y6aDJyHNHSOiIEgf2YuZC EoridepdFmRoHFMhGKZ26jDHF+sXDCHU2Vy4lkeCxOjkXokM8snshwoOkChiYOy/0g3O QtmM6t+13Udtcl7mibUwr0ZhYjhoWAPzzCVYOU4fIS3cjxT55XssaAU6XIfg+DeD0HvZ u3k7gPhon0p+zBA+wVc21rwGaW9bZZxPU23rDvK9Tg5/WCMEpYR+XtIpJ0zay3Iyksj+ de/ESSFIaozhAD8r+yk/cN7rP9dkFwctts0Pw5Dp9/92oPL9I6GXhe7zpoY6LwCYBwVa dplg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=0Cg/JJaTwfL0hqfl14a3a1Sschvz1pSqW8eKXtzb6k8=; b=SslCP5SeoqFW4R2qJu8YNItY9BxPTW3QSMj6QUafxbZgHxGGejHfRyW6KkYhXeduy7 ZFi0hli/Ha92h8G/Svwui5bwuvYayikrf/WTMO7HvykN6bNh/7xsECEvZR2q9vbIgkDt 3FldSVOJGYiWQtSy4m1kg51k0pxYnOzmRBDPUZMLPrDBPGCGYMfDgexryp4S0TWdlGAc HD3vTY2X0Br6WyIVeMLO40NSkkMEQ2LqlXznWDHU2yw4kc0/rq7p5DfqPAihB7OJRmm+ f0AtuWzqI1fe1N+Wb9cLGlu7KccLMMtS9/noFwX7zM6H0CZuGXUVI22QbBpiWU2m1QaZ ZUJQ== X-Gm-Message-State: AJcUukfRRu2/FFFW7iu/8UHV1Kap63P/3YvlvmNBsHN9WOiU8Na2qvv8 9Fsku75SzWLilGT1BnvoxaQX9JU4ylZ2sWFr/UWKlQ== X-Google-Smtp-Source: ALg8bN6Sw4iS4oFPFyiApUaJtrB5tLUxDSPmsGlRRx/gvIOkCdfU/7074RQrlnzLqZ2ic+WELBeEUYMSW/scuWZgDpk= X-Received: by 2002:adf:8264:: with SMTP id 91mr36748066wrb.312.1546434849068; Wed, 02 Jan 2019 05:14:09 -0800 (PST) MIME-Version: 1.0 From: Dave Page Date: Wed, 2 Jan 2019 13:13:57 +0000 Message-ID: Subject: Packagers: Handling upgrade checks To: =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= , Christoph Berg , Sandeep Thakkar Cc: pgadmin-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Packagers, As you probably know, pgAdmin 4 checks for updates upon startup, and if a newer version is available, directs the user to www.pgadmin.org to download it. The is a problem if your pgAdmin came with a PostgreSQL installer (as you can't download them from our website), and potentially mildly annoying if you're a .deb or .rpm user. There are a couple of ways to optimise the experience for users here (one of which I just committed). I'll leave it up to each of you to choose what you want to do (Sandeep, I would suggest that the EDB installers use method 2). Method 1: Simply disable the upgrade check, and leave that to the operating systems update tools. To do this, create (or edit) a config_distro.py file that is installed alongside the config.py file from the pgAdmin source and include the line; UPGRADE_CHECK_ENABLED = False Method 2: For well known and trusted distributions we can support a custom check for your distribution. This involves 2 parts: 1) Let me know that you want a custom check, and I'll setup access for you to manage the version data on the pgAdmin website. We'll agree on a custom key for that data within the JSON file the website hosts. 2) Create (or edit) a config_distro.py file that is installed alongside the config.py file from the pgAdmin source and include the line; UPGRADE_CHECK_KEY = '' With this method, a different section of the JSON datafile will be checked by your distribution of pgAdmin, thus allowing you to control both when it tells users a new version is available, and the URL to which they are directed. Thanks! -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company