Skip to content

Commit

Permalink
chore: fix some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jul 17, 2024
1 parent e53affb commit 15dd19d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helm/cas-airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ airflow:

config:
core:
dag_concurrency: 5
max_active_tasks_per_dag: 5
max_active_runs_per_dag: 1
min_serialized_dag_update_interval: 10
min_serialized_dag_fetch_interval: 5
Expand Down
5 changes: 2 additions & 3 deletions helm/cas-airflow/webserver_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from airflow.www.security import AirflowSecurityManager
from airflow.auth.managers.fab.security_manager.override import FabAirflowSecurityManagerOverride
import logging
from typing import Dict, Any, List, Union
Expand All @@ -8,7 +7,7 @@
log = logging.getLogger(__name__)
log.setLevel(os.getenv("AIRFLOW__LOGGING__FAB_LOGGING_LEVEL", "INFO"))

## Define the security manager class to be used
## Define the security manager class to be used

FAB_ADMIN_ROLE = "Admin"
FAB_VIEWER_ROLE = "Viewer"
Expand Down Expand Up @@ -42,7 +41,7 @@ def map_roles(team_list: List[int]) -> List[str]:

# Workaround for Airflow 2.8.1
# See https://github.com/apache/airflow/issues/36432
class GithubTeamAuthorizer(AirflowSecurityManager,FabAirflowSecurityManagerOverride):
class GithubTeamAuthorizer(FabAirflowSecurityManagerOverride):
# If you ever want to support other providers, see how it is done here:
# https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/manager.py#L550
def get_oauth_user_info(
Expand Down

0 comments on commit 15dd19d

Please sign in to comment.