Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree

Поиск
Список
Период
Сортировка
Искать
От
Ashesh Vashi
Тема
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree
Дата
в 09:31:53
Msg-id
CAG7mmowkNtkoLGQFeWAH-TSOi+QWbHT2-RbMmjRDAMAxMufmeg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Akshay Joshi <akshay.joshi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Robert Eckhardt <reckhardt@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Victoria Henry <vhenry@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Victoria Henry <vhenry@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Victoria Henry <vhenry@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Victoria Henry <vhenry@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Dave Page <dpage@pgadmin.org>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Anthony Emengo <aemengo@pivotal.io>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>
On Thu, May 10, 2018 at 8:08 PM, Anthony Emengo <aemengo@pivotal.io> wrote:

1. In TreeNode, we're keepging the reference of DOMElement, do we really need it?

As of right now, our Tree abstraction acts as an adapter to the aciTree library. The aciTree library needs the domElement for most of its functions (setInode, unload, etc). Thus this is the easiest way to introduce our abstraction and keep the functionality as before - at least until we decide that whether we want to switch out the library or not.

I understand that. But - I've not seen any reference of domElement the code yet, hence - pointed that out. 

2. Are you expecting the tree class to be a singleton class

Since this tree is referenced throughout the codebase, considering it to be a singleton seems like the most appropriate pattern for this usecase. It is very much the same way how we create a single instance of the aciTree library and use that throughout the codebase. Moreover, it opens up opportunities to improve performance, for example caching lockups of nodes. I’m not a fan of singletons myself, but I feel like we’re simply keeping the architecture the same in the instance.

Yeah - I don't see any usage of tree object from anywhere.
And, we're already creating new object in browser.js (and, not utitlizing that instance anywhere.)

-- Thanks, Ashesh

Sincerely,

Anthony and Victoria

В списке pgadmin-hackers по дате отправления
От: Aditya Toshniwal
Дата:
Сообщение: Re: JS Test error on Windows
От: Dave Page
Дата:
FAQ