commit | 48eb8e2bd1674592ddfadfbbc01a611b6a263393 | [log] [tgz] |
---|---|---|
author | Jim Hahn <jrh3@att.com> | Thu Aug 16 14:57:15 2018 -0400 |
committer | Jim Hahn <jrh3@att.com> | Fri Aug 17 10:23:28 2018 -0400 |
tree | 76a8e093afee41e5623aac7a490d3ebe05664176 | |
parent | a9b2b1d16797fefa4c7be8ba0bf01f0fdab22b7b [diff] |
fix new sonar issues with prov-status check Changes made while adding the prov-status check triggered some sonar thresholds in ControlLoopEventManager. Updated the code to resolve them. One of the changes that had been introduced was to check for the existence of both the is-closed-loop-disabled AND the prov-status fields. However, if one is there then the other should be there, thus the second check is redundant and was removed, which should reduce the cyclomatic complexity back under the threshold. Re-ordered the code a little, to make it less ambiguous. Removed trailing white space. Change-Id: If0ce74cedbf947c32cae3df3374cda6ba1305cd2 Issue-ID: POLICY-964 Signed-off-by: Jim Hahn <jrh3@att.com>
Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains ONAP Policy application code. To build it:
The Demo template rule is located in template.demo sub-project. Use that project to protoype and test the .drl demo rule. When finished update the archetype-closedloop-demo-rules project with the .drl. Be sure to remove the Setup rule and comment out any simulation/test code.
The other projects are supporting code used by the template.demo project.