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

Add new Mention model #9258

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Add new Mention model #9258

merged 1 commit into from
Jan 20, 2025

Conversation

mtomilov
Copy link
Contributor

@mtomilov mtomilov commented Jan 20, 2025

Refs #9259

Here we're adding a new mention model to support at-mentions project including alembic migration.

@mtomilov mtomilov force-pushed the create-new-table-to-store-mentions branch from 0405582 to 6628257 Compare January 20, 2025 12:01
@mtomilov mtomilov requested review from marcospri and acelaya January 20, 2025 12:13
Copy link
Contributor

@acelaya acelaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'l let Marcos give it a pass.

BTW, could you add a short description on what's being added on this PR?

Copy link
Member

@marcospri marcospri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

class Mention(Base, Timestamps): # pragma: nocover
__tablename__ = "mention"

id = sa.Column(sa.Integer, autoincrement=True, primary_key=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although we don't have make typecheck on H yet we should aim to use the new style of declaring columns for new models:

https://docs.sqlalchemy.org/en/20/orm/declarative_tables.html#using-annotated-declarative-table-type-annotated-forms-for-mapped-column

@mtomilov mtomilov force-pushed the create-new-table-to-store-mentions branch from 964eabe to 78ddfff Compare January 20, 2025 14:52
@mtomilov mtomilov merged commit f5c52f8 into main Jan 20, 2025
10 checks passed
@mtomilov mtomilov deleted the create-new-table-to-store-mentions branch January 20, 2025 14:55
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.

3 participants