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

Fix ReducedError to make it more similar to Django Model #808

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion database/models/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,18 @@
error = Column(types.String(100), nullable=True)


class ReducedError(CodecovBaseModel, MixinBaseClass):
class ReducedError(CodecovBaseModel):
__tablename__ = "reports_reducederror"
id_ = Column("id", types.BigInteger, primary_key=True)
message = Column(types.Text)
created_at = Column(types.DateTime(timezone=True), default=get_utc_now)
updated_at = Column(
types.DateTime(timezone=True), onupdate=get_utc_now, default=get_utc_now
)

@property
def id(self):
return self.id_

Check warning on line 348 in database/models/reports.py

View check run for this annotation

Codecov Notifications / codecov/patch

database/models/reports.py#L348

Added line #L348 was not covered by tests


class Flake(CodecovBaseModel, MixinBaseClassNoExternalID):
Expand Down
Loading