public inbox for [email protected]
help / color / mirror / Atom feedFrom: Aditya Toshniwal <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM6239] Explain plan and geometry viewer is not working
Date: Fri, 19 Feb 2021 14:04:49 +0530
Message-ID: <CAM9w-_=vWmw-MNyz8sJcO5DrD6Ye0tGakhenhCtTdxyWzNsPpw@mail.gmail.com> (raw)
Hi Hackers,
Attached patch fixes explain plan and geometry viewer issues.
Please review.
--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
<http://edbpostgres.com;
"Don't Complain about Heat, Plant a TREE"
Attachments:
[application/octet-stream] RM6239.patch (1.6K, 3-RM6239.patch)
download | inline diff:
diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
index d9ffd27ca..85d5956ef 100644
--- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
@@ -6,9 +6,10 @@
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
-/* This is used to change publicPath of webpack at runtime for loading chunks */
/* eslint-disable */
-let __webpack_public_path__ = window.resourceBasePath;
+/* This is used to change publicPath of webpack at runtime for loading chunks */
+/* Do not add let, var, const to this variable */
+__webpack_public_path__ = window.resourceBasePath;
/* eslint-enable */
import {launchDataGrid} from 'tools/datagrid/static/js/show_query_tool';
diff --git a/web/webpack.config.js b/web/webpack.config.js
index 642b508cb..e81ffc01a 100644
--- a/web/webpack.config.js
+++ b/web/webpack.config.js
@@ -47,6 +47,8 @@ const providePlugin = new webpack.ProvidePlugin({
pgAdmin: 'pgadmin',
'moment': 'moment',
'window.moment':'moment',
+ process: 'process/browser',
+ Buffer: ['buffer', 'Buffer'],
});
// Helps in debugging each single file, it extracts the module files
@@ -534,11 +536,6 @@ module.exports = [{
],
},
},
- }, {
- test: require.resolve('snapsvg'),
- use: {
- loader: 'imports-loader?this=>window,fix=>module.exports=0',
- },
}].concat(themeCssRules('standard')),
// Prevent module from parsing through webpack, helps in reducing build time
noParse: [/moment.js/],
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin][RM6239] Explain plan and geometry viewer is not working
In-Reply-To: <CAM9w-_=vWmw-MNyz8sJcO5DrD6Ye0tGakhenhCtTdxyWzNsPpw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox