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

Fixes #24637: Improvements on score: F score, rework tooltip, improve messages #5558

Conversation

VinceMacBuche
Copy link
Member

@VinceMacBuche VinceMacBuche requested a review from fanf March 29, 2024 23:35
@@ -57,6 +57,7 @@ object ScoreValue extends Enum[ScoreValue] {
case object C extends ScoreValue { val value = "C" }
case object D extends ScoreValue { val value = "D" }
case object E extends ScoreValue { val value = "E" }
case object F extends ScoreValue { val value = "F" }
Copy link
Member

Choose a reason for hiding this comment

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

indent

@VinceMacBuche VinceMacBuche force-pushed the bug_24637/improvements_on_score_f_score_rework_tooltip_improve_messages branch from eead7eb to dffb75a Compare March 31, 2024 20:20
@VinceMacBuche
Copy link
Member Author

Commit modified

@fanf fanf force-pushed the bug_24637/improvements_on_score_f_score_rework_tooltip_improve_messages branch from dffb75a to fd2422c Compare April 2, 2024 09:13
@@ -456,7 +456,7 @@ CREATE TABLE NodeFacts (
);


CREATE TYPE score AS enum ('A', 'B', 'C', 'D', 'E');
CREATE TYPE score AS enum ('A', 'B', 'C', 'D', 'E', 'F', 'X');
Copy link
Member

Choose a reason for hiding this comment

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

This leads to SQL errors for people with the beta2 since there is no migration. Pondering if it's important, not sure, but we should at least add in release notes:
"if you upgrade from a beta version, you need to do:

rudder=> ALTER TYPE score ADD VALUE 'F';
ALTER TYPE
rudder=> ALTER TYPE score ADD VALUE 'X';
ALTER TYPE
rudder=>

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't support update between beta, we never did nor we want to support it

Copy link
Member

@fanf fanf left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fanf fanf self-requested a review April 2, 2024 10:12
…/rudder/score/ComplianceScore.scala

Co-authored-by: Clark Andrianasolo <65616064+clarktsiory@users.noreply.github.com>
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 152a4a6 into Normation:branches/rudder/8.1 Apr 2, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants