Обсуждение: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

Поиск
Список
Период
Сортировка

[pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Joao De Almeida Pereira
Дата:
Hi Hackers

The attached patch implements the feature #3107 to hide the tablespaces on GreenPlum databases.


Thanks
Joao
Вложения

Re: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Dave Page
Дата:
Hi

On Mon, Feb 12, 2018 at 6:30 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hi Hackers

The attached patch implements the feature #3107 to hide the tablespaces on GreenPlum databases.

Did you accidentally include some keyboard shortcut test code in this patch? 


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Joao De Almeida Pereira
Дата:
Hello Dave,
No there is only tests around the the backendsupport function

Thanks
Joao

On Mon, Feb 19, 2018 at 6:08 AM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Mon, Feb 12, 2018 at 6:30 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hi Hackers

The attached patch implements the feature #3107 to hide the tablespaces on GreenPlum databases.

Did you accidentally include some keyboard shortcut test code in this patch? 


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Dave Page
Дата:
Hi

On Tue, Feb 20, 2018 at 4:51 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hello Dave,
No there is only tests around the the backendsupport function

Let me rephrase :-). What's this part of the patch for?

--- a/web/pgadmin/feature_tests/keyboard_shortcut_test.py
+++ b/web/pgadmin/feature_tests/keyboard_shortcut_test.py
@@ -7,9 +7,10 @@
 #
 ##########################################################################
 
-import os
-import json
+from __future__ import print_function
 import time
+import sys
+
 from selenium.webdriver.support.ui import WebDriverWait
 from selenium.webdriver.support import expected_conditions as EC
@@ -64,6 +65,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
                 Keys.ALT
             ).perform()
 
+            print("Executing shortcut: " + self.new_shortcuts[s]['locator'] + "...", file=sys.stderr, end="")
+
             self.wait.until(
                 EC.presence_of_element_located(
                     (By.XPATH, "//li[contains(@id, " +
@@ -76,6 +79,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
 
             assert is_open is True, "Keyboard shortcut change is unsuccessful."
 
+            print("OK", file=sys.stderr)


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Joao De Almeida Pereira
Дата:
Hello,
It is to make it clear which shortcut test is failing, something similar to the query tool tests.

If you want I can separate those in 2 separate patches

Thanks
Joao

On Tue, Feb 20, 2018 at 12:05 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Feb 20, 2018 at 4:51 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hello Dave,
No there is only tests around the the backendsupport function

Let me rephrase :-). What's this part of the patch for?

--- a/web/pgadmin/feature_tests/keyboard_shortcut_test.py
+++ b/web/pgadmin/feature_tests/keyboard_shortcut_test.py
@@ -7,9 +7,10 @@
 #
 ##########################################################################
 
-import os
-import json
+from __future__ import print_function
 import time
+import sys
+
 from selenium.webdriver.support.ui import WebDriverWait
 from selenium.webdriver.support import expected_conditions as EC
@@ -64,6 +65,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
                 Keys.ALT
             ).perform()
 
+            print("Executing shortcut: " + self.new_shortcuts[s]['locator'] + "...", file=sys.stderr, end="")
+
             self.wait.until(
                 EC.presence_of_element_located(
                     (By.XPATH, "//li[contains(@id, " +
@@ -76,6 +79,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
 
             assert is_open is True, "Keyboard shortcut change is unsuccessful."
 
+            print("OK", file=sys.stderr)


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [pgadmin4][patch] Hides the tablespace node in ACI tree for GreenPlum

От
Dave Page
Дата:
Hi

On Tue, Feb 20, 2018 at 5:16 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hello,
It is to make it clear which shortcut test is failing, something similar to the query tool tests.

Ah.
 

If you want I can separate those in 2 separate patches

No need - I committed them independently.

Thanks!
 

Thanks
Joao

On Tue, Feb 20, 2018 at 12:05 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Tue, Feb 20, 2018 at 4:51 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hello Dave,
No there is only tests around the the backendsupport function

Let me rephrase :-). What's this part of the patch for?

--- a/web/pgadmin/feature_tests/keyboard_shortcut_test.py
+++ b/web/pgadmin/feature_tests/keyboard_shortcut_test.py
@@ -7,9 +7,10 @@
 #
 ##########################################################################
 
-import os
-import json
+from __future__ import print_function
 import time
+import sys
+
 from selenium.webdriver.support.ui import WebDriverWait
 from selenium.webdriver.support import expected_conditions as EC
@@ -64,6 +65,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
                 Keys.ALT
             ).perform()
 
+            print("Executing shortcut: " + self.new_shortcuts[s]['locator'] + "...", file=sys.stderr, end="")
+
             self.wait.until(
                 EC.presence_of_element_located(
                     (By.XPATH, "//li[contains(@id, " +
@@ -76,6 +79,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
 
             assert is_open is True, "Keyboard shortcut change is unsuccessful."
 
+            print("OK", file=sys.stderr)


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company