Skip to content

Commit

Permalink
Rename old data refresh to legacy_data_refresh (#4260)
Browse files Browse the repository at this point in the history
* Rename old data refresh

* Fix isort
  • Loading branch information
stacimc authored May 7, 2024
1 parent 035dbd7 commit 3da4ab6
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion catalog/dags/elasticsearch_cluster/healthcheck_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from common.elasticsearch import get_es_host
from common.sensors.utils import is_concurrent_with_any
from common.slack import send_alert, send_message
from data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS
from legacy_data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS


logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from airflow.decorators import task, task_group

from common import ingestion_server
from data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS
from legacy_data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS


DAG_ID = "recreate_full_staging_index"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from common import ingestion_server
from common.constants import XCOM_PULL_TEMPLATE
from data_refresh.data_refresh_types import DataRefresh
from legacy_data_refresh.data_refresh_types import DataRefresh


def create_and_populate_filtered_index(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
from common.constants import DAG_DEFAULT_ARGS
from common.sensors.constants import PRODUCTION_ES_CONCURRENCY_TAG
from common.sensors.utils import prevent_concurrency_with_dags_with_tag
from data_refresh.create_filtered_index import (
from legacy_data_refresh.create_filtered_index import (
create_filtered_index_creation_task_groups,
)
from data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS, DataRefresh
from legacy_data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS, DataRefresh


# Note: We can't use the TaskFlow `@dag` DAG factory decorator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
PRODUCTION,
)
from common.sensors.constants import PRODUCTION_ES_CONCURRENCY_TAG
from data_refresh.data_refresh_task_factory import create_data_refresh_task_group
from data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS, DataRefresh
from data_refresh.reporting import report_record_difference
from legacy_data_refresh.data_refresh_task_factory import create_data_refresh_task_group
from legacy_data_refresh.data_refresh_types import DATA_REFRESH_CONFIGS, DataRefresh
from legacy_data_refresh.reporting import report_record_difference


logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
from common.sensors.constants import PRODUCTION_ES_CONCURRENCY_TAG
from common.sensors.single_run_external_dags_sensor import SingleRunExternalDAGsSensor
from common.sensors.utils import wait_for_external_dags_with_tag
from data_refresh.create_filtered_index import (
from legacy_data_refresh.create_filtered_index import (
create_filtered_index_creation_task_groups,
)
from data_refresh.data_refresh_types import DataRefresh
from legacy_data_refresh.data_refresh_types import DataRefresh


logger = logging.getLogger(__name__)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion catalog/tests/dags/data_refresh/test_reporting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from data_refresh.reporting import (
from legacy_data_refresh.reporting import (
report_record_difference,
report_status,
)
Expand Down
8 changes: 4 additions & 4 deletions catalog/tests/dags/test_dag_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"maintenance/rotate_db_snapshots.py",
"popularity/recreate_popularity_calculation_dag_factory.py",
"popularity/popularity_refresh_dag_factory.py",
"data_refresh/dag_factory.py",
"data_refresh/create_filtered_index_dag.py",
"legacy_data_refresh/dag_factory.py",
"legacy_data_refresh/create_filtered_index_dag.py",
"elasticsearch_cluster/recreate_staging_index/recreate_full_staging_index_dag.py",
"elasticsearch_cluster/healthcheck_dag.py",
"oauth2/authorize_dag.py",
Expand All @@ -40,8 +40,8 @@
),
"popularity/recreate_popularity_calculation_dag_factory.py": len(MEDIA_TYPES),
"popularity/popularity_refresh_dag_factory.py": len(MEDIA_TYPES),
"data_refresh/dag_factory.py": len(MEDIA_TYPES),
"data_refresh/create_filtered_index_dag.py": len(MEDIA_TYPES),
"legacy_data_refresh/dag_factory.py": len(MEDIA_TYPES),
"legacy_data_refresh/create_filtered_index_dag.py": len(MEDIA_TYPES),
"elasticsearch_cluster/healthcheck_dag.py": len(ENVIRONMENTS),
}

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ known-first-party = [
"data_refresh",
"database",
"elasticsearch_cluster",
"legacy_data_refresh",
"maintenance",
"oauth2",
"providers",
Expand Down

0 comments on commit 3da4ab6

Please sign in to comment.