craig-rueda commented on a change in pull request #8960: fix: shut off unneeded 
endpoints
URL: 
https://github.com/apache/incubator-superset/pull/8960#discussion_r369241198
 
 

 ##########
 File path: superset/app.py
 ##########
 @@ -324,23 +323,11 @@ def init_views(self) -> None:
             category_label=__("Sources"),
             category_icon="fa-wrench",
         )
-        appbuilder.add_link(
-            "Tables",
-            label=__("Tables"),
-            href="/tablemodelview/list/?_flt_1_is_sqllab_view=y",
-            icon="fa-table",
-            category="Sources",
-            category_label=__("Sources"),
-            category_icon="fa-table",
-        )
 
         #
         # Conditionally setup log views
         #
-        if (
-            not self.config["FAB_ADD_SECURITY_VIEWS"] is False
-            or self.config["SUPERSET_LOG_VIEW"] is False
-        ):
+        if self.config["FAB_ADD_SECURITY_VIEWS"] and 
self.config["SUPERSET_LOG_VIEW"]:
 
 Review comment:
   Logic is not the same as it was. If this was the previous logic, then the 
contrapositive would be correct: 
   ```
   not (a is False or b is False) == a and b
   ```
   but the above statement lacks the inner parens:
   ```
   # The not negates the result of a is False
   not a is False or b is False
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to