Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some deprecation warnings #179

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading