Skip to content

Commit

Permalink
Merge branch 'main' into vincbeck/compile_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
vincbeck committed Dec 19, 2024
2 parents 976d0f0 + 904a94a commit e78c987
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions airflow/dag_processing/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,10 @@ def _serialize_dag_capturing_errors(dag: MaybeSerializedDAG, session: Session, p
session=session,
processor_subdir=processor_subdir,
)
# TODO: Currently _sync_dag_perms is FAB specific. We need to re-implement it using the auth manager
# interface. In the short term, we are going to disable it but this should be fixed and re-enabled
# before AF3 is released
# if dag_was_updated:
# _sync_dag_perms(dag, session=session)
# else:
# # Check and update DagCode
if not dag_was_updated:
if dag_was_updated:
_sync_dag_perms(dag, session=session)
else:
# Check and update DagCode
DagCode.update_source_code(dag.dag_id, dag.fileloc)

return []
Expand Down
4 changes: 2 additions & 2 deletions airflow/ui/src/components/TriggerDag/TriggerDAGModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ const TriggerDAGModal: React.FC<TriggerDAGModalProps> = ({
<Dialog.Header>
<VStack align="start" gap={4}>
<Heading size="xl">
Trigger DAG - {dagDisplayName}{" "}
Trigger Dag - {dagDisplayName}{" "}
<TogglePause dagId={dagId} isPaused={isPaused} skipConfirm />
</Heading>
{isPaused ? (
<Alert status="warning" title="Paused DAG">
Triggering will create a DAG run, but it will not start until the
DAG is unpaused.
Dag is unpaused.
</Alert>
) : undefined}
</VStack>
Expand Down
2 changes: 0 additions & 2 deletions tests/dag_processing/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def _dag_import_error_listener(self):
get_listener_manager().clear()
dag_import_error_listener.clear()

@pytest.mark.skip("Skipping until we fix the implementation to not be FAB-specific")
@pytest.mark.usefixtures("clean_db") # sync_perms in fab has bad session commit hygiene
def test_sync_perms_syncs_dag_specific_perms_on_update(
self, monkeypatch, spy_agency: SpyAgency, session, time_machine
Expand Down Expand Up @@ -393,7 +392,6 @@ def test_remove_error_clears_import_error(self, session):

assert import_errors == {"def.py"}

@pytest.mark.skip("Skipping until we fix the implementation to not be FAB-specific")
def test_sync_perm_for_dag_with_dict_access_control(self, session, spy_agency: SpyAgency):
"""
Test that dagbag._sync_perm_for_dag will call ApplessAirflowSecurityManager.sync_perm_for_dag
Expand Down

0 comments on commit e78c987

Please sign in to comment.