Skip to content

fix(migration): Do not emit log output for checker_id normalisation#4198

Merged
vodorok merged 1 commit into
Ericsson:masterfrom
whisperity:feat/show-zero-checkers/fix-migration
Mar 26, 2024
Merged

fix(migration): Do not emit log output for checker_id normalisation#4198
vodorok merged 1 commit into
Ericsson:masterfrom
whisperity:feat/show-zero-checkers/fix-migration

Conversation

@whisperity
Copy link
Copy Markdown
Contributor

@whisperity whisperity commented Mar 25, 2024

Follows up #4089, #4191.

In case a new product is added to an empty server, what happens in the background is a full "migration" from the "empty" state to the newest schema, which results in the log output that is removed by this patch on the standard output of the server.

These lines are not directly needed, but there is no good reason to hide them behind an if len(...): check either. In case actual rows are migrated (which never happens when a new product is added to the server), the appropriate output showing the row count of the UPDATE statement will be printed to the output normally.

@whisperity whisperity added database 🗄️ Issues related to the database schema. bugfix 🔨 server 🖥️ labels Mar 25, 2024
@whisperity whisperity added this to the release 6.24.0 milestone Mar 25, 2024
In case a new product is added to an empty server, what happens in the
background is a full "migration" from the "empty" state to the newest
schema, which results in the log output that is removed by this patch on
the standard output of the server.

These lines are not directly needed, but there is no good reason to hide
them behind an `if len(...):` check either. In case actual rows are
migrated (which never happens when a new product is added to the
server), the appropriate output showing the row count of the `UPDATE`
statement will be printed to the output normally.
@whisperity whisperity force-pushed the feat/show-zero-checkers/fix-migration branch from 7616c2d to 386f9ae Compare March 25, 2024 11:42
Copy link
Copy Markdown
Contributor

@vodorok vodorok left a comment

Choose a reason for hiding this comment

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

LGTM

@vodorok vodorok merged commit a1a38cd into Ericsson:master Mar 26, 2024
@whisperity whisperity deleted the feat/show-zero-checkers/fix-migration branch April 2, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix 🔨 database 🗄️ Issues related to the database schema. server 🖥️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants