Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVnVf-001NZ1-Uc for pgadmin-hackers@arkaria.postgresql.org; Fri, 02 Feb 2024 06:58:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rVnVe-00AfzO-AW for pgadmin-hackers@arkaria.postgresql.org; Fri, 02 Feb 2024 06:58:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVnVe-00AfzC-3K for pgadmin-hackers@lists.postgresql.org; Fri, 02 Feb 2024 06:58:46 +0000 Received: from out-25.smtp.github.com ([192.30.252.208]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVnVX-004ef2-AN for pgadmin-hackers@lists.postgresql.org; Fri, 02 Feb 2024 06:58:44 +0000 Received: from github.com (hubbernetes-node-187b55c.ash1-iad.github.net [10.56.211.79]) by smtp.github.com (Postfix) with ESMTPA id 45289340FC2 for ; Thu, 1 Feb 2024 22:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1706857118; bh=d9MgFpwE1B4pTzmYuNbGTam8pqObyr7vVCu/gBBSRRM=; h=Date:From:To:Subject:From; b=axCCFdwcLuymCSeiNAEZfYPJjKQpcn8aCz0AcqLoM1fC25aEI6Sn1O+4DVhN58U1b ZdSxCUuIRTeB+Qxg7wYOhmCSM9JQunpxFNrHzksJ0266LxIgzkmSDov6LNiPdx3/E3 jD7oIb4fqmvdqpnjZnSN98mXeV0Zip2er+PfLQJ8= Date: Thu, 01 Feb 2024 22:58:38 -0800 From: Pravesh Sharma To: pgadmin-hackers@lists.postgresql.org Message-ID: Subject: [pgadmin-org/pgadmin4] f7045b: Fixed an issue where format sql was messing up ope... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: pgadmin-hackers@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgadmin-org/pgadmin4 Commit: f7045b58d4d1b98b6a2f035267d2dd01c7235aa6 https://github.com/pgadmin-org/pgadmin4/commit/f7045b58d4d1b98b6a2f035267d2dd01c7235aa6 Author: Pravesh Sharma Date: 2024-02-02 (Fri, 02 Feb 2024) Changed paths: M docs/en_US/images/preferences_sql_formatting.png M docs/en_US/preferences.rst M web/package.json M web/pgadmin/misc/__init__.py R web/pgadmin/misc/sql/__init__.py M web/pgadmin/tools/sqleditor/static/js/components/sections/Query.jsx M web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py M web/yarn.lock Log Message: ----------- Fixed an issue where format sql was messing up operator. #5083 - The formatting is done on client side now using sql-formattor JS lib. Backend API based formatting is removed. - Added new options data type case, expression width, function case, lines between queries, logical operator new line and new line before semicolon available in the new lib. - Removed old options comma-first notations, re-indent aligned, re-indent, strip comments and wrap after N characters as not available in the new library. - Capitalise casing is replaced with Preserve casing as it is not supported by the new library. - Also fixes #6785, #6990, #7115.