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 #7398: Update compliance UI to manage disable mode #963

Conversation

fanf
Copy link
Member

@fanf fanf commented Nov 15, 2015

@fanf fanf force-pushed the ust_7398/update_compliance_ui_to_manage_disable_mode branch 3 times, most recently from 9c61301 to 9a41658 Compare November 16, 2015 11:48
@@ -304,7 +304,7 @@ case object LongComparator extends CriterionType {

case object MemoryComparator extends CriterionType {
override val comparators = OrderedComparators.comparators
override protected def validateSubCase(v:String,comparator:CriterionComparator) = try {
override protected def validateSubCase(v:String,comparator:CriterionComparator) = {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't you keep the try ?
What happens if the parse fails ?

Copy link
Member Author

Choose a reason for hiding this comment

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

there is no catch

Copy link
Member

Choose a reason for hiding this comment

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

then why not adding a catch ??

Copy link
Member Author

Choose a reason for hiding this comment

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

because it is not supposed to throw exception (Full/Failure), the try must be a remeniscience of the past

@fanf fanf force-pushed the ust_7398/update_compliance_ui_to_manage_disable_mode branch from 9a41658 to 02262d4 Compare November 16, 2015 17:15
@fanf
Copy link
Member Author

fanf commented Nov 16, 2015

PR updated


val complianceWithoutPending = pc_for(success+repaired+notApplicable, total-pending)
val complianceWithoutPending = pc_for(success+repaired+notApplicable, total-pending-reportsDisabled)
Copy link
Member

Choose a reason for hiding this comment

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

Ha, shouldn't you remove the reportsDisabled on the left side as well ?

Copy link
Member

Choose a reason for hiding this comment

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

ha ok

@ncharles
Copy link
Member

Thank you @fanf

ncharles added a commit that referenced this pull request Nov 16, 2015
…nage_disable_mode

Fixes #7398: Update compliance UI to manage disable mode
@ncharles ncharles merged commit 4977469 into Normation:branches/rudder/3.2 Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants