Skip to content

Refactor naming conventions for DAGs, operators and modules#9

Merged
MechaelDodo merged 1 commit intomainfrom
refactor/components-renaming
Feb 12, 2026
Merged

Refactor naming conventions for DAGs, operators and modules#9
MechaelDodo merged 1 commit intomainfrom
refactor/components-renaming

Conversation

@MechaelDodo
Copy link
Copy Markdown
Owner

Context

The project previously used inconsistent naming conventions:

  • Mixed singular and plural forms (e.g. characters vs character)
  • Redundant rick_morty_ prefixes in DAGs and Python modules

This affected readability, searchability, and Airflow UI visualization.

Changes

1. Removed redundant prefixes

  • Removed rick_morty_ prefix from:
    • DAG files
    • Operator modules
    • Python files

Example:

  • rick_morty_character_raw.pycharacter_raw.py

2. Standardized naming to singular form

  • Unified entity names to singular form across the project:
    • character instead of characters
    • location instead of locations
    • episode instead of episodes

3. Improved consistency

  • Updated imports after file renaming
  • Ensured DAG IDs match file naming
  • Kept structure aligned across raw, staging, and DWH layers

Result

  • Cleaner Airflow UI (shorter DAG names)
  • Improved project consistency
  • Easier navigation and search across the codebase
  • Reduced cognitive load when working with entities

Breaking Changes

  • Renamed DAG files
  • Renamed operator modules
  • Updated imports across the project

Testing

  • Verified DAGs load successfully in Airflow
  • Confirmed no broken imports
  • Confirmed all pipelines execute correctly

@MechaelDodo
Copy link
Copy Markdown
Owner Author

ok nice

@MechaelDodo MechaelDodo merged commit e302f9f into main Feb 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant