-
Notifications
You must be signed in to change notification settings - Fork 0
Таблицы для поставки #143
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
base: main
Are you sure you want to change the base?
Таблицы для поставки #143
Conversation
Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds two new incremental tables to the STG/marketing layer and updates migration scripts accordingly.
- Introduce
UserIncrementalandActionsInfoIncrementalmodels inmarketing.py - Add a new Alembic migration (
incremental_dag) to create and drop these tables - Clean up import ordering in several existing migration files
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| profcomff_definitions/STG/marketing.py | Added UserIncremental and ActionsInfoIncremental models |
| migrations/versions/20250419_1938_e8f40f2847f7_incremental_dag.py | New migration to create/drop incremental tables |
| migrations/versions/20250416_0827_d43d62fb3748_fix_chat.py | Reordered imports |
| migrations/versions/20250415_2154_40d72f2dd950_fix_viribus_ods.py | Reordered imports |
| migrations/versions/20250415_2140_2685b42bfef5_add_ods_telegram_viribus.py | Reordered imports |
| migrations/versions/20250412_1504_066fd36bb01c_added_column_to_fetch_with_back_data.py | Reordered imports |
| migrations/versions/20250412_0002_f8908a4837a5_dm_marketing.py | Reordered imports |
| migrations/versions/20250315_1949_5edf7206774e_fix_redirector.py | Reordered imports |
Comments suppressed due to low confidence (1)
migrations/versions/20250419_1938_e8f40f2847f7_incremental_dag.py:20
- No tests verify creation or correct schema of the new incremental tables. Consider adding integration or unit tests to cover these migrations.
def upgrade():
| create_ts: Mapped[datetime | None] | ||
|
|
||
|
|
||
| class UserIncremental(Base): |
Copilot
AI
May 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider adding a docstring to the UserIncremental model to explain its purpose and fields, improving code readability.
| class UserIncremental(Base): | |
| class UserIncremental(Base): | |
| """ | |
| Represents incremental updates to user data. | |
| Fields: | |
| id (int): Primary key for the record. | |
| union_number (str | None): A unique identifier for the user within a union, if applicable. | |
| user_agent (str | None): The user agent string associated with the user. | |
| auth_user_id (int | None): The ID of the authenticated user, if available. | |
| modify_ts (datetime | None): The timestamp of the last modification to the record. | |
| create_ts (datetime | None): The timestamp when the record was created. | |
| """ |
| from alembic import op | ||
| import sqlalchemy as sa | ||
| import os | ||
|
|
Copilot
AI
May 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Import statements have been reordered and blank lines inserted inconsistently across migration scripts; standardize import grouping and formatting for consistency.
Изменения
2 таблицы для поставки
Детали реализации
Check-List
blackиisortдля Back-End илиPrettierдля Front-End?