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(migration): Do not emit log output for checker_id normalisation #4198

Merged

Conversation

whisperity
Copy link
Member

@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
Collaborator

@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
8 checks passed
@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.

None yet

2 participants