-
Notifications
You must be signed in to change notification settings - Fork 6
Support data quality checks by integrating hashstore support #468
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
Conversation
and fix up other minor helm items
…engine into feature-hashstore-support
src/main/java/edu/ucsb/nceas/mdqengine/dispatch/Dispatcher.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ucsb/nceas/mdqengine/scheduler/AcquireWebResourcesJob.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/ucsb/nceas/mdqengine/dispatch/JavaScriptDispatcherTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/ucsb/nceas/mdqengine/dispatch/JavaScriptDispatcherTest.java
Show resolved
Hide resolved
…ge.tag, which will default to appVersion in 'Chart.yaml'
…ault to appVersion in 'Chart.yaml'
…t to appVersion in 'Chart.yaml'
…t to appVersion in 'Chart.yaml'
…ids' method, and wrap section to set these values in a try-catch block to handle a NullPointerException
…ethod, and update error message in 'runSuite' method to include more details
….toString() will throw a NPE by calling String.valueOf() which can handle NPEs
…o IllegalArgumentException to reduce confusion
| try { | ||
| nodeIdstring = nodeId.getValue(); | ||
| nodeAbbr = nodeIdstring.replace("urn:node:", ""); | ||
| subjectId = cfg.getString(nodeAbbr + ".subjectId"); | ||
| nodeServiceUrl = cfg.getString(nodeAbbr + ".serviceUrl"); | ||
| } catch (NullPointerException npe) { | ||
| log.error("nodeIdstring and nodeAbbr is null when retrieving data pids for: " | ||
| + identifier); | ||
| } |
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.
it's also not great practice to catch NPEs in code, since it could mask underlying, unanticipated issues. Simpler to use the same pattern you already use elsewhere:
if (nodeId == null) {
throw new MetadigException("nodeId is null.");
}
nodeIdstring = nodeId.getValue();
String nodeAbbr = nodeIdstring.replace("urn:node:", "");
subjectId = cfg.getString(nodeAbbr + ".subjectId");
nodeServiceUrl = cfg.getString(nodeAbbr + ".serviceUrl");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.
Thank you again for the reminder. This has been updated
…catching NullPointerException
doulikecookiedough
left a comment
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.
I have worked with @artntek to resolve comments and to get this PR merged, and also created new issues for items with which I would like your feedback:
This PR integrates hashstore and does various other minor items to enable data quality checks. Below is a list:
RequestReportJobruns (thanks @doulikecookiedough)getDataPidsmethod and pass resulting pid list to dispatcher