-
Notifications
You must be signed in to change notification settings - Fork 144
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
Refactor zAppBuild reporting capabilities #341
Refactor zAppBuild reporting capabilities #341
Conversation
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
Signed-off-by: Dennis Behm <[email protected]>
utilities/ReportingUtilities.groovy
Outdated
|
||
def Set<String> externalImpactList = collectionImpactsSetMap.get(cName) ?: new HashSet<String>() | ||
// query dbb metadatastore for files with all logicalDependencies | ||
def logicalImpactedFilesCollections = metadataStore.getImpactedFiles([cName], logicalDependencies); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than querying for each individual collection name, pass the list of collections for which the filter applies.
Signed-off-by: Dennis Behm <[email protected]>
refactor_reporting_capabilities Conflicts: utilities/BuildUtilities.groovy Signed-off-by: Dennis Behm <[email protected]>
@M-DLB This is read for another review. I modified the code to actually leverage the new capabilities of the API to return a list of collections carrying the impacted files. |
utilities/ReportingUtilities.groovy
Outdated
}else { | ||
// debug-output | ||
// println("$indentationMsg!* Skipped redundant analysis. $file was already or will be procceed soon.") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to keep the else
here, if nothing is actually done?
Signed-off-by: Dennis Behm <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good to me!
Thanks @dennis-behm
Moved the Reporting feature into in its own utilities file, and simplifying the query to check for impacted logical files across collections using DBB 2.0 APIs. Signed-off-by: Dennis Behm <[email protected]>
Reporting capabilities in zAppBuild were previously managed in the ImpactUtilities script. While this is a feature of zAppBuild, it does not need to be part of the ImpactUtils script.
This PR is