Skip to content

Conversation

@jeanetteclark
Copy link
Collaborator

This PR integrates hashstore and does various other minor items to enable data quality checks. Below is a list:

  • add hashstore configuration to metadig.properties and read it in
  • try to get metadata and sysmeta from a hashstore first on all RequestReportJob runs (thanks @doulikecookiedough)
  • pass hashstore configuration to python dispatcher
  • retrieve more variables from python dispatcher that are helpful for data quality checks
  • update schema adding an optional identifier attribute to the output element
  • add getDataPids method and pass resulting pid list to dispatcher
  • upgrade testing framework and add tests (thanks @doulikecookiedough!)

@jeanetteclark jeanetteclark changed the base branch from main to develop March 7, 2025 22:57
…ge.tag, which will default 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
Comment on lines 258 to 266
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);
}
Copy link
Contributor

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");

Copy link
Contributor

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

Copy link
Contributor

@doulikecookiedough doulikecookiedough left a 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:

@doulikecookiedough doulikecookiedough merged commit 6990e3a into develop Mar 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants