Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettext
4. Dialog size is huge. Reduce the dialog size.
5. Mouseover on header should change cursor to "move"
6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.
const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);
()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),
On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Hi Aditya/Akshay,Please find the comments below.On Wed, Dec 22, 2021 at 1:57 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
Done
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
It's removed now.panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettextIt's fixed now.4. Dialog size is huge. Reduce the dialog size.As per discussion on the call, I have reduced the height of the dialog (both for restore & backup)5. Mouseover on header should change cursor to "move"It's fixed now.6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.Fixed for both restore & backup utility.const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);Refactored the code, it's removed now.()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),Have taken care of this.On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
2. Restore icon changes
3. feature tests issues
4. restore help link broken
5. Comment section not visible
6. only data for table - should be yes and disabled
Thanks, the patch applied.On Sun, Dec 26, 2021 at 4:18 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Aditya/Akshay,Please find the comments below.On Wed, Dec 22, 2021 at 1:57 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
Done
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
It's removed now.panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettextIt's fixed now.4. Dialog size is huge. Reduce the dialog size.As per discussion on the call, I have reduced the height of the dialog (both for restore & backup)5. Mouseover on header should change cursor to "move"It's fixed now.6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.Fixed for both restore & backup utility.const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);Refactored the code, it's removed now.()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),Have taken care of this.On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Hi Hackers,Please find the updated patch v3, which includes the fixes of -1. Split the restore options / backup options into 2 tabs
2. Restore icon changes
3. feature tests issues
4. restore help link broken
5. Comment section not visible
6. only data for table - should be yes and disabledOn Tue, Dec 28, 2021 at 1:50 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Thanks, the patch applied.On Sun, Dec 26, 2021 at 4:18 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Aditya/Akshay,Please find the comments below.On Wed, Dec 22, 2021 at 1:57 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
Done
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
It's removed now.panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettextIt's fixed now.4. Dialog size is huge. Reduce the dialog size.As per discussion on the call, I have reduced the height of the dialog (both for restore & backup)5. Mouseover on header should change cursor to "move"It's fixed now.6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.Fixed for both restore & backup utility.const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);Refactored the code, it's removed now.()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),Have taken care of this.On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Hi RahulPatch applied with height and width changes to your patch.Please send an updated documentation patch with updated screenshots and descriptions.On Thu, Jan 6, 2022 at 2:11 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the updated patch v3, which includes the fixes of -1. Split the restore options / backup options into 2 tabs
2. Restore icon changes
3. feature tests issues
4. restore help link broken
5. Comment section not visible
6. only data for table - should be yes and disabledOn Tue, Dec 28, 2021 at 1:50 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Thanks, the patch applied.On Sun, Dec 26, 2021 at 4:18 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Aditya/Akshay,Please find the comments below.On Wed, Dec 22, 2021 at 1:57 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
Done
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
It's removed now.panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettextIt's fixed now.4. Dialog size is huge. Reduce the dialog size.As per discussion on the call, I have reduced the height of the dialog (both for restore & backup)5. Mouseover on header should change cursor to "move"It's fixed now.6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.Fixed for both restore & backup utility.const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);Refactored the code, it's removed now.()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),Have taken care of this.On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246
Re: [patch][pgAdmin] RM7018 [React] Port Restore dialog to React.
Akshay,Please find the updated screenshots and descriptions for below dialogs:1. Restore Dialog2. Backup Dialog3. Backup Server Dialog4. Backup Globals DialogOn Thu, Jan 6, 2022 at 4:49 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi RahulPatch applied with height and width changes to your patch.Please send an updated documentation patch with updated screenshots and descriptions.On Thu, Jan 6, 2022 at 2:11 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the updated patch v3, which includes the fixes of -1. Split the restore options / backup options into 2 tabs
2. Restore icon changes
3. feature tests issues
4. restore help link broken
5. Comment section not visible
6. only data for table - should be yes and disabledOn Tue, Dec 28, 2021 at 1:50 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Thanks, the patch applied.On Sun, Dec 26, 2021 at 4:18 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Aditya/Akshay,Please find the comments below.On Wed, Dec 22, 2021 at 1:57 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:Hi Rahul,Everything looks good except:1. Remove unnecessary whitespaces
adityatoshniwal@LAPTOP381PNIN pgadmin4_copy % git apply ~/Downloads/RM7018.patch
/Users/adityatoshniwal/Downloads/RM7018.patch:14070: trailing whitespace.
constructor(getRestoreSectionSchema, getRestoreTypeObjSchema, getRestoreSaveOptSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15563: trailing whitespace.
import RestoreSchema, {getRestoreSaveOptSchema, getRestoreQueryOptionSchema, getRestoreDisableOptionSchema,
/Users/adityatoshniwal/Downloads/RM7018.patch:15620: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
Done
2. Use lodash, and not underscore.
+ 'sources/gettext', 'sources/url_for', 'underscore', 'pgadmin.browser', 'sources/utils',
It's removed now.panel.title(`Restore (${pgBrowser.Nodes[data._type].label}: ${data.label})`);3. Use gettextIt's fixed now.4. Dialog size is huge. Reduce the dialog size.As per discussion on the call, I have reduced the height of the dialog (both for restore & backup)5. Mouseover on header should change cursor to "move"It's fixed now.6. If I remove the bin path from preferences, the "utility not found" error comes after I click on restore. It should come as soon as I hit the menu. Same problem with backup.Fixed for both restore & backup utility.const selectedNode = pgBrowser.tree.selected();7. In restore.js the below code is repeated. You should get the treeInfo only once the dialog opens.
var selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode);
const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode);Refactored the code, it's removed now.()=>getRestoreQueryOptionSchema({nodeInfo: treeNodeInfo}),8. Minor spacing fixes between arrow and text.
()=> getRestoreDisableOptionSchema({nodeInfo: treeNodeInfo}),
()=> getRestoreMiscellaneousSchema({nodeInfo: treeNodeInfo}),Have taken care of this.On Wed, Dec 22, 2021 at 11:35 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi AdityaCan you please review it?On Tue, Dec 21, 2021 at 4:52 PM Rahul Shirsat <rahul.shirsat@enterprisedb.com> wrote:Hi Hackers,Please find the attached patch, which ports the restore dialog to react.--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Thanks,Aditya ToshniwalpgAdmin Hacker | Software Architect | edbpostgres.com"Don't Complain about Heat, Plant a TREE"--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246--Rahul ShirsatSenior Software Engineer | EnterpriseDB Corporation.