Skip to content

Commit

Permalink
[AIRBNB] trigger counter on sync (apache#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
saguziel authored and GitHub Enterprise committed Nov 6, 2019
1 parent 9e54e19 commit a6a1353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/www_rbac/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from sqlalchemy.exc import IntegrityError

from airflow import models
from airflow.settings import Stats
from airflow.www_rbac.app import appbuilder
from airflow.utils.db import provide_session
from airflow.utils.log.logging_mixin import LoggingMixin
Expand Down Expand Up @@ -498,6 +499,7 @@ def sync_roles(self):
logging.info('Failed to clean perms')

def sync_lookup_table(self):
Stats.incr('airflow.sync_lookup_table')
ab_perm_view_role = sqla_models.assoc_permissionview_role
perm_view = self.permissionview_model
view_menu = self.viewmenu_model
Expand Down

0 comments on commit a6a1353

Please sign in to comment.